diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
index c81bba3ae89a8..824ead3b0a5c2 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
@@ -1,14 +1,987 @@
# Release History
-## 1.2.0-beta.7 (Unreleased)
+## 1.0.0-beta.1 (2024-10-21)
-### 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-2024-12-preview. 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
+
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+### Features Added
+
+* `models.PermissionBinding$DefinitionStages` was added
+
+* `models.PartnerDestinationInfo` was added
+
+* `models.PartnerUpdateDestinationInfo` 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.Sku` 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.NetworkSecurityPerimeterConfigurationIssueSeverity` 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.PartnerDestination$Definition` was added
+
+* `models.PartnerTopic$Definition` was added
+
+* `models.DataResidencyBoundary` was added
+
+* `models.StringContainsFilter` was added
+
+* `models.Filter` was added
+
+* `models.ResourceSku` was added
+
+* `models.SubscriptionsListResult` was added
+
+* `models.ResourceKind` was added
+
+* `models.NamespaceTopicsListResult` was added
+
+* `models.NamespaceTopic$Update` was added
+
+* `models.StringNotInFilter` was added
+
+* `models.PartnerClientAuthentication` 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.PartnerEndpointType` 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.NetworkSecurityPerimeterConfigurationIssues` was added
+
+* `models.PartnerTopicActivationState` was added
+
+* `models.PartnerDestinationProvisioningState` was added
+
+* `models.TopicSpacesListResult` was added
+
+* `models.CustomJwtAuthenticationManagedIdentityType` 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.PartnerDestinations` was added
+
+* `models.PartnerDestination` 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.EncodedIssuerCertificateInfo` was added
+
+* `models.ClientGroupProvisioningState` was added
+
+* `models.CustomJwtAuthenticationSettings` was added
+
+* `models.TlsVersion` was added
+
+* `models.NetworkSecurityPerimeterConfigurationProfile` was added
+
+* `models.NumberLessThanOrEqualsFilter` was added
+
+* `models.PartnerTopicInfo` was added
+
+* `models.NetworkSecurityPerimeterAssociationAccessMode` was added
+
+* `models.PartnerNamespace$DefinitionStages` was added
+
+* `models.Channel$Update` was added
+
+* `models.CaCertificatesListResult` was added
+
+* `models.StaticStringRoutingEnrichment` was added
+
+* `models.ResourceMoveChangeHistory` was added
+
+* `models.PartnerTopicProvisioningState` was added
+
+* `models.CustomDomainConfiguration` was added
+
+* `models.StringNotContainsFilter` was added
+
+* `models.PartnerTopic` was added
+
+* `models.EventDefinitionKind` was added
+
+* `models.WebhookPartnerDestinationInfo` was added
+
+* `models.PartnerNamespace$Definition` was added
+
+* `models.EventInputSchema` was added
+
+* `models.PartnerNamespaceRegenerateKeyRequest` was added
+
+* `models.NamespaceTopicProvisioningState` was added
+
+* `models.PartnerAuthorization` was added
+
+* `models.PartnerDestination$Update` 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.NetworkSecurityPerimeterConfigurationList` 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.CustomJwtAuthenticationManagedIdentity` 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.PartnerEventSubscriptionDestination` was added
+
+* `models.IsNotNullFilter` was added
+
+* `models.Namespace$Definition` was added
+
+* `models.ClientAuthenticationSettings` 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.ResourceAssociation` was added
+
+* `models.PartnerDestinationUpdateParameters` 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.NetworkSecurityPerimeterConfigProvisioningState` 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.PartnerClientAuthenticationType` 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.PartnerDestinationActivationState` was added
+
+* `models.PartnerTopic$Update` was added
+
+* `models.EventTypeInfo` was added
+
+* `models.Subscription` was added
+
+* `models.PartnerNamespacesListResult` was added
+
+* `models.AlternativeAuthenticationNameSource` was added
+
+* `models.TopicSpace$UpdateStages` was added
+
+* `models.ClientGroupsListResult` was added
+
+* `models.Client$UpdateStages` was added
+
+* `models.NamespaceTopic$DefinitionStages` was added
+
+* `models.WebhookUpdatePartnerDestinationInfo` 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.NetworkSecurityPerimeterConfigurationIssueType` was added
+
+* `models.Channel$Definition` was added
+
+* `models.NetworkSecurityPerimeterResourceType` was added
+
+* `models.FederatedIdentityCredentialInfo` was added
+
+* `models.TopicSpacesConfigurationState` was added
+
+* `models.PartnerTopic$UpdateStages` was added
+
+* `models.NetworkSecurityPerimeterSubscription` was added
+
+* `models.ClientGroup$Definition` was added
+
+* `models.SubscriptionUpdateParameters` was added
+
+* `models.NamespaceTopic$UpdateStages` was added
+
+* `models.NetworkSecurityPerimeterProfileAccessRule` was added
+
+* `models.NamespaceTopicUpdateParameters` was added
+
+* `models.NetworkSecurityPerimeterConfigurations` 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.NetworkSecurityPerimeterInfo` was added
+
+* `models.StaticRoutingEnrichment` was added
+
+* `models.CustomDomainIdentityType` was added
+
+* `models.AzureADPartnerClientAuthentication` 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.IssuerCertificateInfo` was added
+
+* `models.NamespaceRegenerateKeyRequest` was added
+
+* `models.PartnerNamespaceProvisioningState` was added
+
+* `models.PartnerTopicsListResult` was added
+
+* `models.PartnerDestination$UpdateStages` was added
+
+* `models.NumberNotInRangeFilter` was added
+
+* `models.ExtendedLocation` was added
+
+* `models.PartnerDestination$DefinitionStages` was added
+
+* `models.PartnerRegistrations` was added
+
+* `models.VerifiedPartner` was added
+
+* `models.PartnerNamespace$UpdateStages` was added
+
+* `models.NetworkSecurityPerimeterProfileAccessRuleDirection` was added
+
+* `models.Partner` was added
+
+* `models.NetworkSecurityPerimeterConfiguration` was added
+
+* `models.PartnerDestinationsListResult` was added
+
+* `models.ClientGroup$DefinitionStages` was added
+
+#### `models.EventSubscriptionsListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.PrivateEndpoint` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.WebhookEventSubscriptionDestination` was modified
+
+* `minimumTlsVersionAllowed()` was added
+* `endpointType()` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.PrivateEndpointConnectionListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.UserIdentityProperties` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.TopicUpdateParameters` was modified
+
+* `dataResidencyBoundary()` was added
+* `eventTypeInfo()` was added
+* `sku()` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withSku(models.ResourceSku)` was added
+* `minimumTlsVersionAllowed()` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.IsNullOrUndefinedAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+
+#### `models.OperationsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Domain$Update` was modified
+
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withSku(models.ResourceSku)` 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
+
+* `withKind(models.ResourceKind)` was added
+* `withSku(models.ResourceSku)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withExtendedLocation(models.ExtendedLocation)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+
+#### `models.StringBeginsWithAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DeliveryAttributeMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `type()` was added
+
+#### `models.DomainUpdateParameters` was modified
+
+* `eventTypeInfo()` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `dataResidencyBoundary()` was added
+* `minimumTlsVersionAllowed()` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `sku()` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withSku(models.ResourceSku)` was added
+* `toJson(com.azure.json.JsonWriter)` 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
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` 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
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `withSku(models.ResourceSku)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+
+#### `models.NumberLessThanAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.StaticDeliveryAttributeMapping` was modified
+
+* `type()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DeliveryWithResourceIdentity` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.EventSubscription` was modified
+
+* `resourceGroupName()` was added
+
+#### `models.AzureFunctionEventSubscriptionDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `endpointType()` was added
+
+#### `models.Domain` was modified
+
+* `dataResidencyBoundary()` was added
+* `sku()` was added
+* `minimumTlsVersionAllowed()` was added
+* `eventTypeInfo()` was added
+* `resourceGroupName()` was added
+
+#### `models.DeadLetterDestination` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+
+#### `models.DynamicDeliveryAttributeMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `type()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StorageBlobDeadLetterDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.JsonField` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` 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
+* `namespaces()` was added
+* `domainEventSubscriptions()` was added
+* `channels()` was added
+* `domainTopicEventSubscriptions()` was added
+* `partnerRegistrations()` was added
+* `permissionBindings()` was added
+* `partnerConfigurations()` was added
+* `partnerNamespaces()` was added
+* `partnerTopicEventSubscriptions()` was added
+* `networkSecurityPerimeterConfigurations()` was added
+* `partnerDestinations()` was added
+* `namespaceTopics()` was added
+* `topicSpaces()` was added
+* `partnerTopics()` was added
+* `clientGroups()` was added
+* `namespaceTopicEventSubscriptions()` was added
+* `topicEventSubscriptions()` was added
+* `verifiedPartners()` was added
+* `authenticate(com.azure.core.http.HttpPipeline,com.azure.core.management.profile.AzureProfile)` was added
+* `clients()` was added
+
+#### `models.RetryPolicy` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.JsonInputSchemaMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `inputSchemaMappingType()` was added
+
+#### `models.EventTypesListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.EventSubscriptionIdentity` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withFederatedIdentityCredentialInfo(models.FederatedIdentityCredentialInfo)` was added
+* `federatedIdentityCredentialInfo()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Topic` was modified
+
+* `dataResidencyBoundary()` was added
+* `sku()` was added
+* `eventTypeInfo()` was added
+* `resourceGroupName()` was added
+* `kind()` was added
+* `minimumTlsVersionAllowed()` was added
+* `extendedLocation()` 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
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.PrivateLinkResourcesListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StorageQueueEventSubscriptionDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` 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
+
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` 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
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.AdvancedFilter` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` 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
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberGreaterThanOrEqualsAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.HybridConnectionEventSubscriptionDestination` was modified
+
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.InputSchemaMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `inputSchemaMappingType()` was added
+* `fromJson(com.azure.json.JsonReader)` 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
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberLessThanOrEqualsAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Domain$Definition` was modified
+
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withSku(models.ResourceSku)` was added
+* `withEventTypeInfo(models.EventTypeInfo)` 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
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+
+#### `models.EventSubscriptionUpdateParameters` was modified
-### Other Changes
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
## 1.2.0-beta.6 (2024-04-28)
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md
index b8b8660ae2319..ffa717b45a1fb 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-2024-12-preview. 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.6
+ 1.2.0-beta.7
```
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md
index a415749bccf66..5a5e103446794 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md
@@ -281,7 +281,9 @@
*/
public final class CaCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * CaCertificates_CreateOrUpdate.json
*/
/**
* Sample code: CaCertificates_CreateOrUpdate.
@@ -307,7 +309,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * CaCertificates_Delete.json
*/
/**
* Sample code: CaCertificates_Delete.
@@ -330,7 +334,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * CaCertificates_Get.json
*/
/**
* Sample code: CaCertificates_Get.
@@ -353,7 +359,9 @@ public final class CaCertificatesGetSamples {
*/
public final class CaCertificatesListByNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_ListByNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * CaCertificates_ListByNamespace.json
*/
/**
* Sample code: CaCertificates_ListByNamespace.
@@ -379,7 +387,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Channels_CreateOrUpdate.json
*/
/**
* Sample code: Channels_CreateOrUpdate.
@@ -410,7 +420,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Channels_Delete.
+ * json
*/
/**
* Sample code: Channels_Delete.
@@ -433,7 +445,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Channels_Get.
+ * json
*/
/**
* Sample code: Channels_Get.
@@ -456,7 +470,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Channels_GetFullUrl.json
*/
/**
* Sample code: Channels_GetFullUrl.
@@ -479,7 +495,9 @@ public final class ChannelsGetFullUrlSamples {
*/
public final class ChannelsListByPartnerNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_ListByPartnerNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Channels_ListByPartnerNamespace.json
*/
/**
* Sample code: Channels_ListByPartnerNamespace.
@@ -505,7 +523,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Channels_Update.
+ * json
*/
/**
* Sample code: Channels_Update.
@@ -530,7 +550,9 @@ public final class ChannelsUpdateSamples {
*/
public final class ClientGroupsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * ClientGroups_CreateOrUpdate.json
*/
/**
* Sample code: ClientGroups_CreateOrUpdate.
@@ -556,7 +578,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * ClientGroups_Delete.json
*/
/**
* Sample code: ClientGroups_Delete.
@@ -578,7 +602,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/ClientGroups_Get
+ * .json
*/
/**
* Sample code: ClientGroups_Get.
@@ -601,7 +627,9 @@ public final class ClientGroupsGetSamples {
*/
public final class ClientGroupsListByNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_ListByNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * ClientGroups_ListByNamespace.json
*/
/**
* Sample code: ClientGroups_ListByNamespace.
@@ -632,7 +660,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Clients_CreateOrUpdate.json
*/
/**
* Sample code: Clients_CreateOrUpdate.
@@ -677,7 +707,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Clients_Delete.
+ * json
*/
/**
* Sample code: Clients_Delete.
@@ -699,7 +731,8 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Clients_Get.json
*/
/**
* Sample code: Clients_Get.
@@ -722,7 +755,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Clients_ListByNamespace.json
*/
/**
* Sample code: Clients_ListByNamespace.
@@ -747,7 +782,9 @@ 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/DomainEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: DomainEventSubscriptions_CreateOrUpdate.
@@ -777,7 +814,9 @@ public final class DomainEventSubscriptionsCreateOrUpdateSamples {
*/
public final class DomainEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_Delete.json
*/
/**
* Sample code: DomainEventSubscriptions_Delete.
@@ -799,7 +838,9 @@ public final class DomainEventSubscriptionsDeleteSamples {
*/
public final class DomainEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_Get.json
*/
/**
* Sample code: DomainEventSubscriptions_Get.
@@ -821,7 +862,9 @@ public final class DomainEventSubscriptionsGetSamples {
*/
public final class DomainEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: DomainEventSubscriptions_GetDeliveryAttributes.
@@ -845,7 +888,9 @@ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class DomainEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: DomainEventSubscriptions_GetFullUrl.
@@ -869,7 +914,9 @@ public final class DomainEventSubscriptionsGetFullUrlSamples {
*/
public final class DomainEventSubscriptionsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_List.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_List.json
*/
/**
* Sample code: DomainEventSubscriptions_List.
@@ -896,7 +943,9 @@ import java.util.Arrays;
*/
public final class DomainEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainEventSubscriptions_Update.json
*/
/**
* Sample code: DomainEventSubscriptions_Update.
@@ -930,7 +979,9 @@ 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/DomainTopicEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_CreateOrUpdate.
@@ -960,7 +1011,9 @@ public final class DomainTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class DomainTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_Delete.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_Delete.
@@ -984,7 +1037,9 @@ public final class DomainTopicEventSubscriptionsDeleteSamples {
*/
public final class DomainTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_Get.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_Get.
@@ -1007,7 +1062,9 @@ public final class DomainTopicEventSubscriptionsGetSamples {
*/
public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_GetDeliveryAttributes.
@@ -1031,7 +1088,9 @@ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class DomainTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_GetFullUrl.
@@ -1055,7 +1114,9 @@ public final class DomainTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class DomainTopicEventSubscriptionsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_List.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_List.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_List.
@@ -1082,7 +1143,9 @@ import java.util.Arrays;
*/
public final class DomainTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopicEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopicEventSubscriptions_Update.json
*/
/**
* Sample code: DomainTopicEventSubscriptions_Update.
@@ -1113,7 +1176,9 @@ public final class DomainTopicEventSubscriptionsUpdateSamples {
*/
public final class DomainTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopics_CreateOrUpdate.json
*/
/**
* Sample code: DomainTopics_CreateOrUpdate.
@@ -1135,7 +1200,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopics_Delete.json
*/
/**
* Sample code: DomainTopics_Delete.
@@ -1157,7 +1224,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/DomainTopics_Get
+ * .json
*/
/**
* Sample code: DomainTopics_Get.
@@ -1179,7 +1248,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * DomainTopics_ListByDomain.json
*/
/**
* Sample code: DomainTopics_ListByDomain.
@@ -1208,7 +1279,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Domains_CreateOrUpdate.json
*/
/**
* Sample code: Domains_CreateOrUpdate.
@@ -1250,7 +1323,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Domains_Delete.
+ * json
*/
/**
* Sample code: Domains_Delete.
@@ -1271,7 +1346,8 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Domains_Get.json
*/
/**
* Sample code: Domains_Get.
@@ -1293,7 +1369,9 @@ public final class DomainsGetByResourceGroupSamples {
*/
public final class DomainsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Domains_ListBySubscription.json
*/
/**
* Sample code: Domains_ListBySubscription.
@@ -1314,7 +1392,9 @@ public final class DomainsListSamples {
*/
public final class DomainsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Domains_ListByResourceGroup.json
*/
/**
* Sample code: Domains_ListByResourceGroup.
@@ -1335,7 +1415,9 @@ public final class DomainsListByResourceGroupSamples {
*/
public final class DomainsListSharedAccessKeysSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_ListSharedAccessKeys.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Domains_ListSharedAccessKeys.json
*/
/**
* Sample code: Domains_ListSharedAccessKeys.
@@ -1359,7 +1441,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Domains_RegenerateKey.json
*/
/**
* Sample code: Domains_RegenerateKey.
@@ -1390,7 +1474,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Domains_Update.
+ * json
*/
/**
* Sample code: Domains_Update.
@@ -1443,7 +1529,9 @@ 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/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.
@@ -1465,7 +1553,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForSubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForSubscription.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForSubscription.
@@ -1484,7 +1574,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination.
@@ -1510,7 +1602,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForResource.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForResource.
@@ -1533,7 +1627,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic.
@@ -1555,7 +1651,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForResourceGroup.
@@ -1577,7 +1675,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.
@@ -1602,7 +1702,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.
@@ -1630,7 +1732,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.
@@ -1656,7 +1760,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.
@@ -1682,7 +1788,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination.
@@ -1717,7 +1825,9 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
*/
public final class EventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForCustomTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_DeleteForCustomTopic.json
*/
/**
* Sample code: EventSubscriptions_DeleteForCustomTopic.
@@ -1733,7 +1843,9 @@ public final class EventSubscriptionsDeleteSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_DeleteForResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_DeleteForResourceGroup.
@@ -1748,7 +1860,9 @@ public final class EventSubscriptionsDeleteSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForSubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_DeleteForSubscription.json
*/
/**
* Sample code: EventSubscriptions_DeleteForSubscription.
@@ -1763,7 +1877,9 @@ public final class EventSubscriptionsDeleteSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_DeleteForResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_DeleteForResource.json
*/
/**
* Sample code: EventSubscriptions_DeleteForResource.
@@ -1788,7 +1904,9 @@ public final class EventSubscriptionsDeleteSamples {
*/
public final class EventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_HybridConnectionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_HybridConnectionDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_HybridConnectionDestination.
@@ -1804,7 +1922,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_ServiceBusTopicDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_ServiceBusTopicDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_ServiceBusTopicDestination.
@@ -1820,7 +1940,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_GetForResourceGroup.
@@ -1835,7 +1957,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_EventHubDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_EventHubDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_EventHubDestination.
@@ -1851,7 +1975,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForSubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForSubscription.json
*/
/**
* Sample code: EventSubscriptions_GetForSubscription.
@@ -1866,7 +1992,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_WebhookDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_WebhookDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_WebhookDestination.
@@ -1882,7 +2010,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_AzureFunctionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_AzureFunctionDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_AzureFunctionDestination.
@@ -1898,7 +2028,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic.
@@ -1914,7 +2046,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_StorageQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_StorageQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_StorageQueueDestination.
@@ -1930,7 +2064,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForResource.json
*/
/**
* Sample code: EventSubscriptions_GetForResource.
@@ -1945,7 +2081,9 @@ public final class EventSubscriptionsGetSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetForCustomTopic_ServiceBusQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetForCustomTopic_ServiceBusQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_GetForCustomTopic_ServiceBusQueueDestination.
@@ -1970,7 +2108,9 @@ public final class EventSubscriptionsGetSamples {
*/
public final class EventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: EventSubscriptions_GetDeliveryAttributes.
@@ -1995,7 +2135,9 @@ public final class EventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class EventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetFullUrlForResource.json
*/
/**
* Sample code: EventSubscriptions_GetFullUrlForResource.
@@ -2011,7 +2153,9 @@ public final class EventSubscriptionsGetFullUrlSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetFullUrlForResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_GetFullUrlForResourceGroup.
@@ -2026,7 +2170,9 @@ public final class EventSubscriptionsGetFullUrlSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForSubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetFullUrlForSubscription.json
*/
/**
* Sample code: EventSubscriptions_GetFullUrlForSubscription.
@@ -2041,7 +2187,9 @@ public final class EventSubscriptionsGetFullUrlSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_GetFullUrlForCustomTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_GetFullUrlForCustomTopic.json
*/
/**
* Sample code: EventSubscriptions_GetFullUrlForCustomTopic.
@@ -2066,7 +2214,9 @@ public final class EventSubscriptionsGetFullUrlSamples {
*/
public final class EventSubscriptionsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListGlobalBySubscription.json
*/
/**
* Sample code: EventSubscriptions_ListGlobalBySubscription.
@@ -2088,7 +2238,9 @@ public final class EventSubscriptionsListSamples {
*/
public final class EventSubscriptionsListByDomainTopicSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListByDomainTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListByDomainTopic.json
*/
/**
* Sample code: EventSubscriptions_ListByDomainTopic.
@@ -2111,7 +2263,9 @@ public final class EventSubscriptionsListByDomainTopicSamples {
*/
public final class EventSubscriptionsListByResourceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListByResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListByResource.json
*/
/**
* Sample code: EventSubscriptions_ListByResource.
@@ -2134,7 +2288,9 @@ public final class EventSubscriptionsListByResourceSamples {
*/
public final class EventSubscriptionsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListGlobalByResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_ListGlobalByResourceGroup.
@@ -2156,7 +2312,9 @@ public final class EventSubscriptionsListByResourceGroupSamples {
*/
public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
*/
/**
* Sample code: EventSubscriptions_ListGlobalByResourceGroupForTopicType.
@@ -2180,7 +2338,9 @@ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSample
*/
public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
*/
/**
* Sample code: EventSubscriptions_ListGlobalBySubscriptionForTopicType.
@@ -2204,7 +2364,9 @@ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples
*/
public final class EventSubscriptionsListRegionalByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListRegionalByResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_ListRegionalByResourceGroup.
@@ -2227,7 +2389,9 @@ public final class EventSubscriptionsListRegionalByResourceGroupSamples {
*/
public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
*/
/**
* Sample code: EventSubscriptions_ListRegionalByResourceGroupForTopicType.
@@ -2251,7 +2415,9 @@ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamp
*/
public final class EventSubscriptionsListRegionalBySubscriptionSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListRegionalBySubscription.json
*/
/**
* Sample code: EventSubscriptions_ListRegionalBySubscription.
@@ -2274,7 +2440,9 @@ public final class EventSubscriptionsListRegionalBySubscriptionSamples {
*/
public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
*/
/**
* Sample code: EventSubscriptions_ListRegionalBySubscriptionForTopicType.
@@ -2310,7 +2478,9 @@ import java.util.Arrays;
*/
public final class EventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_EventHubDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_EventHubDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_EventHubDestination.
@@ -2334,7 +2504,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_AzureFunctionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_AzureFunctionDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_AzureFunctionDestination.
@@ -2360,7 +2532,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_WebhookDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_WebhookDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_WebhookDestination.
@@ -2384,7 +2558,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_StorageQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_StorageQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_StorageQueueDestination.
@@ -2412,7 +2588,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_ServiceBusTopicDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_ServiceBusTopicDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_ServiceBusTopicDestination.
@@ -2436,7 +2614,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_HybridConnectionDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_HybridConnectionDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_HybridConnectionDestination.
@@ -2460,7 +2640,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic_ServiceBusQueueDestination.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic_ServiceBusQueueDestination.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic_ServiceBusQueueDestination.
@@ -2486,7 +2668,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForCustomTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForCustomTopic.json
*/
/**
* Sample code: EventSubscriptions_UpdateForCustomTopic.
@@ -2510,7 +2694,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForResource.json
*/
/**
* Sample code: EventSubscriptions_UpdateForResource.
@@ -2534,7 +2720,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForResourceGroup.json
*/
/**
* Sample code: EventSubscriptions_UpdateForResourceGroup.
@@ -2557,7 +2745,9 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/EventSubscriptions_UpdateForSubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * EventSubscriptions_UpdateForSubscription.json
*/
/**
* Sample code: EventSubscriptions_UpdateForSubscription.
@@ -2588,7 +2778,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * ExtensionTopics_Get.json
*/
/**
* Sample code: ExtensionTopics_Get.
@@ -2618,7 +2810,9 @@ import java.time.Duration;
*/
public final class NamespaceTopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_CreateOrUpdate.
@@ -2648,7 +2842,9 @@ public final class NamespaceTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class NamespaceTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_Delete.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_Delete.
@@ -2672,7 +2868,9 @@ public final class NamespaceTopicEventSubscriptionsDeleteSamples {
*/
public final class NamespaceTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_Get.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_Get.
@@ -2696,7 +2894,9 @@ public final class NamespaceTopicEventSubscriptionsGetSamples {
*/
public final class NamespaceTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_GetDeliveryAttributes.
@@ -2720,7 +2920,9 @@ public final class NamespaceTopicEventSubscriptionsGetDeliveryAttributesSamples
*/
public final class NamespaceTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_GetFullUrl.
@@ -2744,7 +2946,9 @@ public final class NamespaceTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class NamespaceTopicEventSubscriptionsListByNamespaceTopicSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_ListByNamespaceTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_ListByNamespaceTopic.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_ListByNamespaceTopic.
@@ -2775,7 +2979,9 @@ import java.time.Duration;
*/
public final class NamespaceTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopicEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopicEventSubscriptions_Update.json
*/
/**
* Sample code: NamespaceTopicEventSubscriptions_Update.
@@ -2810,7 +3016,9 @@ 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/NamespaceTopics_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_CreateOrUpdate.json
*/
/**
* Sample code: NamespaceTopics_CreateOrUpdate.
@@ -2837,7 +3045,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_Delete.json
*/
/**
* Sample code: NamespaceTopics_Delete.
@@ -2859,7 +3069,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_Get.json
*/
/**
* Sample code: NamespaceTopics_Get.
@@ -2882,7 +3094,9 @@ public final class NamespaceTopicsGetSamples {
*/
public final class NamespaceTopicsListByNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_ListByNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_ListByNamespace.json
*/
/**
* Sample code: NamespaceTopics_ListByNamespace.
@@ -2904,7 +3118,9 @@ public final class NamespaceTopicsListByNamespaceSamples {
*/
public final class NamespaceTopicsListSharedAccessKeysSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NamespaceTopics_ListSharedAccessKeys.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_ListSharedAccessKeys.json
*/
/**
* Sample code: NamespaceTopics_ListSharedAccessKeys.
@@ -2930,7 +3146,9 @@ 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/NamespaceTopics_RegenerateKey.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_RegenerateKey.json
*/
/**
* Sample code: NamespaceTopics_RegenerateKey.
@@ -2955,7 +3173,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NamespaceTopics_Update.json
*/
/**
* Sample code: NamespaceTopics_Update.
@@ -2985,7 +3205,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_CreateOrUpdate.json
*/
/**
* Sample code: Namespaces_CreateOrUpdate.
@@ -3027,7 +3249,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_Delete.json
*/
/**
* Sample code: Namespaces_Delete.
@@ -3048,7 +3272,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Namespaces_Get.
+ * json
*/
/**
* Sample code: Namespaces_Get.
@@ -3070,7 +3296,9 @@ public final class NamespacesGetByResourceGroupSamples {
*/
public final class NamespacesListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_ListBySubscription.json
*/
/**
* Sample code: Namespaces_ListBySubscription.
@@ -3091,7 +3319,9 @@ public final class NamespacesListSamples {
*/
public final class NamespacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_ListByResourceGroup.json
*/
/**
* Sample code: Namespaces_ListByResourceGroup.
@@ -3112,7 +3342,9 @@ public final class NamespacesListByResourceGroupSamples {
*/
public final class NamespacesListSharedAccessKeysSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ListSharedAccessKeys.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_ListSharedAccessKeys.json
*/
/**
* Sample code: Namespaces_ListSharedAccessKeys.
@@ -3136,7 +3368,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_RegenerateKey.json
*/
/**
* Sample code: Namespaces_RegenerateKey.
@@ -3164,7 +3398,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_Update.json
*/
/**
* Sample code: Namespaces_Update.
@@ -3200,7 +3436,9 @@ public final class NamespacesUpdateSamples {
*/
public final class NamespacesValidateCustomDomainOwnershipSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_ValidateCustomDomainOwnership.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Namespaces_ValidateCustomDomainOwnership.json
*/
/**
* Sample code: Namespaces_ValidateCustomDomainOwnership.
@@ -3225,7 +3463,9 @@ import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResour
*/
public final class NetworkSecurityPerimeterConfigurationsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NetworkSecurityPerimeterConfigurations_Get.json
*/
/**
* Sample code: NetworkSecurityPerimeterConfigurations_Get.
@@ -3251,7 +3491,9 @@ import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResour
*/
public final class NetworkSecurityPerimeterConfigurationsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_List.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NetworkSecurityPerimeterConfigurations_List.json
*/
/**
* Sample code: NetworkSecurityPerimeterConfigurations_List.
@@ -3277,7 +3519,9 @@ import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResour
*/
public final class NetworkSecurityPerimeterConfigurationsReconcileSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/NetworkSecurityPerimeterConfigurations_Reconcile.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * NetworkSecurityPerimeterConfigurations_Reconcile.json
*/
/**
* Sample code: NetworkSecurityPerimeterConfigurations_Reconcile.
@@ -3301,7 +3545,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Operations_List.
+ * json
*/
/**
* Sample code: Operations_List.
@@ -3326,7 +3572,9 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsAuthorizePartnerSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_AuthorizePartner.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_AuthorizePartner.json
*/
/**
* Sample code: PartnerConfigurations_AuthorizePartner.
@@ -3361,7 +3609,9 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_CreateOrUpdate.json
*/
/**
* Sample code: PartnerConfigurations_CreateOrUpdate.
@@ -3399,7 +3649,9 @@ public final class PartnerConfigurationsCreateOrUpdateSamples {
*/
public final class PartnerConfigurationsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_Delete.json
*/
/**
* Sample code: PartnerConfigurations_Delete.
@@ -3420,7 +3672,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_Get.json
*/
/**
* Sample code: PartnerConfigurations_Get.
@@ -3441,7 +3695,9 @@ public final class PartnerConfigurationsGetByResourceGroupSamples {
*/
public final class PartnerConfigurationsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_ListBySubscription.json
*/
/**
* Sample code: PartnerConfigurations_ListBySubscription.
@@ -3463,7 +3719,9 @@ public final class PartnerConfigurationsListSamples {
*/
public final class PartnerConfigurationsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_ListByResourceGroup.json
*/
/**
* Sample code: PartnerConfigurations_ListByResourceGroup.
@@ -3489,7 +3747,9 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsUnauthorizePartnerSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_UnauthorizePartner.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_UnauthorizePartner.json
*/
/**
* Sample code: PartnerConfigurations_UnauthorizePartner.
@@ -3521,7 +3781,9 @@ import java.util.Map;
*/
public final class PartnerConfigurationsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerConfigurations_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerConfigurations_Update.json
*/
/**
* Sample code: PartnerConfigurations_Update.
@@ -3558,7 +3820,9 @@ public final class PartnerConfigurationsUpdateSamples {
*/
public final class PartnerDestinationsActivateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Activate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_Activate.json
*/
/**
* Sample code: PartnerDestinations_Activate.
@@ -3583,7 +3847,9 @@ import java.util.UUID;
*/
public final class PartnerDestinationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_CreateOrUpdate.json
*/
/**
* Sample code: PartnerDestinations_CreateOrUpdate.
@@ -3613,7 +3879,9 @@ public final class PartnerDestinationsCreateOrUpdateSamples {
*/
public final class PartnerDestinationsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_Delete.json
*/
/**
* Sample code: PartnerDestinations_Delete.
@@ -3635,7 +3903,9 @@ public final class PartnerDestinationsDeleteSamples {
*/
public final class PartnerDestinationsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_Get.json
*/
/**
* Sample code: PartnerDestinations_Get.
@@ -3658,7 +3928,9 @@ public final class PartnerDestinationsGetByResourceGroupSamples {
*/
public final class PartnerDestinationsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_ListBySubscription.json
*/
/**
* Sample code: PartnerDestinations_ListBySubscription.
@@ -3680,7 +3952,9 @@ public final class PartnerDestinationsListSamples {
*/
public final class PartnerDestinationsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_ListByResourceGroup.json
*/
/**
* Sample code: PartnerDestinations_ListByResourceGroup.
@@ -3706,7 +3980,9 @@ import java.util.Map;
*/
public final class PartnerDestinationsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerDestinations_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerDestinations_Update.json
*/
/**
* Sample code: PartnerDestinations_Update.
@@ -3746,7 +4022,9 @@ import java.util.Map;
*/
public final class PartnerNamespacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_CreateOrUpdate.json
*/
/**
* Sample code: PartnerNamespaces_CreateOrUpdate.
@@ -3786,7 +4064,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_Delete.json
*/
/**
* Sample code: PartnerNamespaces_Delete.
@@ -3808,7 +4088,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_Get.json
*/
/**
* Sample code: PartnerNamespaces_Get.
@@ -3831,7 +4113,9 @@ public final class PartnerNamespacesGetByResourceGroupSamples {
*/
public final class PartnerNamespacesListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_ListBySubscription.json
*/
/**
* Sample code: PartnerNamespaces_ListBySubscription.
@@ -3853,7 +4137,9 @@ public final class PartnerNamespacesListSamples {
*/
public final class PartnerNamespacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_ListByResourceGroup.json
*/
/**
* Sample code: PartnerNamespaces_ListByResourceGroup.
@@ -3875,7 +4161,9 @@ public final class PartnerNamespacesListByResourceGroupSamples {
*/
public final class PartnerNamespacesListSharedAccessKeysSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerNamespaces_ListSharedAccessKeys.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_ListSharedAccessKeys.json
*/
/**
* Sample code: PartnerNamespaces_ListSharedAccessKeys.
@@ -3901,7 +4189,9 @@ 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/PartnerNamespaces_RegenerateKey.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_RegenerateKey.json
*/
/**
* Sample code: PartnerNamespaces_RegenerateKey.
@@ -3929,7 +4219,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerNamespaces_Update.json
*/
/**
* Sample code: PartnerNamespaces_Update.
@@ -3969,7 +4261,9 @@ import java.util.Map;
*/
public final class PartnerRegistrationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_CreateOrUpdate.json
*/
/**
* Sample code: PartnerRegistrations_CreateOrUpdate.
@@ -4009,7 +4303,9 @@ public final class PartnerRegistrationsCreateOrUpdateSamples {
*/
public final class PartnerRegistrationsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_Delete.json
*/
/**
* Sample code: PartnerRegistrations_Delete.
@@ -4031,7 +4327,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_Get.json
*/
/**
* Sample code: PartnerRegistrations_Get.
@@ -4054,7 +4352,9 @@ public final class PartnerRegistrationsGetByResourceGroupSamples {
*/
public final class PartnerRegistrationsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_ListBySubscription.json
*/
/**
* Sample code: PartnerRegistrations_ListBySubscription.
@@ -4076,7 +4376,9 @@ public final class PartnerRegistrationsListSamples {
*/
public final class PartnerRegistrationsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_ListByResourceGroup.json
*/
/**
* Sample code: PartnerRegistrations_ListByResourceGroup.
@@ -4102,7 +4404,9 @@ import java.util.Map;
*/
public final class PartnerRegistrationsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerRegistrations_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerRegistrations_Update.json
*/
/**
* Sample code: PartnerRegistrations_Update.
@@ -4143,7 +4447,9 @@ 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/PartnerTopicEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_CreateOrUpdate.
@@ -4173,7 +4479,9 @@ public final class PartnerTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class PartnerTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_Delete.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_Delete.
@@ -4196,7 +4504,9 @@ public final class PartnerTopicEventSubscriptionsDeleteSamples {
*/
public final class PartnerTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_Get.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_Get.
@@ -4219,7 +4529,9 @@ public final class PartnerTopicEventSubscriptionsGetSamples {
*/
public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_GetDeliveryAttributes.
@@ -4243,7 +4555,9 @@ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class PartnerTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_GetFullUrl.
@@ -4267,7 +4581,9 @@ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_ListByPartnerTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_ListByPartnerTopic.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_ListByPartnerTopic.
@@ -4295,7 +4611,9 @@ import java.util.Arrays;
*/
public final class PartnerTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopicEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopicEventSubscriptions_Update.json
*/
/**
* Sample code: PartnerTopicEventSubscriptions_Update.
@@ -4326,7 +4644,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_Activate.json
*/
/**
* Sample code: PartnerTopics_Activate.
@@ -4351,7 +4671,9 @@ import java.util.UUID;
*/
public final class PartnerTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_CreateOrUpdate.json
*/
/**
* Sample code: PartnerTopics_CreateOrUpdate.
@@ -4381,7 +4703,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_Deactivate.json
*/
/**
* Sample code: PartnerTopics_Deactivate.
@@ -4403,7 +4727,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_Delete.json
*/
/**
* Sample code: PartnerTopics_Delete.
@@ -4424,7 +4750,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_Get.json
*/
/**
* Sample code: PartnerTopics_Get.
@@ -4446,7 +4774,9 @@ public final class PartnerTopicsGetByResourceGroupSamples {
*/
public final class PartnerTopicsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_ListBySubscription.json
*/
/**
* Sample code: PartnerTopics_ListBySubscription.
@@ -4467,7 +4797,9 @@ public final class PartnerTopicsListSamples {
*/
public final class PartnerTopicsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PartnerTopics_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_ListByResourceGroup.json
*/
/**
* Sample code: PartnerTopics_ListByResourceGroup.
@@ -4492,7 +4824,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PartnerTopics_Update.json
*/
/**
* Sample code: PartnerTopics_Update.
@@ -4530,7 +4864,9 @@ 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/PermissionBindings_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PermissionBindings_CreateOrUpdate.json
*/
/**
* Sample code: PermissionBindings_CreateOrUpdate.
@@ -4557,7 +4893,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PermissionBindings_Delete.json
*/
/**
* Sample code: PermissionBindings_Delete.
@@ -4580,7 +4918,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PermissionBindings_Get.json
*/
/**
* Sample code: PermissionBindings_Get.
@@ -4603,7 +4943,9 @@ public final class PermissionBindingsGetSamples {
*/
public final class PermissionBindingsListByNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PermissionBindings_ListByNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PermissionBindings_ListByNamespace.json
*/
/**
* Sample code: PermissionBindings_ListByNamespace.
@@ -4627,7 +4969,9 @@ 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/PrivateEndpointConnections_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateEndpointConnections_Delete.json
*/
/**
* Sample code: PrivateEndpointConnections_Delete.
@@ -4652,7 +4996,9 @@ 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/PrivateEndpointConnections_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateEndpointConnections_Get.json
*/
/**
* Sample code: PrivateEndpointConnections_Get.
@@ -4677,7 +5023,9 @@ 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/PrivateEndpointConnections_ListByResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateEndpointConnections_ListByResource.json
*/
/**
* Sample code: PrivateEndpointConnections_ListByResource.
@@ -4706,7 +5054,9 @@ 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/PrivateEndpointConnections_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateEndpointConnections_Update.json
*/
/**
* Sample code: PrivateEndpointConnections_Update.
@@ -4734,7 +5084,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateLinkResources_Get.json
*/
/**
* Sample code: PrivateLinkResources_Get.
@@ -4756,7 +5108,9 @@ public final class PrivateLinkResourcesGetSamples {
*/
public final class PrivateLinkResourcesListByResourceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/PrivateLinkResources_ListByResource.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * PrivateLinkResources_ListByResource.json
*/
/**
* Sample code: PrivateLinkResources_ListByResource.
@@ -4783,7 +5137,9 @@ 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/SystemTopicEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_CreateOrUpdate.
@@ -4813,7 +5169,9 @@ public final class SystemTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class SystemTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_Delete.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_Delete.
@@ -4836,7 +5194,9 @@ public final class SystemTopicEventSubscriptionsDeleteSamples {
*/
public final class SystemTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_Get.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_Get.
@@ -4859,7 +5219,9 @@ public final class SystemTopicEventSubscriptionsGetSamples {
*/
public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_GetDeliveryAttributes.
@@ -4883,7 +5245,9 @@ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class SystemTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_GetFullUrl.
@@ -4907,7 +5271,9 @@ public final class SystemTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class SystemTopicEventSubscriptionsListBySystemTopicSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_ListBySystemTopic.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_ListBySystemTopic.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_ListBySystemTopic.
@@ -4935,7 +5301,9 @@ import java.util.Arrays;
*/
public final class SystemTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopicEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopicEventSubscriptions_Update.json
*/
/**
* Sample code: SystemTopicEventSubscriptions_Update.
@@ -4969,7 +5337,9 @@ import java.util.Map;
*/
public final class SystemTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopics_CreateOrUpdate.json
*/
/**
* Sample code: SystemTopics_CreateOrUpdate.
@@ -5010,7 +5380,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopics_Delete.json
*/
/**
* Sample code: SystemTopics_Delete.
@@ -5031,7 +5403,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/SystemTopics_Get
+ * .json
*/
/**
* Sample code: SystemTopics_Get.
@@ -5053,7 +5427,9 @@ public final class SystemTopicsGetByResourceGroupSamples {
*/
public final class SystemTopicsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopics_ListBySubscription.json
*/
/**
* Sample code: SystemTopics_ListBySubscription.
@@ -5074,7 +5450,9 @@ public final class SystemTopicsListSamples {
*/
public final class SystemTopicsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopics_ListByResourceGroup.json
*/
/**
* Sample code: SystemTopics_ListByResourceGroup.
@@ -5099,7 +5477,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * SystemTopics_Update.json
*/
/**
* Sample code: SystemTopics_Update.
@@ -5138,7 +5518,9 @@ 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/TopicEventSubscriptions_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_CreateOrUpdate.json
*/
/**
* Sample code: TopicEventSubscriptions_CreateOrUpdate.
@@ -5167,7 +5549,9 @@ public final class TopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class TopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Delete.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_Delete.json
*/
/**
* Sample code: TopicEventSubscriptions_Delete.
@@ -5189,7 +5573,9 @@ public final class TopicEventSubscriptionsDeleteSamples {
*/
public final class TopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Get.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_Get.json
*/
/**
* Sample code: TopicEventSubscriptions_Get.
@@ -5211,7 +5597,9 @@ public final class TopicEventSubscriptionsGetSamples {
*/
public final class TopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_GetDeliveryAttributes.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
* Sample code: TopicEventSubscriptions_GetDeliveryAttributes.
@@ -5235,7 +5623,9 @@ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class TopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_GetFullUrl.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_GetFullUrl.json
*/
/**
* Sample code: TopicEventSubscriptions_GetFullUrl.
@@ -5258,7 +5648,9 @@ public final class TopicEventSubscriptionsGetFullUrlSamples {
*/
public final class TopicEventSubscriptionsListSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_List.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_List.json
*/
/**
* Sample code: TopicEventSubscriptions_List.
@@ -5285,7 +5677,9 @@ import java.util.Arrays;
*/
public final class TopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicEventSubscriptions_Update.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicEventSubscriptions_Update.json
*/
/**
* Sample code: TopicEventSubscriptions_Update.
@@ -5318,7 +5712,9 @@ import java.util.Arrays;
*/
public final class TopicSpacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicSpaces_CreateOrUpdate.json
*/
/**
* Sample code: TopicSpaces_CreateOrUpdate.
@@ -5343,7 +5739,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicSpaces_Delete.json
*/
/**
* Sample code: TopicSpaces_Delete.
@@ -5365,7 +5763,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/TopicSpaces_Get.
+ * json
*/
/**
* Sample code: TopicSpaces_Get.
@@ -5388,7 +5788,9 @@ public final class TopicSpacesGetSamples {
*/
public final class TopicSpacesListByNamespaceSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_ListByNamespace.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicSpaces_ListByNamespace.json
*/
/**
* Sample code: TopicSpaces_ListByNamespace.
@@ -5410,7 +5812,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/TopicTypes_Get.
+ * json
*/
/**
* Sample code: TopicTypes_Get.
@@ -5431,7 +5835,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/TopicTypes_List.
+ * json
*/
/**
* Sample code: TopicTypes_List.
@@ -5452,7 +5858,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * TopicTypes_ListEventTypes.json
*/
/**
* Sample code: TopicTypes_ListEventTypes.
@@ -5483,7 +5891,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_CreateOrUpdate.json
*/
/**
* Sample code: Topics_CreateOrUpdate.
@@ -5504,7 +5914,9 @@ public final class TopicsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_CreateOrUpdateForAzureArc.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_CreateOrUpdateForAzureArc.json
*/
/**
* Sample code: Topics_CreateOrUpdateForAzureArc.
@@ -5547,7 +5959,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Topics_Delete.
+ * json
*/
/**
* Sample code: Topics_Delete.
@@ -5568,7 +5982,8 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Topics_Get.json
*/
/**
* Sample code: Topics_Get.
@@ -5589,7 +6004,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_ListBySubscription.json
*/
/**
* Sample code: Topics_ListBySubscription.
@@ -5610,7 +6027,9 @@ public final class TopicsListSamples {
*/
public final class TopicsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_ListByResourceGroup.json
*/
/**
* Sample code: Topics_ListByResourceGroup.
@@ -5631,7 +6050,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_ListEventTypes.json
*/
/**
* Sample code: Topics_ListEventTypes.
@@ -5654,7 +6075,9 @@ public final class TopicsListEventTypesSamples {
*/
public final class TopicsListSharedAccessKeysSamples {
/*
- * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_ListSharedAccessKeys.json
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_ListSharedAccessKeys.json
*/
/**
* Sample code: Topics_ListSharedAccessKeys.
@@ -5678,7 +6101,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * Topics_RegenerateKey.json
*/
/**
* Sample code: Topics_RegenerateKey.
@@ -5709,7 +6134,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/Topics_Update.
+ * json
*/
/**
* Sample code: Topics_Update.
@@ -5751,7 +6178,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/examples/
+ * VerifiedPartners_Get.json
*/
/**
* Sample code: VerifiedPartners_Get.
@@ -5772,7 +6201,9 @@ 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
+ * x-ms-original-file:
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-12-15-preview/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 cba0dadf35592..6bef007e9518d 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-2024-12-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -46,6 +46,7 @@
0
0
true
+ false
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 7c3b6c0b8ea7a..15076716691c0 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
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -29,15 +29,15 @@
import com.azure.resourcemanager.eventgrid.implementation.ClientGroupsImpl;
import com.azure.resourcemanager.eventgrid.implementation.ClientsImpl;
import com.azure.resourcemanager.eventgrid.implementation.DomainEventSubscriptionsImpl;
-import com.azure.resourcemanager.eventgrid.implementation.DomainsImpl;
import com.azure.resourcemanager.eventgrid.implementation.DomainTopicEventSubscriptionsImpl;
import com.azure.resourcemanager.eventgrid.implementation.DomainTopicsImpl;
+import com.azure.resourcemanager.eventgrid.implementation.DomainsImpl;
import com.azure.resourcemanager.eventgrid.implementation.EventGridManagementClientBuilder;
import com.azure.resourcemanager.eventgrid.implementation.EventSubscriptionsImpl;
import com.azure.resourcemanager.eventgrid.implementation.ExtensionTopicsImpl;
-import com.azure.resourcemanager.eventgrid.implementation.NamespacesImpl;
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;
@@ -52,23 +52,23 @@
import com.azure.resourcemanager.eventgrid.implementation.SystemTopicEventSubscriptionsImpl;
import com.azure.resourcemanager.eventgrid.implementation.SystemTopicsImpl;
import com.azure.resourcemanager.eventgrid.implementation.TopicEventSubscriptionsImpl;
-import com.azure.resourcemanager.eventgrid.implementation.TopicsImpl;
import com.azure.resourcemanager.eventgrid.implementation.TopicSpacesImpl;
import com.azure.resourcemanager.eventgrid.implementation.TopicTypesImpl;
+import com.azure.resourcemanager.eventgrid.implementation.TopicsImpl;
import com.azure.resourcemanager.eventgrid.implementation.VerifiedPartnersImpl;
import com.azure.resourcemanager.eventgrid.models.CaCertificates;
import com.azure.resourcemanager.eventgrid.models.Channels;
import com.azure.resourcemanager.eventgrid.models.ClientGroups;
import com.azure.resourcemanager.eventgrid.models.Clients;
import com.azure.resourcemanager.eventgrid.models.DomainEventSubscriptions;
-import com.azure.resourcemanager.eventgrid.models.Domains;
import com.azure.resourcemanager.eventgrid.models.DomainTopicEventSubscriptions;
import com.azure.resourcemanager.eventgrid.models.DomainTopics;
+import com.azure.resourcemanager.eventgrid.models.Domains;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptions;
import com.azure.resourcemanager.eventgrid.models.ExtensionTopics;
-import com.azure.resourcemanager.eventgrid.models.Namespaces;
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;
@@ -83,9 +83,9 @@
import com.azure.resourcemanager.eventgrid.models.SystemTopicEventSubscriptions;
import com.azure.resourcemanager.eventgrid.models.SystemTopics;
import com.azure.resourcemanager.eventgrid.models.TopicEventSubscriptions;
-import com.azure.resourcemanager.eventgrid.models.Topics;
import com.azure.resourcemanager.eventgrid.models.TopicSpaces;
import com.azure.resourcemanager.eventgrid.models.TopicTypes;
+import com.azure.resourcemanager.eventgrid.models.Topics;
import com.azure.resourcemanager.eventgrid.models.VerifiedPartners;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -325,7 +325,7 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.eventgrid")
.append("/")
- .append("1.2.0-beta.6");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
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
index 22015e4f41f7a..cb11cebd1f522 100644
--- 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
@@ -5,23 +5,28 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 {
+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.
+ * The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in
+ * delivery requests.
*/
- @JsonProperty(value = "azureActiveDirectoryTenantId")
private String azureActiveDirectoryTenantId;
/*
- * The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
+ * The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer
+ * token in delivery requests.
*/
- @JsonProperty(value = "azureActiveDirectoryApplicationIdOrUri")
private String azureActiveDirectoryApplicationIdOrUri;
/**
@@ -83,4 +88,47 @@ public String azureActiveDirectoryApplicationIdOrUri() {
*/
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/AzureFunctionEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java
index 7c03fe56af581..febd9779cd748 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java
@@ -5,37 +5,38 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties that represent the Azure Function destination of an event subscription.
*/
@Fluent
-public final class AzureFunctionEventSubscriptionDestinationProperties {
+public final class AzureFunctionEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Maximum number of events per batch.
*/
- @JsonProperty(value = "maxEventsPerBatch")
private Integer maxEventsPerBatch;
/*
* Preferred batch size in Kilobytes.
*/
- @JsonProperty(value = "preferredBatchSizeInKilobytes")
private Integer preferredBatchSizeInKilobytes;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
@@ -138,4 +139,57 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeNumberField("maxEventsPerBatch", this.maxEventsPerBatch);
+ jsonWriter.writeNumberField("preferredBatchSizeInKilobytes", this.preferredBatchSizeInKilobytes);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureFunctionEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureFunctionEventSubscriptionDestinationProperties 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 AzureFunctionEventSubscriptionDestinationProperties.
+ */
+ public static AzureFunctionEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureFunctionEventSubscriptionDestinationProperties deserializedAzureFunctionEventSubscriptionDestinationProperties
+ = new AzureFunctionEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedAzureFunctionEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("maxEventsPerBatch".equals(fieldName)) {
+ deserializedAzureFunctionEventSubscriptionDestinationProperties.maxEventsPerBatch
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("preferredBatchSizeInKilobytes".equals(fieldName)) {
+ deserializedAzureFunctionEventSubscriptionDestinationProperties.preferredBatchSizeInKilobytes
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedAzureFunctionEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureFunctionEventSubscriptionDestinationProperties;
+ });
+ }
}
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 d4b8c0013994c..b8b449ecfdc86 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
@@ -7,8 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.CaCertificateProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
/**
@@ -19,15 +22,28 @@ public final class CaCertificateInner extends ProxyResource {
/*
* The properties of CA certificate.
*/
- @JsonProperty(value = "properties")
private CaCertificateProperties innerProperties;
/*
- * The system metadata relating to the CaCertificate resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 CaCertificateInner class.
*/
@@ -44,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.
*/
@@ -52,6 +68,36 @@ 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;
+ }
+
/**
* Get the description property: Description for the CA Certificate resource.
*
@@ -135,4 +181,49 @@ public void validate() {
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 CaCertificateInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CaCertificateInner 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 CaCertificateInner.
+ */
+ public static CaCertificateInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CaCertificateInner deserializedCaCertificateInner = new CaCertificateInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedCaCertificateInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedCaCertificateInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCaCertificateInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedCaCertificateInner.innerProperties = CaCertificateProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedCaCertificateInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCaCertificateInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateProperties.java
index 5fb78fa565b9e..2c81bc1423a01 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateProperties.java
@@ -5,43 +5,43 @@
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.CaCertificateProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
/**
* The properties of CA certificate.
*/
@Fluent
-public final class CaCertificateProperties {
+public final class CaCertificateProperties implements JsonSerializable {
/*
* Description for the CA Certificate resource.
*/
- @JsonProperty(value = "description")
private String description;
/*
* Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
*/
- @JsonProperty(value = "encodedCertificate")
private String encodedCertificate;
/*
* Certificate issue time in UTC. This is a read-only field.
*/
- @JsonProperty(value = "issueTimeInUtc", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime issueTimeInUtc;
/*
* Certificate expiry time in UTC. This is a read-only field.
*/
- @JsonProperty(value = "expiryTimeInUtc", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime expiryTimeInUtc;
/*
* Provisioning state of the CA Certificate resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private CaCertificateProvisioningState provisioningState;
/**
@@ -124,4 +124,52 @@ public CaCertificateProvisioningState provisioningState() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("encodedCertificate", this.encodedCertificate);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CaCertificateProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CaCertificateProperties 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 CaCertificateProperties.
+ */
+ public static CaCertificateProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CaCertificateProperties deserializedCaCertificateProperties = new CaCertificateProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedCaCertificateProperties.description = reader.getString();
+ } else if ("encodedCertificate".equals(fieldName)) {
+ deserializedCaCertificateProperties.encodedCertificate = reader.getString();
+ } else if ("issueTimeInUtc".equals(fieldName)) {
+ deserializedCaCertificateProperties.issueTimeInUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("expiryTimeInUtc".equals(fieldName)) {
+ deserializedCaCertificateProperties.expiryTimeInUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedCaCertificateProperties.provisioningState
+ = CaCertificateProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCaCertificateProperties;
+ });
+ }
}
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 7aba24c5158b2..a3e319eafce2e 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
@@ -7,12 +7,15 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
/**
@@ -23,15 +26,28 @@ public final class ChannelInner extends ProxyResource {
/*
* Properties of the Channel.
*/
- @JsonProperty(value = "properties")
private ChannelProperties innerProperties;
/*
- * The system metadata relating to Channel resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 ChannelInner class.
*/
@@ -48,7 +64,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.
*/
@@ -56,6 +72,36 @@ 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;
+ }
+
/**
* Get the channelType property: The type of the event channel which represents the direction flow of events.
*
@@ -237,4 +283,49 @@ public void validate() {
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 ChannelInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChannelInner 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 ChannelInner.
+ */
+ public static ChannelInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChannelInner deserializedChannelInner = new ChannelInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedChannelInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedChannelInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedChannelInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedChannelInner.innerProperties = ChannelProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedChannelInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedChannelInner;
+ });
+ }
}
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 ed2bef93b6ae3..3260f46876d3a 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
@@ -5,60 +5,61 @@
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.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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
/**
* Properties of the Channel.
*/
@Fluent
-public final class ChannelProperties {
+public final class ChannelProperties implements JsonSerializable {
/*
* The type of the event channel which represents the direction flow of events.
*/
- @JsonProperty(value = "channelType")
private ChannelType channelType;
/*
- * This property should be populated when channelType is PartnerTopic and represents information about the partner topic resource corresponding to the channel.
+ * This property should be populated when channelType is PartnerTopic and represents information about the partner
+ * topic resource corresponding to the channel.
*/
- @JsonProperty(value = "partnerTopicInfo")
private PartnerTopicInfo partnerTopicInfo;
/*
- * This property should be populated when channelType is PartnerDestination and represents information about the partner destination resource corresponding to the channel.
+ * This property should be populated when channelType is PartnerDestination and represents information about the
+ * partner destination resource corresponding to the channel.
*/
- @JsonProperty(value = "partnerDestinationInfo")
private PartnerDestinationInfo partnerDestinationInfo;
/*
* Context or helpful message that can be used during the approval process by the subscriber.
*/
- @JsonProperty(value = "messageForActivation")
private String messageForActivation;
/*
* Provisioning state of the channel.
*/
- @JsonProperty(value = "provisioningState")
private ChannelProvisioningState provisioningState;
/*
* The readiness state of the corresponding partner topic.
*/
- @JsonProperty(value = "readinessState")
private ReadinessState readinessState;
/*
* Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated,
* the channel and corresponding partner topic are deleted.
*/
- @JsonProperty(value = "expirationTimeIfNotActivatedUtc")
private OffsetDateTime expirationTimeIfNotActivatedUtc;
/**
@@ -230,4 +231,65 @@ public void validate() {
partnerDestinationInfo().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("channelType", this.channelType == null ? null : this.channelType.toString());
+ jsonWriter.writeJsonField("partnerTopicInfo", this.partnerTopicInfo);
+ jsonWriter.writeJsonField("partnerDestinationInfo", this.partnerDestinationInfo);
+ jsonWriter.writeStringField("messageForActivation", this.messageForActivation);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ jsonWriter.writeStringField("readinessState",
+ this.readinessState == null ? null : this.readinessState.toString());
+ jsonWriter.writeStringField("expirationTimeIfNotActivatedUtc",
+ this.expirationTimeIfNotActivatedUtc == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeIfNotActivatedUtc));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChannelProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChannelProperties 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 ChannelProperties.
+ */
+ public static ChannelProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChannelProperties deserializedChannelProperties = new ChannelProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("channelType".equals(fieldName)) {
+ deserializedChannelProperties.channelType = ChannelType.fromString(reader.getString());
+ } else if ("partnerTopicInfo".equals(fieldName)) {
+ deserializedChannelProperties.partnerTopicInfo = PartnerTopicInfo.fromJson(reader);
+ } else if ("partnerDestinationInfo".equals(fieldName)) {
+ deserializedChannelProperties.partnerDestinationInfo = PartnerDestinationInfo.fromJson(reader);
+ } else if ("messageForActivation".equals(fieldName)) {
+ deserializedChannelProperties.messageForActivation = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedChannelProperties.provisioningState
+ = ChannelProvisioningState.fromString(reader.getString());
+ } else if ("readinessState".equals(fieldName)) {
+ deserializedChannelProperties.readinessState = ReadinessState.fromString(reader.getString());
+ } else if ("expirationTimeIfNotActivatedUtc".equals(fieldName)) {
+ deserializedChannelProperties.expirationTimeIfNotActivatedUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedChannelProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java
index cffa05e8af2ae..3b090b6fcd07a 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java
@@ -5,33 +5,37 @@
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.PartnerUpdateDestinationInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerUpdateTopicInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
/**
* Properties of the channel update parameters.
*/
@Fluent
-public final class ChannelUpdateParametersProperties {
+public final class ChannelUpdateParametersProperties implements JsonSerializable {
/*
- * Expiration time of the channel. If this timer expires while the corresponding partner topic or partner destination is never activated,
+ * Expiration time of the channel. If this timer expires while the corresponding partner topic or partner
+ * destination is never activated,
* the channel and corresponding partner topic or partner destination are deleted.
*/
- @JsonProperty(value = "expirationTimeIfNotActivatedUtc")
private OffsetDateTime expirationTimeIfNotActivatedUtc;
/*
* Partner destination properties which can be updated if the channel is of type PartnerDestination.
*/
- @JsonProperty(value = "partnerDestinationInfo")
private PartnerUpdateDestinationInfo partnerDestinationInfo;
/*
* Partner topic properties which can be updated if the channel is of type PartnerTopic.
*/
- @JsonProperty(value = "partnerTopicInfo")
private PartnerUpdateTopicInfo partnerTopicInfo;
/**
@@ -123,4 +127,53 @@ public void validate() {
partnerTopicInfo().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("expirationTimeIfNotActivatedUtc",
+ this.expirationTimeIfNotActivatedUtc == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeIfNotActivatedUtc));
+ jsonWriter.writeJsonField("partnerDestinationInfo", this.partnerDestinationInfo);
+ jsonWriter.writeJsonField("partnerTopicInfo", this.partnerTopicInfo);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChannelUpdateParametersProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChannelUpdateParametersProperties 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 ChannelUpdateParametersProperties.
+ */
+ public static ChannelUpdateParametersProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChannelUpdateParametersProperties deserializedChannelUpdateParametersProperties
+ = new ChannelUpdateParametersProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("expirationTimeIfNotActivatedUtc".equals(fieldName)) {
+ deserializedChannelUpdateParametersProperties.expirationTimeIfNotActivatedUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("partnerDestinationInfo".equals(fieldName)) {
+ deserializedChannelUpdateParametersProperties.partnerDestinationInfo
+ = PartnerUpdateDestinationInfo.fromJson(reader);
+ } else if ("partnerTopicInfo".equals(fieldName)) {
+ deserializedChannelUpdateParametersProperties.partnerTopicInfo
+ = PartnerUpdateTopicInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedChannelUpdateParametersProperties;
+ });
+ }
}
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 76453747c2009..8df3ba013b331 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
@@ -7,8 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.ClientGroupProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The Client group resource.
@@ -18,15 +21,28 @@ public final class ClientGroupInner extends ProxyResource {
/*
* The properties of client group.
*/
- @JsonProperty(value = "properties")
private ClientGroupProperties innerProperties;
/*
- * The system metadata relating to the ClientGroup resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 ClientGroupInner class.
*/
@@ -43,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.
*/
@@ -51,6 +67,36 @@ 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;
+ }
+
/**
* Get the description property: Description for the Client Group resource.
*
@@ -118,4 +164,49 @@ public void validate() {
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 ClientGroupInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ClientGroupInner 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 ClientGroupInner.
+ */
+ public static ClientGroupInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ClientGroupInner deserializedClientGroupInner = new ClientGroupInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedClientGroupInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedClientGroupInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedClientGroupInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedClientGroupInner.innerProperties = ClientGroupProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedClientGroupInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedClientGroupInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupProperties.java
index eeb5e9906c82c..51ffba927019f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupProperties.java
@@ -5,31 +5,32 @@
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.ClientGroupProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The properties of client group.
*/
@Fluent
-public final class ClientGroupProperties {
+public final class ClientGroupProperties implements JsonSerializable {
/*
* Description for the Client Group resource.
*/
- @JsonProperty(value = "description")
private String description;
/*
* The grouping query for the clients.
* Example : attributes.keyName IN ['a', 'b', 'c'].
*/
- @JsonProperty(value = "query")
private String query;
/*
* Provisioning state of the ClientGroup resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ClientGroupProvisioningState provisioningState;
/**
@@ -96,4 +97,46 @@ public ClientGroupProvisioningState provisioningState() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("query", this.query);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ClientGroupProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ClientGroupProperties 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 ClientGroupProperties.
+ */
+ public static ClientGroupProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ClientGroupProperties deserializedClientGroupProperties = new ClientGroupProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedClientGroupProperties.description = reader.getString();
+ } else if ("query".equals(fieldName)) {
+ deserializedClientGroupProperties.query = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedClientGroupProperties.provisioningState
+ = ClientGroupProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedClientGroupProperties;
+ });
+ }
}
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 64187718bf1bf..ba0c340429351 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
@@ -7,10 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.ClientCertificateAuthentication;
import com.azure.resourcemanager.eventgrid.models.ClientProvisioningState;
import com.azure.resourcemanager.eventgrid.models.ClientState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -21,15 +24,28 @@ public final class ClientInner extends ProxyResource {
/*
* The properties of client.
*/
- @JsonProperty(value = "properties")
private ClientProperties innerProperties;
/*
- * The system metadata relating to the Client resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 ClientInner class.
*/
@@ -46,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.
*/
@@ -54,6 +70,36 @@ 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;
+ }
+
/**
* Get the description property: Description for the Client resource.
*
@@ -195,4 +241,49 @@ public void validate() {
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 ClientInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ClientInner 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 ClientInner.
+ */
+ public static ClientInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ClientInner deserializedClientInner = new ClientInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedClientInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedClientInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedClientInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedClientInner.innerProperties = ClientProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedClientInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedClientInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientProperties.java
index 9ee9d429c9bac..0b46280361fa0 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientProperties.java
@@ -5,40 +5,39 @@
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.ClientCertificateAuthentication;
import com.azure.resourcemanager.eventgrid.models.ClientProvisioningState;
import com.azure.resourcemanager.eventgrid.models.ClientState;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* The properties of client.
*/
@Fluent
-public final class ClientProperties {
+public final class ClientProperties implements JsonSerializable {
/*
* Description for the Client resource.
*/
- @JsonProperty(value = "description")
private String description;
/*
* The name presented by the client for authentication. The default value is the name of the resource.
*/
- @JsonProperty(value = "authenticationName")
private String authenticationName;
/*
* The client certificate authentication information.
*/
- @JsonProperty(value = "clientCertificateAuthentication")
private ClientCertificateAuthentication clientCertificateAuthentication;
/*
* Indicates if the client is enabled or not. Default value is Enabled.
*/
- @JsonProperty(value = "state")
private ClientState state;
/*
@@ -46,14 +45,11 @@ public final class ClientProperties {
* Example:
* "attributes": { "room": "345", "floor": 12, "deviceTypes": ["Fan", "Light"] }
*/
- @JsonProperty(value = "attributes")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map attributes;
/*
* Provisioning state of the Client resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ClientProvisioningState provisioningState;
/**
@@ -188,4 +184,57 @@ public void validate() {
clientCertificateAuthentication().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("authenticationName", this.authenticationName);
+ jsonWriter.writeJsonField("clientCertificateAuthentication", this.clientCertificateAuthentication);
+ jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
+ jsonWriter.writeMapField("attributes", this.attributes, (writer, element) -> writer.writeUntyped(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ClientProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ClientProperties 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 ClientProperties.
+ */
+ public static ClientProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ClientProperties deserializedClientProperties = new ClientProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedClientProperties.description = reader.getString();
+ } else if ("authenticationName".equals(fieldName)) {
+ deserializedClientProperties.authenticationName = reader.getString();
+ } else if ("clientCertificateAuthentication".equals(fieldName)) {
+ deserializedClientProperties.clientCertificateAuthentication
+ = ClientCertificateAuthentication.fromJson(reader);
+ } else if ("state".equals(fieldName)) {
+ deserializedClientProperties.state = ClientState.fromString(reader.getString());
+ } else if ("attributes".equals(fieldName)) {
+ Map attributes = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedClientProperties.attributes = attributes;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedClientProperties.provisioningState
+ = ClientProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedClientProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CustomDomainOwnershipValidationResultInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CustomDomainOwnershipValidationResultInner.java
index 3e858d6b142d6..410ab9de52982 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CustomDomainOwnershipValidationResultInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CustomDomainOwnershipValidationResultInner.java
@@ -5,25 +5,28 @@
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.CustomDomainConfiguration;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Namespace custom domain ownership validation result.
*/
@Fluent
-public final class CustomDomainOwnershipValidationResultInner {
+public final class CustomDomainOwnershipValidationResultInner
+ implements JsonSerializable {
/*
* List of custom domain configurations for the namespace under topics configuration.
*/
- @JsonProperty(value = "customDomainsForTopicsConfiguration")
private List customDomainsForTopicsConfiguration;
/*
* List of custom domain configurations for the namespace under topic spaces configuration.
*/
- @JsonProperty(value = "customDomainsForTopicSpacesConfiguration")
private List customDomainsForTopicSpacesConfiguration;
/**
@@ -91,4 +94,52 @@ public void validate() {
customDomainsForTopicSpacesConfiguration().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("customDomainsForTopicsConfiguration", this.customDomainsForTopicsConfiguration,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("customDomainsForTopicSpacesConfiguration",
+ this.customDomainsForTopicSpacesConfiguration, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CustomDomainOwnershipValidationResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CustomDomainOwnershipValidationResultInner 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 CustomDomainOwnershipValidationResultInner.
+ */
+ public static CustomDomainOwnershipValidationResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CustomDomainOwnershipValidationResultInner deserializedCustomDomainOwnershipValidationResultInner
+ = new CustomDomainOwnershipValidationResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("customDomainsForTopicsConfiguration".equals(fieldName)) {
+ List customDomainsForTopicsConfiguration
+ = reader.readArray(reader1 -> CustomDomainConfiguration.fromJson(reader1));
+ deserializedCustomDomainOwnershipValidationResultInner.customDomainsForTopicsConfiguration
+ = customDomainsForTopicsConfiguration;
+ } else if ("customDomainsForTopicSpacesConfiguration".equals(fieldName)) {
+ List customDomainsForTopicSpacesConfiguration
+ = reader.readArray(reader1 -> CustomDomainConfiguration.fromJson(reader1));
+ deserializedCustomDomainOwnershipValidationResultInner.customDomainsForTopicSpacesConfiguration
+ = customDomainsForTopicSpacesConfiguration;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCustomDomainOwnershipValidationResultInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java
index efb28d2f2d5f5..697d57df9b6e3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java
@@ -5,19 +5,22 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Result of the Get delivery attributes operation.
*/
@Fluent
-public final class DeliveryAttributeListResultInner {
+public final class DeliveryAttributeListResultInner implements JsonSerializable {
/*
* A collection of DeliveryAttributeMapping
*/
- @JsonProperty(value = "value")
private List value;
/**
@@ -56,4 +59,43 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeliveryAttributeListResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeliveryAttributeListResultInner 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 DeliveryAttributeListResultInner.
+ */
+ public static DeliveryAttributeListResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeliveryAttributeListResultInner deserializedDeliveryAttributeListResultInner
+ = new DeliveryAttributeListResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedDeliveryAttributeListResultInner.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeliveryAttributeListResultInner;
+ });
+ }
}
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 2677c90ac1d57..0f3b7128fdee0 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
@@ -7,6 +7,9 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.DomainProvisioningState;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
@@ -17,7 +20,7 @@
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -29,27 +32,38 @@ public final class DomainInner extends Resource {
/*
* Properties of the Event Grid Domain resource.
*/
- @JsonProperty(value = "properties")
private DomainProperties innerProperties;
/*
* The Sku pricing tier for the Event Grid Domain resource.
*/
- @JsonProperty(value = "sku")
private ResourceSku sku;
/*
* Identity information for the Event Grid Domain resource.
*/
- @JsonProperty(value = "identity")
private IdentityInfo identity;
/*
- * The system metadata relating to the Event Grid Domain resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 DomainInner class.
*/
@@ -106,7 +120,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.
*/
@@ -114,6 +128,36 @@ 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}
*/
@@ -484,4 +528,62 @@ public void validate() {
identity().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);
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainInner 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 DomainInner.
+ */
+ public static DomainInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainInner deserializedDomainInner = new DomainInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDomainInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDomainInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDomainInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDomainInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ 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)) {
+ deserializedDomainInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java
index f57c269106b9d..d8a1917b827e5 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java
@@ -5,6 +5,10 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.DomainProvisioningState;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
@@ -13,110 +17,112 @@
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties of the Event Grid Domain Resource.
*/
@Fluent
-public final class DomainProperties {
+public final class DomainProperties implements JsonSerializable {
/*
* List of private endpoint connections.
*/
- @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
/*
* Provisioning state of the Event Grid Domain Resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private DomainProvisioningState provisioningState;
/*
* Minimum TLS version of the publisher allowed to publish to this domain
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
* Endpoint for the Event Grid Domain Resource which is used for publishing the events.
*/
- @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
/*
- * This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain Resource.
+ * This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain
+ * Resource.
*/
- @JsonProperty(value = "inputSchema")
private InputSchema inputSchema;
/*
- * Event Type Information for the domain. This information is provided by the publisher and can be used by the
+ * Event Type Information for the domain. This information is provided by the publisher and can be used by the
* subscriber to view different types of events that are published.
*/
- @JsonProperty(value = "eventTypeInfo")
private EventTypeInfo eventTypeInfo;
/*
* Information about the InputSchemaMapping which specified the info about mapping event payload.
*/
- @JsonProperty(value = "inputSchemaMapping")
private InputSchemaMapping inputSchemaMapping;
/*
* Metric resource id for the Event Grid Domain Resource.
*/
- @JsonProperty(value = "metricResourceId", access = JsonProperty.Access.WRITE_ONLY)
private String metricResourceId;
/*
* This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the domain.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the domain.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
- * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.
- * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true.
- * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic when the first event subscription is
- * created at the scope of the domain topic. If this property is set to false, then creating the first event subscription will require creating a domain topic
- * by the user. The self-management mode can be used if the user wants full control of when the domain topic is created, while auto-managed mode provides the
- * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed creation mode, user is allowed to create the
+ * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with
+ * this Event Grid Domain resource.
+ * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The
+ * default value for this property is true.
+ * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic
+ * when the first event subscription is
+ * created at the scope of the domain topic. If this property is set to false, then creating the first event
+ * subscription will require creating a domain topic
+ * by the user. The self-management mode can be used if the user wants full control of when the domain topic is
+ * created, while auto-managed mode provides the
+ * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed
+ * creation mode, user is allowed to create the
* domain topic on demand if needed.
*/
- @JsonProperty(value = "autoCreateTopicWithFirstSubscription")
private Boolean autoCreateTopicWithFirstSubscription;
/*
- * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.
- * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true.
- * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the last event subscription at the scope
- * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the domain topic when it is no longer needed
- * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode can be used if the user wants full
- * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer
+ * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with
+ * this Event Grid Domain resource.
+ * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The
+ * default value for this property is true.
+ * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the
+ * last event subscription at the scope
+ * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the
+ * domain topic when it is no longer needed
+ * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode
+ * can be used if the user wants full
+ * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform
+ * less operations and manage fewer
* resources by the user.
*/
- @JsonProperty(value = "autoDeleteTopicWithLastSubscription")
private Boolean autoDeleteTopicWithLastSubscription;
/*
* Data Residency Boundary of the resource.
*/
- @JsonProperty(value = "dataResidencyBoundary")
private DataResidencyBoundary dataResidencyBoundary;
/**
@@ -450,4 +456,87 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeStringField("inputSchema", this.inputSchema == null ? null : this.inputSchema.toString());
+ jsonWriter.writeJsonField("eventTypeInfo", this.eventTypeInfo);
+ jsonWriter.writeJsonField("inputSchemaMapping", this.inputSchemaMapping);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeBooleanField("autoCreateTopicWithFirstSubscription", this.autoCreateTopicWithFirstSubscription);
+ jsonWriter.writeBooleanField("autoDeleteTopicWithLastSubscription", this.autoDeleteTopicWithLastSubscription);
+ jsonWriter.writeStringField("dataResidencyBoundary",
+ this.dataResidencyBoundary == null ? null : this.dataResidencyBoundary.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainProperties 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 DomainProperties.
+ */
+ public static DomainProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainProperties deserializedDomainProperties = new DomainProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
+ deserializedDomainProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedDomainProperties.provisioningState
+ = DomainProvisioningState.fromString(reader.getString());
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedDomainProperties.minimumTlsVersionAllowed = TlsVersion.fromString(reader.getString());
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedDomainProperties.endpoint = reader.getString();
+ } else if ("inputSchema".equals(fieldName)) {
+ deserializedDomainProperties.inputSchema = InputSchema.fromString(reader.getString());
+ } else if ("eventTypeInfo".equals(fieldName)) {
+ deserializedDomainProperties.eventTypeInfo = EventTypeInfo.fromJson(reader);
+ } else if ("inputSchemaMapping".equals(fieldName)) {
+ deserializedDomainProperties.inputSchemaMapping = InputSchemaMapping.fromJson(reader);
+ } else if ("metricResourceId".equals(fieldName)) {
+ deserializedDomainProperties.metricResourceId = reader.getString();
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedDomainProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedDomainProperties.inboundIpRules = inboundIpRules;
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedDomainProperties.disableLocalAuth = reader.getNullable(JsonReader::getBoolean);
+ } else if ("autoCreateTopicWithFirstSubscription".equals(fieldName)) {
+ deserializedDomainProperties.autoCreateTopicWithFirstSubscription
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("autoDeleteTopicWithLastSubscription".equals(fieldName)) {
+ deserializedDomainProperties.autoDeleteTopicWithLastSubscription
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataResidencyBoundary".equals(fieldName)) {
+ deserializedDomainProperties.dataResidencyBoundary
+ = DataResidencyBoundary.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java
index 348b3f8643586..7e1daa31d8257 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Shared access keys of the Domain.
*/
@Fluent
-public final class DomainSharedAccessKeysInner {
+public final class DomainSharedAccessKeysInner implements JsonSerializable {
/*
* Shared access key1 for the domain.
*/
- @JsonProperty(value = "key1")
private String key1;
/*
* Shared access key2 for the domain.
*/
- @JsonProperty(value = "key2")
private String key2;
/**
@@ -77,4 +79,43 @@ public DomainSharedAccessKeysInner withKey2(String key2) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key1", this.key1);
+ jsonWriter.writeStringField("key2", this.key2);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainSharedAccessKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainSharedAccessKeysInner 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 DomainSharedAccessKeysInner.
+ */
+ public static DomainSharedAccessKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainSharedAccessKeysInner deserializedDomainSharedAccessKeysInner = new DomainSharedAccessKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key1".equals(fieldName)) {
+ deserializedDomainSharedAccessKeysInner.key1 = reader.getString();
+ } else if ("key2".equals(fieldName)) {
+ deserializedDomainSharedAccessKeysInner.key2 = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainSharedAccessKeysInner;
+ });
+ }
}
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 38bb1baaea56e..99475d92b49c0 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
@@ -7,8 +7,11 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
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.DomainTopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Domain Topic.
@@ -18,15 +21,28 @@ public final class DomainTopicInner extends ProxyResource {
/*
* Properties of the Domain Topic.
*/
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private DomainTopicProperties innerProperties;
/*
- * The system metadata relating to Domain Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 DomainTopicInner class.
*/
@@ -43,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.
*/
@@ -51,6 +67,36 @@ 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;
+ }
+
/**
* Get the provisioningState property: Provisioning state of the domain topic.
*
@@ -70,4 +116,48 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainTopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainTopicInner 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 DomainTopicInner.
+ */
+ public static DomainTopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainTopicInner deserializedDomainTopicInner = new DomainTopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDomainTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDomainTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDomainTopicInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDomainTopicInner.innerProperties = DomainTopicProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDomainTopicInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java
index 971f495cb0042..d88d694749ab5 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java
@@ -5,18 +5,21 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Immutable;
+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.DomainTopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Properties of the Domain Topic.
*/
@Immutable
-public final class DomainTopicProperties {
+public final class DomainTopicProperties implements JsonSerializable {
/*
* Provisioning state of the domain topic.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private DomainTopicProvisioningState provisioningState;
/**
@@ -41,4 +44,40 @@ public DomainTopicProvisioningState provisioningState() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainTopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainTopicProperties 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 DomainTopicProperties.
+ */
+ public static DomainTopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainTopicProperties deserializedDomainTopicProperties = new DomainTopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedDomainTopicProperties.provisioningState
+ = DomainTopicProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainTopicProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java
index a0ffde4dd6148..49c4c0bc60707 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java
@@ -5,78 +5,90 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Information of domain update parameter properties.
*/
@Fluent
-public final class DomainUpdateParameterProperties {
+public final class DomainUpdateParameterProperties implements JsonSerializable {
/*
- * This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
* Minimum TLS version of the publisher allowed to publish to this domain
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the domain.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the domain.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
- * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.
- * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true.
- * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic when the first event subscription is
- * created at the scope of the domain topic. If this property is set to false, then creating the first event subscription will require creating a domain topic
- * by the user. The self-management mode can be used if the user wants full control of when the domain topic is created, while auto-managed mode provides the
- * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed creation mode, user is allowed to create the
+ * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with
+ * this Event Grid Domain resource.
+ * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The
+ * default value for this property is true.
+ * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic
+ * when the first event subscription is
+ * created at the scope of the domain topic. If this property is set to false, then creating the first event
+ * subscription will require creating a domain topic
+ * by the user. The self-management mode can be used if the user wants full control of when the domain topic is
+ * created, while auto-managed mode provides the
+ * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed
+ * creation mode, user is allowed to create the
* domain topic on demand if needed.
*/
- @JsonProperty(value = "autoCreateTopicWithFirstSubscription")
private Boolean autoCreateTopicWithFirstSubscription;
/*
- * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain resource.
- * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The default value for this property is true.
- * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the last event subscription at the scope
- * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the domain topic when it is no longer needed
- * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode can be used if the user wants full
- * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform less operations and manage fewer
+ * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with
+ * this Event Grid Domain resource.
+ * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The
+ * default value for this property is true.
+ * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the
+ * last event subscription at the scope
+ * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the
+ * domain topic when it is no longer needed
+ * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management mode
+ * can be used if the user wants full
+ * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to perform
+ * less operations and manage fewer
* resources by the user.
*/
- @JsonProperty(value = "autoDeleteTopicWithLastSubscription")
private Boolean autoDeleteTopicWithLastSubscription;
/*
* The data residency boundary for the domain.
*/
- @JsonProperty(value = "dataResidencyBoundary")
private DataResidencyBoundary dataResidencyBoundary;
/*
* The eventTypeInfo for the domain.
*/
- @JsonProperty(value = "eventTypeInfo")
private EventTypeInfo eventTypeInfo;
/**
@@ -324,4 +336,73 @@ public void validate() {
eventTypeInfo().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeBooleanField("autoCreateTopicWithFirstSubscription", this.autoCreateTopicWithFirstSubscription);
+ jsonWriter.writeBooleanField("autoDeleteTopicWithLastSubscription", this.autoDeleteTopicWithLastSubscription);
+ jsonWriter.writeStringField("dataResidencyBoundary",
+ this.dataResidencyBoundary == null ? null : this.dataResidencyBoundary.toString());
+ jsonWriter.writeJsonField("eventTypeInfo", this.eventTypeInfo);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DomainUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DomainUpdateParameterProperties 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 DomainUpdateParameterProperties.
+ */
+ public static DomainUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DomainUpdateParameterProperties deserializedDomainUpdateParameterProperties
+ = new DomainUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedDomainUpdateParameterProperties.inboundIpRules = inboundIpRules;
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("autoCreateTopicWithFirstSubscription".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.autoCreateTopicWithFirstSubscription
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("autoDeleteTopicWithLastSubscription".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.autoDeleteTopicWithLastSubscription
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataResidencyBoundary".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.dataResidencyBoundary
+ = DataResidencyBoundary.fromString(reader.getString());
+ } else if ("eventTypeInfo".equals(fieldName)) {
+ deserializedDomainUpdateParameterProperties.eventTypeInfo = EventTypeInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDomainUpdateParameterProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java
index c471f155b7cb3..cd82a209c83d1 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 dynamic delivery attribute mapping.
*/
@Fluent
-public final class DynamicDeliveryAttributeMappingProperties {
+public final class DynamicDeliveryAttributeMappingProperties
+ implements JsonSerializable {
/*
* JSON path in the event which contains attribute value.
*/
- @JsonProperty(value = "sourceField")
private String sourceField;
/**
@@ -51,4 +55,41 @@ public DynamicDeliveryAttributeMappingProperties withSourceField(String sourceFi
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("sourceField", this.sourceField);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DynamicDeliveryAttributeMappingProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DynamicDeliveryAttributeMappingProperties 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 DynamicDeliveryAttributeMappingProperties.
+ */
+ public static DynamicDeliveryAttributeMappingProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DynamicDeliveryAttributeMappingProperties deserializedDynamicDeliveryAttributeMappingProperties
+ = new DynamicDeliveryAttributeMappingProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sourceField".equals(fieldName)) {
+ deserializedDynamicDeliveryAttributeMappingProperties.sourceField = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDynamicDeliveryAttributeMappingProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java
index a26a746cc3452..3e85fad351384 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java
@@ -5,25 +5,28 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties for a event hub destination.
*/
@Fluent
-public final class EventHubEventSubscriptionDestinationProperties {
+public final class EventHubEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
@@ -85,4 +88,48 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventHubEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventHubEventSubscriptionDestinationProperties 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 EventHubEventSubscriptionDestinationProperties.
+ */
+ public static EventHubEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventHubEventSubscriptionDestinationProperties deserializedEventHubEventSubscriptionDestinationProperties
+ = new EventHubEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedEventHubEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedEventHubEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventHubEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java
index 234309cddcf29..9a748ceaf99f0 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Full endpoint URL of an event subscription.
*/
@Fluent
-public final class EventSubscriptionFullUrlInner {
+public final class EventSubscriptionFullUrlInner implements JsonSerializable {
/*
* The URL that represents the endpoint of the destination of an event subscription.
*/
- @JsonProperty(value = "endpointUrl")
private String endpointUrl;
/**
@@ -51,4 +54,41 @@ public EventSubscriptionFullUrlInner withEndpointUrl(String endpointUrl) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("endpointUrl", this.endpointUrl);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventSubscriptionFullUrlInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventSubscriptionFullUrlInner 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 EventSubscriptionFullUrlInner.
+ */
+ public static EventSubscriptionFullUrlInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventSubscriptionFullUrlInner deserializedEventSubscriptionFullUrlInner
+ = new EventSubscriptionFullUrlInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpointUrl".equals(fieldName)) {
+ deserializedEventSubscriptionFullUrlInner.endpointUrl = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventSubscriptionFullUrlInner;
+ });
+ }
}
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 a192bd9555b0f..97cdd1405fec1 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
@@ -7,6 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.DeadLetterDestination;
import com.azure.resourcemanager.eventgrid.models.DeadLetterWithResourceIdentity;
import com.azure.resourcemanager.eventgrid.models.DeliveryWithResourceIdentity;
@@ -15,7 +18,7 @@
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionProvisioningState;
import com.azure.resourcemanager.eventgrid.models.RetryPolicy;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
@@ -27,15 +30,28 @@ public final class EventSubscriptionInner extends ProxyResource {
/*
* Properties of the event subscription.
*/
- @JsonProperty(value = "properties")
private EventSubscriptionProperties innerProperties;
/*
- * The system metadata relating to Event Subscription resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 EventSubscriptionInner class.
*/
@@ -52,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.
*/
@@ -60,6 +76,36 @@ 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;
+ }
+
/**
* Get the topic property: Name of the topic of the event subscription.
*
@@ -323,4 +369,49 @@ public void validate() {
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 EventSubscriptionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventSubscriptionInner 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 EventSubscriptionInner.
+ */
+ public static EventSubscriptionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventSubscriptionInner deserializedEventSubscriptionInner = new EventSubscriptionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEventSubscriptionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEventSubscriptionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEventSubscriptionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedEventSubscriptionInner.innerProperties = EventSubscriptionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEventSubscriptionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventSubscriptionInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java
index d9ef242338797..fa8ce7d8d4933 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java
@@ -5,6 +5,11 @@
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.DeadLetterDestination;
import com.azure.resourcemanager.eventgrid.models.DeadLetterWithResourceIdentity;
import com.azure.resourcemanager.eventgrid.models.DeliveryWithResourceIdentity;
@@ -13,83 +18,80 @@
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionProvisioningState;
import com.azure.resourcemanager.eventgrid.models.RetryPolicy;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
import java.util.List;
/**
* Properties of the Event Subscription.
*/
@Fluent
-public final class EventSubscriptionProperties {
+public final class EventSubscriptionProperties implements JsonSerializable {
/*
* Name of the topic of the event subscription.
*/
- @JsonProperty(value = "topic", access = JsonProperty.Access.WRITE_ONLY)
private String topic;
/*
* Provisioning state of the event subscription.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private EventSubscriptionProvisioningState provisioningState;
/*
* Information about the destination where events have to be delivered for the event subscription.
- * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
+ * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery /
+ * dead-lettering.
*/
- @JsonProperty(value = "destination")
private EventSubscriptionDestination destination;
/*
* Information about the destination where events have to be delivered for the event subscription.
- * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
+ * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication
+ * tokens being used during delivery / dead-lettering.
*/
- @JsonProperty(value = "deliveryWithResourceIdentity")
private DeliveryWithResourceIdentity deliveryWithResourceIdentity;
/*
* Information about the filter for the event subscription.
*/
- @JsonProperty(value = "filter")
private EventSubscriptionFilter filter;
/*
* List of user defined labels.
*/
- @JsonProperty(value = "labels")
private List labels;
/*
* Expiration time of the event subscription.
*/
- @JsonProperty(value = "expirationTimeUtc")
private OffsetDateTime expirationTimeUtc;
/*
* The event delivery schema for the event subscription.
*/
- @JsonProperty(value = "eventDeliverySchema")
private EventDeliverySchema eventDeliverySchema;
/*
- * The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
+ * The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live
+ * for events.
*/
- @JsonProperty(value = "retryPolicy")
private RetryPolicy retryPolicy;
/*
- * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
- * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
+ * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is
+ * sent to the dead letter destination.
+ * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery /
+ * dead-lettering.
*/
- @JsonProperty(value = "deadLetterDestination")
private DeadLetterDestination deadLetterDestination;
/*
- * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
- * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
+ * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is
+ * sent to the dead letter destination.
+ * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication
+ * tokens being used during delivery / dead-lettering.
*/
- @JsonProperty(value = "deadLetterWithResourceIdentity")
private DeadLetterWithResourceIdentity deadLetterWithResourceIdentity;
/**
@@ -349,4 +351,79 @@ public void validate() {
deadLetterWithResourceIdentity().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("destination", this.destination);
+ jsonWriter.writeJsonField("deliveryWithResourceIdentity", this.deliveryWithResourceIdentity);
+ jsonWriter.writeJsonField("filter", this.filter);
+ jsonWriter.writeArrayField("labels", this.labels, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("expirationTimeUtc",
+ this.expirationTimeUtc == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeUtc));
+ jsonWriter.writeStringField("eventDeliverySchema",
+ this.eventDeliverySchema == null ? null : this.eventDeliverySchema.toString());
+ jsonWriter.writeJsonField("retryPolicy", this.retryPolicy);
+ jsonWriter.writeJsonField("deadLetterDestination", this.deadLetterDestination);
+ jsonWriter.writeJsonField("deadLetterWithResourceIdentity", this.deadLetterWithResourceIdentity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventSubscriptionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventSubscriptionProperties 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 EventSubscriptionProperties.
+ */
+ public static EventSubscriptionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventSubscriptionProperties deserializedEventSubscriptionProperties = new EventSubscriptionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("topic".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.topic = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.provisioningState
+ = EventSubscriptionProvisioningState.fromString(reader.getString());
+ } else if ("destination".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.destination = EventSubscriptionDestination.fromJson(reader);
+ } else if ("deliveryWithResourceIdentity".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.deliveryWithResourceIdentity
+ = DeliveryWithResourceIdentity.fromJson(reader);
+ } else if ("filter".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.filter = EventSubscriptionFilter.fromJson(reader);
+ } else if ("labels".equals(fieldName)) {
+ List labels = reader.readArray(reader1 -> reader1.getString());
+ deserializedEventSubscriptionProperties.labels = labels;
+ } else if ("expirationTimeUtc".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.expirationTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("eventDeliverySchema".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.eventDeliverySchema
+ = EventDeliverySchema.fromString(reader.getString());
+ } else if ("retryPolicy".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.retryPolicy = RetryPolicy.fromJson(reader);
+ } else if ("deadLetterDestination".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.deadLetterDestination
+ = DeadLetterDestination.fromJson(reader);
+ } else if ("deadLetterWithResourceIdentity".equals(fieldName)) {
+ deserializedEventSubscriptionProperties.deadLetterWithResourceIdentity
+ = DeadLetterWithResourceIdentity.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventSubscriptionProperties;
+ });
+ }
}
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 c3ac57df7a055..33d6f77aad88a 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
@@ -6,7 +6,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Event Type for a subject under a topic.
@@ -16,9 +19,23 @@ public final class EventTypeInner extends ProxyResource {
/*
* Properties of the event type.
*/
- @JsonProperty(value = "properties")
private EventTypeProperties innerProperties;
+ /*
+ * 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 EventTypeInner class.
*/
@@ -34,6 +51,36 @@ private EventTypeProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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;
+ }
+
/**
* Get the displayName property: Display name of the event type.
*
@@ -81,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.
*/
@@ -90,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.
@@ -136,4 +183,47 @@ public void validate() {
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 EventTypeInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventTypeInner 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 EventTypeInner.
+ */
+ public static EventTypeInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventTypeInner deserializedEventTypeInner = new EventTypeInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEventTypeInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEventTypeInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEventTypeInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedEventTypeInner.innerProperties = EventTypeProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventTypeInner;
+ });
+ }
}
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 666a75ff76839..48ede06add4dc 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
@@ -5,35 +5,35 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 the event type.
*/
@Fluent
-public final class EventTypeProperties {
+public final class EventTypeProperties implements JsonSerializable {
/*
* Display name of the event type.
*/
- @JsonProperty(value = "displayName")
private String displayName;
/*
* Description of the event type.
*/
- @JsonProperty(value = "description")
private String description;
/*
- * Url of the schema for this event type.
+ * URL of the schema for this event type.
*/
- @JsonProperty(value = "schemaUrl")
private String schemaUrl;
/*
* IsInDefaultSet flag of the event type.
*/
- @JsonProperty(value = "isInDefaultSet")
private Boolean isInDefaultSet;
/**
@@ -83,7 +83,7 @@ public EventTypeProperties 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.
*/
@@ -92,7 +92,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 EventTypeProperties object itself.
@@ -129,4 +129,49 @@ public EventTypeProperties withIsInDefaultSet(Boolean isInDefaultSet) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("displayName", this.displayName);
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("schemaUrl", this.schemaUrl);
+ jsonWriter.writeBooleanField("isInDefaultSet", this.isInDefaultSet);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventTypeProperties 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 EventTypeProperties.
+ */
+ public static EventTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventTypeProperties deserializedEventTypeProperties = new EventTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("displayName".equals(fieldName)) {
+ deserializedEventTypeProperties.displayName = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedEventTypeProperties.description = reader.getString();
+ } else if ("schemaUrl".equals(fieldName)) {
+ deserializedEventTypeProperties.schemaUrl = reader.getString();
+ } else if ("isInDefaultSet".equals(fieldName)) {
+ deserializedEventTypeProperties.isInDefaultSet = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventTypeProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java
index 11ac4cec9c740..5690311a12e8e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java
@@ -7,7 +7,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Event grid Extension Topic. This is used for getting Event Grid related metrics for Azure resources.
@@ -17,15 +20,28 @@ public final class ExtensionTopicInner extends ProxyResource {
/*
* Properties of the extension topic.
*/
- @JsonProperty(value = "properties")
private ExtensionTopicProperties innerProperties;
/*
- * The system metadata relating to Extension Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 ExtensionTopicInner class.
*/
@@ -42,7 +58,7 @@ private ExtensionTopicProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Extension Topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -50,6 +66,36 @@ 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;
+ }
+
/**
* Get the description property: Description of the extension topic.
*
@@ -106,4 +152,49 @@ public void validate() {
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 ExtensionTopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExtensionTopicInner 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 ExtensionTopicInner.
+ */
+ public static ExtensionTopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExtensionTopicInner deserializedExtensionTopicInner = new ExtensionTopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedExtensionTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedExtensionTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedExtensionTopicInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedExtensionTopicInner.innerProperties = ExtensionTopicProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedExtensionTopicInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExtensionTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java
index 372bbbd93085f..890cda7e8199d 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 the Extension Topic.
*/
@Fluent
-public final class ExtensionTopicProperties {
+public final class ExtensionTopicProperties implements JsonSerializable {
/*
* Description of the extension topic.
*/
- @JsonProperty(value = "description")
private String description;
/*
* System topic resource id which is mapped to the source.
*/
- @JsonProperty(value = "systemTopic")
private String systemTopic;
/**
@@ -77,4 +79,43 @@ public ExtensionTopicProperties withSystemTopic(String systemTopic) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("systemTopic", this.systemTopic);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExtensionTopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExtensionTopicProperties 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 ExtensionTopicProperties.
+ */
+ public static ExtensionTopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExtensionTopicProperties deserializedExtensionTopicProperties = new ExtensionTopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedExtensionTopicProperties.description = reader.getString();
+ } else if ("systemTopic".equals(fieldName)) {
+ deserializedExtensionTopicProperties.systemTopic = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExtensionTopicProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java
index e80b19f88c630..da441166b4fd1 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java
@@ -5,25 +5,28 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties for a hybrid connection destination.
*/
@Fluent
-public final class HybridConnectionEventSubscriptionDestinationProperties {
+public final class HybridConnectionEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource ID of an hybrid connection that is the destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
@@ -85,4 +88,49 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HybridConnectionEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HybridConnectionEventSubscriptionDestinationProperties 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 HybridConnectionEventSubscriptionDestinationProperties.
+ */
+ public static HybridConnectionEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ HybridConnectionEventSubscriptionDestinationProperties deserializedHybridConnectionEventSubscriptionDestinationProperties
+ = new HybridConnectionEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedHybridConnectionEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedHybridConnectionEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHybridConnectionEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java
index 1ca6ea1d1b01c..4713e909cbe68 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java
@@ -5,50 +5,48 @@
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.JsonField;
import com.azure.resourcemanager.eventgrid.models.JsonFieldWithDefault;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* This can be used to map properties of a source schema (or default values, for certain supported properties) to
* properties of the EventGridEvent schema.
*/
@Fluent
-public final class JsonInputSchemaMappingProperties {
+public final class JsonInputSchemaMappingProperties implements JsonSerializable {
/*
* The mapping information for the Id property of the Event Grid Event.
*/
- @JsonProperty(value = "id")
private JsonField id;
/*
* The mapping information for the Topic property of the Event Grid Event.
*/
- @JsonProperty(value = "topic")
private JsonField topic;
/*
* The mapping information for the EventTime property of the Event Grid Event.
*/
- @JsonProperty(value = "eventTime")
private JsonField eventTime;
/*
* The mapping information for the EventType property of the Event Grid Event.
*/
- @JsonProperty(value = "eventType")
private JsonFieldWithDefault eventType;
/*
* The mapping information for the Subject property of the Event Grid Event.
*/
- @JsonProperty(value = "subject")
private JsonFieldWithDefault subject;
/*
* The mapping information for the DataVersion property of the Event Grid Event.
*/
- @JsonProperty(value = "dataVersion")
private JsonFieldWithDefault dataVersion;
/**
@@ -202,4 +200,56 @@ public void validate() {
dataVersion().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("id", this.id);
+ jsonWriter.writeJsonField("topic", this.topic);
+ jsonWriter.writeJsonField("eventTime", this.eventTime);
+ jsonWriter.writeJsonField("eventType", this.eventType);
+ jsonWriter.writeJsonField("subject", this.subject);
+ jsonWriter.writeJsonField("dataVersion", this.dataVersion);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of JsonInputSchemaMappingProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of JsonInputSchemaMappingProperties 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 JsonInputSchemaMappingProperties.
+ */
+ public static JsonInputSchemaMappingProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ JsonInputSchemaMappingProperties deserializedJsonInputSchemaMappingProperties
+ = new JsonInputSchemaMappingProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.id = JsonField.fromJson(reader);
+ } else if ("topic".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.topic = JsonField.fromJson(reader);
+ } else if ("eventTime".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.eventTime = JsonField.fromJson(reader);
+ } else if ("eventType".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.eventType = JsonFieldWithDefault.fromJson(reader);
+ } else if ("subject".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.subject = JsonFieldWithDefault.fromJson(reader);
+ } else if ("dataVersion".equals(fieldName)) {
+ deserializedJsonInputSchemaMappingProperties.dataVersion = JsonFieldWithDefault.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedJsonInputSchemaMappingProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/MonitorAlertEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/MonitorAlertEventSubscriptionDestinationProperties.java
index cd97a7da21b10..60d6e771a7aef 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/MonitorAlertEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/MonitorAlertEventSubscriptionDestinationProperties.java
@@ -5,33 +5,37 @@
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.MonitorAlertSeverity;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties that represent the Monitor Alert destination of an event subscription.
*/
@Fluent
-public final class MonitorAlertEventSubscriptionDestinationProperties {
+public final class MonitorAlertEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The severity that will be attached to every Alert fired through this event subscription.
* This field must be provided.
*/
- @JsonProperty(value = "severity")
private MonitorAlertSeverity severity;
/*
* The description that will be attached to every Alert fired through this event subscription.
*/
- @JsonProperty(value = "description")
private String description;
/*
* The list of ARM Ids of Action Groups that will be triggered on every Alert fired through this event subscription.
- * Each resource ARM Id should follow this pattern: /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Insights/actionGroups/{ActionGroupName}.
+ * Each resource ARM Id should follow this pattern:
+ * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Insights/actionGroups
+ * /{ActionGroupName}.
*/
- @JsonProperty(value = "actionGroups")
private List actionGroups;
/**
@@ -119,4 +123,50 @@ public MonitorAlertEventSubscriptionDestinationProperties withActionGroups(List<
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("severity", this.severity == null ? null : this.severity.toString());
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeArrayField("actionGroups", this.actionGroups, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MonitorAlertEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MonitorAlertEventSubscriptionDestinationProperties 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 MonitorAlertEventSubscriptionDestinationProperties.
+ */
+ public static MonitorAlertEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ MonitorAlertEventSubscriptionDestinationProperties deserializedMonitorAlertEventSubscriptionDestinationProperties
+ = new MonitorAlertEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("severity".equals(fieldName)) {
+ deserializedMonitorAlertEventSubscriptionDestinationProperties.severity
+ = MonitorAlertSeverity.fromString(reader.getString());
+ } else if ("description".equals(fieldName)) {
+ deserializedMonitorAlertEventSubscriptionDestinationProperties.description = reader.getString();
+ } else if ("actionGroups".equals(fieldName)) {
+ List actionGroups = reader.readArray(reader1 -> reader1.getString());
+ deserializedMonitorAlertEventSubscriptionDestinationProperties.actionGroups = actionGroups;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMonitorAlertEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceInner.java
index 457bf63e9721e..f5d936405af99 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceInner.java
@@ -7,15 +7,18 @@
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.IdentityInfo;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.NamespaceProvisioningState;
import com.azure.resourcemanager.eventgrid.models.NamespaceSku;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
import com.azure.resourcemanager.eventgrid.models.TopicSpacesConfiguration;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -27,27 +30,38 @@ public final class NamespaceInner extends Resource {
/*
* Properties of the Namespace resource.
*/
- @JsonProperty(value = "properties")
private NamespaceProperties innerProperties;
/*
* Represents available Sku pricing tiers.
*/
- @JsonProperty(value = "sku")
private NamespaceSku sku;
/*
* Identity information for the Namespace resource.
*/
- @JsonProperty(value = "identity")
private IdentityInfo identity;
/*
- * The system metadata relating to the namespace resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 NamespaceInner class.
*/
@@ -104,7 +118,7 @@ public NamespaceInner withIdentity(IdentityInfo identity) {
}
/**
- * Get the systemData property: The system metadata relating to the namespace resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -112,6 +126,36 @@ 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}
*/
@@ -339,4 +383,62 @@ public void validate() {
identity().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);
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceInner 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 NamespaceInner.
+ */
+ public static NamespaceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceInner deserializedNamespaceInner = new NamespaceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNamespaceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNamespaceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNamespaceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedNamespaceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedNamespaceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedNamespaceInner.innerProperties = NamespaceProperties.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedNamespaceInner.sku = NamespaceSku.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedNamespaceInner.identity = IdentityInfo.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNamespaceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceProperties.java
index fced657a4571e..c10d12647a558 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceProperties.java
@@ -5,71 +5,70 @@
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.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.NamespaceProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
import com.azure.resourcemanager.eventgrid.models.TopicSpacesConfiguration;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
+import java.io.IOException;
import java.util.List;
/**
* Properties of the namespace resource.
*/
@Fluent
-public final class NamespaceProperties {
+public final class NamespaceProperties implements JsonSerializable {
/*
* List of private endpoint connections.
*/
- @JsonProperty(value = "privateEndpointConnections")
private List privateEndpointConnections;
/*
* Provisioning state of the namespace resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private NamespaceProvisioningState provisioningState;
/*
* Topics configuration information for the namespace resource
*/
- @JsonProperty(value = "topicsConfiguration")
private TopicsConfiguration topicsConfiguration;
/*
* Topic spaces configuration information for the namespace resource
*/
- @JsonProperty(value = "topicSpacesConfiguration")
private TopicSpacesConfiguration topicSpacesConfiguration;
/*
- * This is an optional property and it allows the user to specify if the namespace resource supports zone-redundancy capability or not. If this
+ * This is an optional property and it allows the user to specify if the namespace resource supports zone-redundancy
+ * capability or not. If this
* property is not specified explicitly by the user, its default value depends on the following conditions:
- * a. For Availability Zones enabled regions - The default property value would be true.
- * b. For non-Availability Zones enabled regions - The default property value would be false.
+ * a. For Availability Zones enabled regions - The default property value would be true.
+ * b. For non-Availability Zones enabled regions - The default property value would be false.
* Once specified, this property cannot be updated.
*/
- @JsonProperty(value = "isZoneRedundant")
private Boolean isZoneRedundant;
/*
* This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
* Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/**
@@ -269,4 +268,71 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("privateEndpointConnections", this.privateEndpointConnections,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("topicsConfiguration", this.topicsConfiguration);
+ jsonWriter.writeJsonField("topicSpacesConfiguration", this.topicSpacesConfiguration);
+ jsonWriter.writeBooleanField("isZoneRedundant", this.isZoneRedundant);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceProperties 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 NamespaceProperties.
+ */
+ public static NamespaceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceProperties deserializedNamespaceProperties = new NamespaceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
+ deserializedNamespaceProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedNamespaceProperties.provisioningState
+ = NamespaceProvisioningState.fromString(reader.getString());
+ } else if ("topicsConfiguration".equals(fieldName)) {
+ deserializedNamespaceProperties.topicsConfiguration = TopicsConfiguration.fromJson(reader);
+ } else if ("topicSpacesConfiguration".equals(fieldName)) {
+ deserializedNamespaceProperties.topicSpacesConfiguration
+ = TopicSpacesConfiguration.fromJson(reader);
+ } else if ("isZoneRedundant".equals(fieldName)) {
+ deserializedNamespaceProperties.isZoneRedundant = reader.getNullable(JsonReader::getBoolean);
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedNamespaceProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedNamespaceProperties.inboundIpRules = inboundIpRules;
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedNamespaceProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceSharedAccessKeysInner.java
index aabc344a92286..b2ebff88181cd 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceSharedAccessKeysInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceSharedAccessKeysInner.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Shared access keys of the Namespace.
*/
@Fluent
-public final class NamespaceSharedAccessKeysInner {
+public final class NamespaceSharedAccessKeysInner implements JsonSerializable {
/*
* Shared access key1 for the namespace.
*/
- @JsonProperty(value = "key1")
private String key1;
/*
* Shared access key2 for the namespace.
*/
- @JsonProperty(value = "key2")
private String key2;
/**
@@ -77,4 +79,44 @@ public NamespaceSharedAccessKeysInner withKey2(String key2) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key1", this.key1);
+ jsonWriter.writeStringField("key2", this.key2);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceSharedAccessKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceSharedAccessKeysInner 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 NamespaceSharedAccessKeysInner.
+ */
+ public static NamespaceSharedAccessKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceSharedAccessKeysInner deserializedNamespaceSharedAccessKeysInner
+ = new NamespaceSharedAccessKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key1".equals(fieldName)) {
+ deserializedNamespaceSharedAccessKeysInner.key1 = reader.getString();
+ } else if ("key2".equals(fieldName)) {
+ deserializedNamespaceSharedAccessKeysInner.key2 = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceSharedAccessKeysInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicEventSubscriptionDestinationProperties.java
index 51100485aeb86..9539d261243d3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicEventSubscriptionDestinationProperties.java
@@ -5,19 +5,26 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 properties that represent the Event Grid Namespace Topic destination of an event subscription.
*/
@Fluent
-public final class NamespaceTopicEventSubscriptionDestinationProperties {
+public final class NamespaceTopicEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
- * The Azure resource Id that represents the endpoint of the Event Grid Namespace Topic destination of an event subscription.
+ * The Azure resource Id that represents the endpoint of the Event Grid Namespace Topic destination of an event
+ * subscription.
* This field is required and the Namespace Topic resource listed must already exist.
- * The resource ARM Id should follow this pattern: /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.EventGrid/namespaces/{NamespaceName}/topics/{TopicName}.
+ * The resource ARM Id should follow this pattern:
+ * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.EventGrid/namespaces/
+ * {NamespaceName}/topics/{TopicName}.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/**
@@ -61,4 +68,42 @@ public NamespaceTopicEventSubscriptionDestinationProperties withResourceId(Strin
*/
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 NamespaceTopicEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceTopicEventSubscriptionDestinationProperties 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 NamespaceTopicEventSubscriptionDestinationProperties.
+ */
+ public static NamespaceTopicEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceTopicEventSubscriptionDestinationProperties deserializedNamespaceTopicEventSubscriptionDestinationProperties
+ = new NamespaceTopicEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedNamespaceTopicEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceTopicEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicInner.java
index d551216d60c81..f710ec4db2502 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicInner.java
@@ -7,10 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.EventInputSchema;
import com.azure.resourcemanager.eventgrid.models.NamespaceTopicProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PublisherType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Namespace topic details.
@@ -20,15 +23,28 @@ public final class NamespaceTopicInner extends ProxyResource {
/*
* Properties of the namespace topic.
*/
- @JsonProperty(value = "properties")
private NamespaceTopicProperties innerProperties;
/*
- * The system metadata relating to namespace topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 NamespaceTopicInner class.
*/
@@ -45,7 +61,7 @@ private NamespaceTopicProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to namespace topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -53,6 +69,36 @@ 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;
+ }
+
/**
* Get the provisioningState property: Provisioning state of the namespace topic.
*
@@ -147,4 +193,49 @@ public void validate() {
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 NamespaceTopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceTopicInner 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 NamespaceTopicInner.
+ */
+ public static NamespaceTopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceTopicInner deserializedNamespaceTopicInner = new NamespaceTopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedNamespaceTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedNamespaceTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedNamespaceTopicInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedNamespaceTopicInner.innerProperties = NamespaceTopicProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedNamespaceTopicInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicProperties.java
index a65419ad3d8e8..a97887bd9599f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicProperties.java
@@ -5,39 +5,39 @@
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.EventInputSchema;
import com.azure.resourcemanager.eventgrid.models.NamespaceTopicProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PublisherType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Properties of the namespace topic.
*/
@Fluent
-public final class NamespaceTopicProperties {
+public final class NamespaceTopicProperties implements JsonSerializable {
/*
* Provisioning state of the namespace topic.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private NamespaceTopicProvisioningState provisioningState;
/*
* Publisher type of the namespace topic.
*/
- @JsonProperty(value = "publisherType")
private PublisherType publisherType;
/*
* This determines the format that is expected for incoming events published to the topic.
*/
- @JsonProperty(value = "inputSchema")
private EventInputSchema inputSchema;
/*
* Event retention for the namespace topic expressed in days. The property default value is 1 day.
* Min event retention duration value is 1 day and max event retention duration value is 1 day.
*/
- @JsonProperty(value = "eventRetentionInDays")
private Integer eventRetentionInDays;
/**
@@ -128,4 +128,49 @@ public NamespaceTopicProperties withEventRetentionInDays(Integer eventRetentionI
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("publisherType", this.publisherType == null ? null : this.publisherType.toString());
+ jsonWriter.writeStringField("inputSchema", this.inputSchema == null ? null : this.inputSchema.toString());
+ jsonWriter.writeNumberField("eventRetentionInDays", this.eventRetentionInDays);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceTopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceTopicProperties 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 NamespaceTopicProperties.
+ */
+ public static NamespaceTopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceTopicProperties deserializedNamespaceTopicProperties = new NamespaceTopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedNamespaceTopicProperties.provisioningState
+ = NamespaceTopicProvisioningState.fromString(reader.getString());
+ } else if ("publisherType".equals(fieldName)) {
+ deserializedNamespaceTopicProperties.publisherType = PublisherType.fromString(reader.getString());
+ } else if ("inputSchema".equals(fieldName)) {
+ deserializedNamespaceTopicProperties.inputSchema = EventInputSchema.fromString(reader.getString());
+ } else if ("eventRetentionInDays".equals(fieldName)) {
+ deserializedNamespaceTopicProperties.eventRetentionInDays = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceTopicProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicUpdateParameterProperties.java
index 7846a9a63b925..e7d7e3f0d4257 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceTopicUpdateParameterProperties.java
@@ -5,18 +5,22 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Information of namespace topic update parameter properties.
*/
@Fluent
-public final class NamespaceTopicUpdateParameterProperties {
+public final class NamespaceTopicUpdateParameterProperties
+ implements JsonSerializable {
/*
* Event retention for the namespace topic expressed in days. The property default value is 1 day.
* Min event retention duration value is 1 day and max event retention duration value is 1 day.
*/
- @JsonProperty(value = "eventRetentionInDays")
private Integer eventRetentionInDays;
/**
@@ -56,4 +60,42 @@ public NamespaceTopicUpdateParameterProperties withEventRetentionInDays(Integer
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeNumberField("eventRetentionInDays", this.eventRetentionInDays);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceTopicUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceTopicUpdateParameterProperties 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 NamespaceTopicUpdateParameterProperties.
+ */
+ public static NamespaceTopicUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceTopicUpdateParameterProperties deserializedNamespaceTopicUpdateParameterProperties
+ = new NamespaceTopicUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("eventRetentionInDays".equals(fieldName)) {
+ deserializedNamespaceTopicUpdateParameterProperties.eventRetentionInDays
+ = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceTopicUpdateParameterProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceUpdateParameterProperties.java
index 8b16ef3dc55ca..fc66f6b2893db 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NamespaceUpdateParameterProperties.java
@@ -5,41 +5,44 @@
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.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
-import com.azure.resourcemanager.eventgrid.models.UpdateTopicsConfigurationInfo;
import com.azure.resourcemanager.eventgrid.models.UpdateTopicSpacesConfigurationInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.eventgrid.models.UpdateTopicsConfigurationInfo;
+import java.io.IOException;
import java.util.List;
/**
* Information of namespace update parameter properties.
*/
@Fluent
-public final class NamespaceUpdateParameterProperties {
+public final class NamespaceUpdateParameterProperties implements JsonSerializable {
/*
* Topic spaces configuration properties that can be updated.
*/
- @JsonProperty(value = "topicSpacesConfiguration")
private UpdateTopicSpacesConfigurationInfo topicSpacesConfiguration;
/*
* Topics configuration properties that can be updated.
*/
- @JsonProperty(value = "topicsConfiguration")
private UpdateTopicsConfigurationInfo topicsConfiguration;
/*
- * This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/**
@@ -156,4 +159,56 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("topicSpacesConfiguration", this.topicSpacesConfiguration);
+ jsonWriter.writeJsonField("topicsConfiguration", this.topicsConfiguration);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NamespaceUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NamespaceUpdateParameterProperties 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 NamespaceUpdateParameterProperties.
+ */
+ public static NamespaceUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NamespaceUpdateParameterProperties deserializedNamespaceUpdateParameterProperties
+ = new NamespaceUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("topicSpacesConfiguration".equals(fieldName)) {
+ deserializedNamespaceUpdateParameterProperties.topicSpacesConfiguration
+ = UpdateTopicSpacesConfigurationInfo.fromJson(reader);
+ } else if ("topicsConfiguration".equals(fieldName)) {
+ deserializedNamespaceUpdateParameterProperties.topicsConfiguration
+ = UpdateTopicsConfigurationInfo.fromJson(reader);
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedNamespaceUpdateParameterProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedNamespaceUpdateParameterProperties.inboundIpRules = inboundIpRules;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNamespaceUpdateParameterProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
index 3ba3234d1177f..5a2aeabea5c68 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
@@ -6,12 +6,15 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -22,9 +25,23 @@ public final class NetworkSecurityPerimeterConfigurationInner extends ProxyResou
/*
* Properties of the network security perimeter configuration.
*/
- @JsonProperty(value = "properties")
private NetworkSecurityPerimeterConfigurationProperties innerProperties;
+ /*
+ * 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 NetworkSecurityPerimeterConfigurationInner class.
*/
@@ -40,6 +57,36 @@ private NetworkSecurityPerimeterConfigurationProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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;
+ }
+
/**
* Get the provisioningState property: Provisioning state to reflect configuration state and indicate status of nsp
* profile configuration retrieval.
@@ -173,4 +220,49 @@ public void validate() {
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
index 5351b6ed403bb..21c95de41d805 100644
--- 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
@@ -5,44 +5,44 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Network security perimeter configuration issues properties.
*/
@Fluent
-public final class NetworkSecurityPerimeterConfigurationIssuesProperties {
+public final class NetworkSecurityPerimeterConfigurationIssuesProperties
+ implements JsonSerializable {
/*
* Provisioning issue type.
*/
- @JsonProperty(value = "issueType")
private NetworkSecurityPerimeterConfigurationIssueType issueType;
/*
* Provisioning issue severity.
*/
- @JsonProperty(value = "severity")
private NetworkSecurityPerimeterConfigurationIssueSeverity severity;
/*
* Provisioning issue description.
*/
- @JsonProperty(value = "description")
private String description;
/*
* ARM IDs of resources that can be associated to the same perimeter to remediate the issue.
*/
- @JsonProperty(value = "suggestedResourceIds")
private List suggestedResourceIds;
/*
* Access rules that can be added to the same profile to remediate the issue.
*/
- @JsonProperty(value = "suggestedAccessRules")
private List suggestedAccessRules;
/**
@@ -164,4 +164,62 @@ public List suggestedAccessRules() {
*/
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
index f6cc7de40a841..13357d6ae0558 100644
--- 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
@@ -5,47 +5,47 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
+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 {
+public final class NetworkSecurityPerimeterConfigurationProperties
+ implements JsonSerializable {
/*
* Provisioning state to reflect configuration state and indicate status of nsp profile configuration retrieval.
*/
- @JsonProperty(value = "provisioningState")
private NetworkSecurityPerimeterConfigProvisioningState provisioningState;
/*
* Provisioning issues to reflect status when attempting to retrieve nsp profile configuration.
*/
- @JsonProperty(value = "provisioningIssues")
private List provisioningIssues;
/*
* Perimeter info for nsp association.
*/
- @JsonProperty(value = "networkSecurityPerimeter")
private NetworkSecurityPerimeterInfo networkSecurityPerimeter;
/*
* Nsp association name and access mode of association.
*/
- @JsonProperty(value = "resourceAssociation")
private ResourceAssociation resourceAssociation;
/*
* Nsp profile configuration, access rules and diagnostic settings.
*/
- @JsonProperty(value = "profile")
private NetworkSecurityPerimeterConfigurationProfile profile;
/**
@@ -182,4 +182,61 @@ public void validate() {
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
index 7b4d993c206dc..e2749f03cfbf5 100644
--- 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
@@ -5,57 +5,55 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Network security perimeter profile access rule properties.
*/
@Fluent
-public final class NetworkSecurityPerimeterProfileAccessRuleProperties {
+public final class NetworkSecurityPerimeterProfileAccessRuleProperties
+ implements JsonSerializable {
/*
* NSP access rule direction.
*/
- @JsonProperty(value = "direction")
private NetworkSecurityPerimeterProfileAccessRuleDirection direction;
/*
* Address prefixes.
*/
- @JsonProperty(value = "addressPrefixes")
private List addressPrefixes;
/*
* List of subscriptions.
*/
- @JsonProperty(value = "subscriptions")
private List subscriptions;
/*
* Network security perimeters.
*/
- @JsonProperty(value = "networkSecurityPerimeters")
private List networkSecurityPerimeters;
/*
* Fully qualified domain names.
*/
- @JsonProperty(value = "fullyQualifiedDomainNames")
private List fullyQualifiedDomainNames;
/*
* List of email addresses.
*/
- @JsonProperty(value = "emailAddresses")
private List emailAddresses;
/*
* List of phone numbers.
*/
- @JsonProperty(value = "phoneNumbers")
private List phoneNumbers;
/**
@@ -221,4 +219,75 @@ public void validate() {
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/OperationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java
index a5ff7b21a7f42..9ddf79f19db9d 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java
@@ -5,42 +5,41 @@
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.OperationInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Represents an operation returned by the GetOperations request.
*/
@Fluent
-public final class OperationInner {
+public final class OperationInner implements JsonSerializable {
/*
* Name of the operation.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Display name of the operation.
*/
- @JsonProperty(value = "display")
private OperationInfo display;
/*
* Origin of the operation.
*/
- @JsonProperty(value = "origin")
private String origin;
/*
* This Boolean is used to determine if the operation is a data plane action or not.
*/
- @JsonProperty(value = "isDataAction")
private Boolean isDataAction;
/*
* Properties of the operation.
*/
- @JsonProperty(value = "properties")
private Object properties;
/**
@@ -159,4 +158,52 @@ public void validate() {
display().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeStringField("origin", this.origin);
+ jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
+ jsonWriter.writeUntypedField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner 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 OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationInfo.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("properties".equals(fieldName)) {
+ deserializedOperationInner.properties = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
}
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 ce800c723473c..c0863cdfebccb 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
@@ -7,10 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.PartnerAuthorization;
import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationProvisioningState;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -21,28 +23,38 @@ public final class PartnerConfigurationInner extends ProxyResource {
/*
* Properties of the partner configuration.
*/
- @JsonProperty(value = "properties")
private PartnerConfigurationProperties innerProperties;
/*
- * The system metadata relating to partner configuration resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* Location of the resource.
*/
- @JsonProperty(value = "location")
private String location;
/*
* Tags of the resource.
*/
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
+ /*
+ * 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 PartnerConfigurationInner class.
*/
@@ -59,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.
*/
@@ -107,6 +119,36 @@ public PartnerConfigurationInner withTags(Map tags) {
return this;
}
+ /**
+ * 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;
+ }
+
/**
* Get the partnerAuthorization property: The details of authorized partners.
*
@@ -163,4 +205,57 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerConfigurationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerConfigurationInner 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 PartnerConfigurationInner.
+ */
+ public static PartnerConfigurationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerConfigurationInner deserializedPartnerConfigurationInner = new PartnerConfigurationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.innerProperties
+ = PartnerConfigurationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.systemData = SystemData.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedPartnerConfigurationInner.location = reader.getString();
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPartnerConfigurationInner.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerConfigurationInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java
index efc57e92d66a7..a76e9dc74a545 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java
@@ -5,25 +5,27 @@
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.PartnerAuthorization;
import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Properties of the partner configuration.
*/
@Fluent
-public final class PartnerConfigurationProperties {
+public final class PartnerConfigurationProperties implements JsonSerializable {
/*
* The details of authorized partners.
*/
- @JsonProperty(value = "partnerAuthorization")
private PartnerAuthorization partnerAuthorization;
/*
* Provisioning state of the partner configuration.
*/
- @JsonProperty(value = "provisioningState")
private PartnerConfigurationProvisioningState provisioningState;
/**
@@ -83,4 +85,47 @@ public void validate() {
partnerAuthorization().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("partnerAuthorization", this.partnerAuthorization);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerConfigurationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerConfigurationProperties 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 PartnerConfigurationProperties.
+ */
+ public static PartnerConfigurationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerConfigurationProperties deserializedPartnerConfigurationProperties
+ = new PartnerConfigurationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("partnerAuthorization".equals(fieldName)) {
+ deserializedPartnerConfigurationProperties.partnerAuthorization
+ = PartnerAuthorization.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPartnerConfigurationProperties.provisioningState
+ = PartnerConfigurationProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerConfigurationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java
index 31245b2a602da..553ab5cf409be 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java
@@ -5,17 +5,22 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Information of partner configuration update parameter properties.
*/
@Fluent
-public final class PartnerConfigurationUpdateParameterProperties {
+public final class PartnerConfigurationUpdateParameterProperties
+ implements JsonSerializable {
/*
- * The default time used to validate the maximum expiration time for each authorized partners in days. Allowed values ar between 1 and 365 days.
+ * The default time used to validate the maximum expiration time for each authorized partners in days. Allowed
+ * values ar between 1 and 365 days.
*/
- @JsonProperty(value = "defaultMaximumExpirationTimeInDays")
private Integer defaultMaximumExpirationTimeInDays;
/**
@@ -54,4 +59,42 @@ public Integer defaultMaximumExpirationTimeInDays() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeNumberField("defaultMaximumExpirationTimeInDays", this.defaultMaximumExpirationTimeInDays);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerConfigurationUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerConfigurationUpdateParameterProperties 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 PartnerConfigurationUpdateParameterProperties.
+ */
+ public static PartnerConfigurationUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerConfigurationUpdateParameterProperties deserializedPartnerConfigurationUpdateParameterProperties
+ = new PartnerConfigurationUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("defaultMaximumExpirationTimeInDays".equals(fieldName)) {
+ deserializedPartnerConfigurationUpdateParameterProperties.defaultMaximumExpirationTimeInDays
+ = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerConfigurationUpdateParameterProperties;
+ });
+ }
}
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
index 18ed44dbb679d..ad6576d794973 100644
--- 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
@@ -7,9 +7,12 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
import java.util.UUID;
@@ -22,15 +25,28 @@ public final class PartnerDestinationInner extends Resource {
/*
* Properties of the Partner Destination.
*/
- @JsonProperty(value = "properties")
private PartnerDestinationProperties innerProperties;
/*
- * The system metadata relating to Partner Destination resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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.
*/
@@ -47,7 +63,7 @@ private PartnerDestinationProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Partner Destination resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -55,6 +71,36 @@ 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}
*/
@@ -234,4 +280,56 @@ public void validate() {
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
index 3d5ffcddc3dcf..e23129ce7ca83 100644
--- 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
@@ -5,58 +5,59 @@
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 com.fasterxml.jackson.annotation.JsonProperty;
+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 {
+public final class PartnerDestinationProperties implements JsonSerializable {
/*
* The immutable Id of the corresponding partner registration.
*/
- @JsonProperty(value = "partnerRegistrationImmutableId")
private UUID partnerRegistrationImmutableId;
/*
* Endpoint context associated with this partner destination.
*/
- @JsonProperty(value = "endpointServiceContext")
private String endpointServiceContext;
/*
- * Expiration time of the partner destination. If this timer expires and the partner destination was never activated,
+ * 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.
*/
- @JsonProperty(value = "expirationTimeIfNotActivatedUtc")
private OffsetDateTime expirationTimeIfNotActivatedUtc;
/*
* Provisioning state of the partner destination.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PartnerDestinationProvisioningState provisioningState;
/*
* Activation state of the partner destination.
*/
- @JsonProperty(value = "activationState")
private PartnerDestinationActivationState activationState;
/*
* Endpoint Base URL of the partner destination
*/
- @JsonProperty(value = "endpointBaseUrl")
private String endpointBaseUrl;
/*
* Context or helpful message that can be used during the approval process.
*/
- @JsonProperty(value = "messageForActivation")
private String messageForActivation;
/**
@@ -206,4 +207,66 @@ public PartnerDestinationProperties withMessageForActivation(String messageForAc
*/
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
index ea15a201cf7e6..2c5a9e1f01d7a 100644
--- 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
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 {
+public final class PartnerEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource Id that represents the endpoint of a Partner Destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/**
@@ -53,4 +57,41 @@ public PartnerEventSubscriptionDestinationProperties withResourceId(String resou
*/
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 83053fe5c7981..39fdd1c869ed9 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
@@ -7,12 +7,15 @@
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.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicRoutingMode;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -24,15 +27,28 @@ public final class PartnerNamespaceInner extends Resource {
/*
* Properties of the Partner Namespace.
*/
- @JsonProperty(value = "properties")
private PartnerNamespaceProperties innerProperties;
/*
- * The system metadata relating to Partner Namespace resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 PartnerNamespaceInner class.
*/
@@ -49,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.
*/
@@ -57,6 +73,36 @@ 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}
*/
@@ -276,4 +322,56 @@ public void validate() {
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 PartnerNamespaceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerNamespaceInner 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 PartnerNamespaceInner.
+ */
+ public static PartnerNamespaceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerNamespaceInner deserializedPartnerNamespaceInner = new PartnerNamespaceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPartnerNamespaceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.innerProperties = PartnerNamespaceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPartnerNamespaceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerNamespaceInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java
index 9e49604044f92..b4078826a19e5 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java
@@ -5,74 +5,76 @@
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.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicRoutingMode;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties of the partner namespace.
*/
@Fluent
-public final class PartnerNamespaceProperties {
+public final class PartnerNamespaceProperties implements JsonSerializable {
/*
* List of private endpoint connections.
*/
- @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
/*
* Provisioning state of the partner namespace.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PartnerNamespaceProvisioningState provisioningState;
/*
- * The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format:
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.
+ * The fully qualified ARM Id of the partner registration that should be associated with this partner namespace.
+ * This takes the following format:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/
+ * partnerRegistrations/{partnerRegistrationName}.
*/
- @JsonProperty(value = "partnerRegistrationFullyQualifiedId")
private String partnerRegistrationFullyQualifiedId;
/*
* Minimum TLS version of the publisher allowed to publish to this partner namespace
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
* Endpoint for the partner namespace.
*/
- @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
/*
* This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the partner namespace.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the partner namespace.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
- * This determines if events published to this partner namespace should use the source attribute in the event payload
- * or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.
+ * This determines if events published to this partner namespace should use the source attribute in the event
+ * payload
+ * or use the channel name in the header when matching to the partner topic. If none is specified, source attribute
+ * routing will be used to match the partner topic.
*/
- @JsonProperty(value = "partnerTopicRoutingMode")
private PartnerTopicRoutingMode partnerTopicRoutingMode;
/**
@@ -268,4 +270,73 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("partnerRegistrationFullyQualifiedId", this.partnerRegistrationFullyQualifiedId);
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeStringField("partnerTopicRoutingMode",
+ this.partnerTopicRoutingMode == null ? null : this.partnerTopicRoutingMode.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerNamespaceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerNamespaceProperties 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 PartnerNamespaceProperties.
+ */
+ public static PartnerNamespaceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerNamespaceProperties deserializedPartnerNamespaceProperties = new PartnerNamespaceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
+ deserializedPartnerNamespaceProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.provisioningState
+ = PartnerNamespaceProvisioningState.fromString(reader.getString());
+ } else if ("partnerRegistrationFullyQualifiedId".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.partnerRegistrationFullyQualifiedId = reader.getString();
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.endpoint = reader.getString();
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedPartnerNamespaceProperties.inboundIpRules = inboundIpRules;
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("partnerTopicRoutingMode".equals(fieldName)) {
+ deserializedPartnerNamespaceProperties.partnerTopicRoutingMode
+ = PartnerTopicRoutingMode.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerNamespaceProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java
index 3ccaa27a61bc6..042a0e53970ce 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Shared access keys of the partner namespace.
*/
@Fluent
-public final class PartnerNamespaceSharedAccessKeysInner {
+public final class PartnerNamespaceSharedAccessKeysInner
+ implements JsonSerializable {
/*
* Shared access key1 for the partner namespace.
*/
- @JsonProperty(value = "key1")
private String key1;
/*
* Shared access key2 for the partner namespace.
*/
- @JsonProperty(value = "key2")
private String key2;
/**
@@ -77,4 +80,44 @@ public PartnerNamespaceSharedAccessKeysInner withKey2(String key2) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key1", this.key1);
+ jsonWriter.writeStringField("key2", this.key2);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerNamespaceSharedAccessKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerNamespaceSharedAccessKeysInner 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 PartnerNamespaceSharedAccessKeysInner.
+ */
+ public static PartnerNamespaceSharedAccessKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerNamespaceSharedAccessKeysInner deserializedPartnerNamespaceSharedAccessKeysInner
+ = new PartnerNamespaceSharedAccessKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key1".equals(fieldName)) {
+ deserializedPartnerNamespaceSharedAccessKeysInner.key1 = reader.getString();
+ } else if ("key2".equals(fieldName)) {
+ deserializedPartnerNamespaceSharedAccessKeysInner.key2 = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerNamespaceSharedAccessKeysInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java
index 2b663b93655b1..8777f404f74f6 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java
@@ -5,40 +5,45 @@
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.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Information of Partner Namespace update parameter properties.
*/
@Fluent
-public final class PartnerNamespaceUpdateParameterProperties {
+public final class PartnerNamespaceUpdateParameterProperties
+ implements JsonSerializable {
/*
- * This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
* Minimum TLS version of the publisher allowed to publish to this domain
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the partner namespace.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the partner namespace.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/**
@@ -153,4 +158,57 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerNamespaceUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerNamespaceUpdateParameterProperties 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 PartnerNamespaceUpdateParameterProperties.
+ */
+ public static PartnerNamespaceUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerNamespaceUpdateParameterProperties deserializedPartnerNamespaceUpdateParameterProperties
+ = new PartnerNamespaceUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedPartnerNamespaceUpdateParameterProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedPartnerNamespaceUpdateParameterProperties.inboundIpRules = inboundIpRules;
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedPartnerNamespaceUpdateParameterProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedPartnerNamespaceUpdateParameterProperties.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerNamespaceUpdateParameterProperties;
+ });
+ }
}
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 5e29c4f7a61ba..de3739dc71e7a 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
@@ -7,8 +7,11 @@
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.PartnerRegistrationProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
import java.util.UUID;
@@ -20,15 +23,28 @@ public final class PartnerRegistrationInner extends Resource {
/*
* Properties of the partner registration.
*/
- @JsonProperty(value = "properties")
private PartnerRegistrationProperties innerProperties;
/*
- * The system metadata relating to Partner Registration resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 PartnerRegistrationInner class.
*/
@@ -45,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.
*/
@@ -53,6 +69,36 @@ 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}
*/
@@ -115,4 +161,57 @@ public void validate() {
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 PartnerRegistrationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerRegistrationInner 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 PartnerRegistrationInner.
+ */
+ public static PartnerRegistrationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerRegistrationInner deserializedPartnerRegistrationInner = new PartnerRegistrationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPartnerRegistrationInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.innerProperties
+ = PartnerRegistrationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPartnerRegistrationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerRegistrationInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java
index 9f6165c5c823b..fc9338bb88c4e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java
@@ -5,26 +5,29 @@
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.PartnerRegistrationProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
+import java.util.Objects;
import java.util.UUID;
/**
* Properties of the partner registration.
*/
@Fluent
-public final class PartnerRegistrationProperties {
+public final class PartnerRegistrationProperties implements JsonSerializable {
/*
* Provisioning state of the partner registration.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PartnerRegistrationProvisioningState provisioningState;
/*
* The immutableId of the corresponding partner registration.
* Note: This property is marked for deprecation and is not supported in any future GA API version
*/
- @JsonProperty(value = "partnerRegistrationImmutableId")
private UUID partnerRegistrationImmutableId;
/**
@@ -71,4 +74,46 @@ public PartnerRegistrationProperties withPartnerRegistrationImmutableId(UUID par
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("partnerRegistrationImmutableId",
+ Objects.toString(this.partnerRegistrationImmutableId, null));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerRegistrationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerRegistrationProperties 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 PartnerRegistrationProperties.
+ */
+ public static PartnerRegistrationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerRegistrationProperties deserializedPartnerRegistrationProperties
+ = new PartnerRegistrationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedPartnerRegistrationProperties.provisioningState
+ = PartnerRegistrationProvisioningState.fromString(reader.getString());
+ } else if ("partnerRegistrationImmutableId".equals(fieldName)) {
+ deserializedPartnerRegistrationProperties.partnerRegistrationImmutableId
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerRegistrationProperties;
+ });
+ }
}
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 31b0145497de3..c30705edf482f 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
@@ -7,11 +7,14 @@
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.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.IdentityInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicActivationState;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
import java.util.UUID;
@@ -24,21 +27,33 @@ public final class PartnerTopicInner extends Resource {
/*
* Properties of the Partner Topic.
*/
- @JsonProperty(value = "properties")
private PartnerTopicProperties innerProperties;
/*
- * The system metadata relating to Partner Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* Identity information for the Partner Topic resource.
*/
- @JsonProperty(value = "identity")
private IdentityInfo identity;
+ /*
+ * 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 PartnerTopicInner class.
*/
@@ -55,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.
*/
@@ -83,6 +98,36 @@ public PartnerTopicInner withIdentity(IdentityInfo identity) {
return this;
}
+ /**
+ * 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}
*/
@@ -294,4 +339,59 @@ public void validate() {
identity().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);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerTopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerTopicInner 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 PartnerTopicInner.
+ */
+ public static PartnerTopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerTopicInner deserializedPartnerTopicInner = new PartnerTopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPartnerTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPartnerTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPartnerTopicInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPartnerTopicInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPartnerTopicInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPartnerTopicInner.innerProperties = PartnerTopicProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPartnerTopicInner.systemData = SystemData.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedPartnerTopicInner.identity = IdentityInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java
index 025338da6072c..8178c77f2bcf6 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java
@@ -5,66 +5,66 @@
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.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicActivationState;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 Topic.
*/
@Fluent
-public final class PartnerTopicProperties {
+public final class PartnerTopicProperties implements JsonSerializable {
/*
* The immutableId of the corresponding partner registration.
*/
- @JsonProperty(value = "partnerRegistrationImmutableId")
private UUID partnerRegistrationImmutableId;
/*
* Source associated with this partner topic. This represents a unique partner resource.
*/
- @JsonProperty(value = "source")
private String source;
/*
* Event Type information from the corresponding event channel.
*/
- @JsonProperty(value = "eventTypeInfo")
private EventTypeInfo eventTypeInfo;
/*
* Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,
* the partner topic and corresponding event channel are deleted.
*/
- @JsonProperty(value = "expirationTimeIfNotActivatedUtc")
private OffsetDateTime expirationTimeIfNotActivatedUtc;
/*
* Provisioning state of the partner topic.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PartnerTopicProvisioningState provisioningState;
/*
* Activation state of the partner topic.
*/
- @JsonProperty(value = "activationState")
private PartnerTopicActivationState activationState;
/*
- * Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic.
+ * Friendly description about the topic. This can be set by the publisher/partner to show custom description for the
+ * customer partner topic.
* This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.
*/
- @JsonProperty(value = "partnerTopicFriendlyDescription")
private String partnerTopicFriendlyDescription;
/*
* Context or helpful message that can be used during the approval process by the subscriber.
*/
- @JsonProperty(value = "messageForActivation")
private String messageForActivation;
/**
@@ -242,4 +242,69 @@ public void validate() {
eventTypeInfo().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("partnerRegistrationImmutableId",
+ Objects.toString(this.partnerRegistrationImmutableId, null));
+ jsonWriter.writeStringField("source", this.source);
+ jsonWriter.writeJsonField("eventTypeInfo", this.eventTypeInfo);
+ 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("partnerTopicFriendlyDescription", this.partnerTopicFriendlyDescription);
+ jsonWriter.writeStringField("messageForActivation", this.messageForActivation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PartnerTopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartnerTopicProperties 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 PartnerTopicProperties.
+ */
+ public static PartnerTopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartnerTopicProperties deserializedPartnerTopicProperties = new PartnerTopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("partnerRegistrationImmutableId".equals(fieldName)) {
+ deserializedPartnerTopicProperties.partnerRegistrationImmutableId
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ } else if ("source".equals(fieldName)) {
+ deserializedPartnerTopicProperties.source = reader.getString();
+ } else if ("eventTypeInfo".equals(fieldName)) {
+ deserializedPartnerTopicProperties.eventTypeInfo = EventTypeInfo.fromJson(reader);
+ } else if ("expirationTimeIfNotActivatedUtc".equals(fieldName)) {
+ deserializedPartnerTopicProperties.expirationTimeIfNotActivatedUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPartnerTopicProperties.provisioningState
+ = PartnerTopicProvisioningState.fromString(reader.getString());
+ } else if ("activationState".equals(fieldName)) {
+ deserializedPartnerTopicProperties.activationState
+ = PartnerTopicActivationState.fromString(reader.getString());
+ } else if ("partnerTopicFriendlyDescription".equals(fieldName)) {
+ deserializedPartnerTopicProperties.partnerTopicFriendlyDescription = reader.getString();
+ } else if ("messageForActivation".equals(fieldName)) {
+ deserializedPartnerTopicProperties.messageForActivation = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartnerTopicProperties;
+ });
+ }
}
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 f1824a8d3adf9..1de668e279cfb 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
@@ -7,9 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.PermissionBindingProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PermissionType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The Permission binding resource.
@@ -19,15 +22,28 @@ public final class PermissionBindingInner extends ProxyResource {
/*
* The properties of permission binding.
*/
- @JsonProperty(value = "properties")
private PermissionBindingProperties innerProperties;
/*
- * The system metadata relating to the PermissionBinding resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 PermissionBindingInner class.
*/
@@ -44,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.
*/
@@ -52,6 +68,36 @@ 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;
+ }
+
/**
* Get the description property: Description for the Permission Binding resource.
*
@@ -167,4 +213,49 @@ public void validate() {
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 PermissionBindingInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PermissionBindingInner 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 PermissionBindingInner.
+ */
+ public static PermissionBindingInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PermissionBindingInner deserializedPermissionBindingInner = new PermissionBindingInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPermissionBindingInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPermissionBindingInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPermissionBindingInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPermissionBindingInner.innerProperties = PermissionBindingProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPermissionBindingInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPermissionBindingInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingProperties.java
index f47855059070a..c00bab1ee85dd 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingProperties.java
@@ -5,45 +5,44 @@
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.PermissionBindingProvisioningState;
import com.azure.resourcemanager.eventgrid.models.PermissionType;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* The properties of permission binding.
*/
@Fluent
-public final class PermissionBindingProperties {
+public final class PermissionBindingProperties implements JsonSerializable {
/*
* Description for the Permission Binding resource.
*/
- @JsonProperty(value = "description")
private String description;
/*
* The name of the Topic Space resource that the permission is bound to.
* The Topic space needs to be a resource under the same namespace the permission binding is a part of.
*/
- @JsonProperty(value = "topicSpaceName")
private String topicSpaceName;
/*
* The allowed permission.
*/
- @JsonProperty(value = "permission")
private PermissionType permission;
/*
* The name of the client group resource that the permission is bound to.
* The client group needs to be a resource under the same namespace the permission binding is a part of.
*/
- @JsonProperty(value = "clientGroupName")
private String clientGroupName;
/*
* Provisioning state of the PermissionBinding resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PermissionBindingProvisioningState provisioningState;
/**
@@ -152,4 +151,52 @@ public PermissionBindingProvisioningState provisioningState() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("topicSpaceName", this.topicSpaceName);
+ jsonWriter.writeStringField("permission", this.permission == null ? null : this.permission.toString());
+ jsonWriter.writeStringField("clientGroupName", this.clientGroupName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PermissionBindingProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PermissionBindingProperties 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 PermissionBindingProperties.
+ */
+ public static PermissionBindingProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PermissionBindingProperties deserializedPermissionBindingProperties = new PermissionBindingProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedPermissionBindingProperties.description = reader.getString();
+ } else if ("topicSpaceName".equals(fieldName)) {
+ deserializedPermissionBindingProperties.topicSpaceName = reader.getString();
+ } else if ("permission".equals(fieldName)) {
+ deserializedPermissionBindingProperties.permission = PermissionType.fromString(reader.getString());
+ } else if ("clientGroupName".equals(fieldName)) {
+ deserializedPermissionBindingProperties.clientGroupName = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPermissionBindingProperties.provisioningState
+ = PermissionBindingProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPermissionBindingProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java
index 81e8a08f9b3de..5c008d637338c 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java
@@ -6,10 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.models.ConnectionState;
import com.azure.resourcemanager.eventgrid.models.PrivateEndpoint;
import com.azure.resourcemanager.eventgrid.models.ResourceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -20,9 +23,23 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
* Properties of the PrivateEndpointConnection.
*/
- @JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;
+ /*
+ * 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 PrivateEndpointConnectionInner class.
*/
@@ -38,6 +55,36 @@ private PrivateEndpointConnectionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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;
+ }
+
/**
* Get the privateEndpoint property: The Private Endpoint resource for this Connection.
*
@@ -141,4 +188,49 @@ public void validate() {
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 PrivateEndpointConnectionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionInner 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 PrivateEndpointConnectionInner.
+ */
+ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionInner deserializedPrivateEndpointConnectionInner
+ = new PrivateEndpointConnectionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.innerProperties
+ = PrivateEndpointConnectionProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java
index 34861d66a2422..8b4c6cb13954b 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java
@@ -5,39 +5,40 @@
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.ConnectionState;
import com.azure.resourcemanager.eventgrid.models.PrivateEndpoint;
import com.azure.resourcemanager.eventgrid.models.ResourceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties of the private endpoint connection resource.
*/
@Fluent
-public final class PrivateEndpointConnectionProperties {
+public final class PrivateEndpointConnectionProperties
+ implements JsonSerializable {
/*
* The Private Endpoint resource for this Connection.
*/
- @JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;
/*
* GroupIds from the private link service resource.
*/
- @JsonProperty(value = "groupIds")
private List groupIds;
/*
* Details about the state of the connection.
*/
- @JsonProperty(value = "privateLinkServiceConnectionState")
private ConnectionState privateLinkServiceConnectionState;
/*
* Provisioning state of the Private Endpoint Connection.
*/
- @JsonProperty(value = "provisioningState")
private ResourceProvisioningState provisioningState;
/**
@@ -140,4 +141,54 @@ public void validate() {
privateLinkServiceConnectionState().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
+ jsonWriter.writeArrayField("groupIds", this.groupIds, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionProperties 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 PrivateEndpointConnectionProperties.
+ */
+ public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties
+ = new PrivateEndpointConnectionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpoint".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
+ } else if ("groupIds".equals(fieldName)) {
+ List groupIds = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateEndpointConnectionProperties.groupIds = groupIds;
+ } else if ("privateLinkServiceConnectionState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
+ = ConnectionState.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.provisioningState
+ = ResourceProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java
index 5d4cf82478b14..e293032352f36 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java
@@ -5,36 +5,36 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* Information of the private link resource.
*/
@Fluent
-public final class PrivateLinkResourceInner {
+public final class PrivateLinkResourceInner implements JsonSerializable {
/*
* Properties of the private link resource.
*/
- @JsonProperty(value = "properties")
private PrivateLinkResourceProperties innerProperties;
/*
* Fully qualified identifier of the resource.
*/
- @JsonProperty(value = "id")
private String id;
/*
* Name of the resource.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Type of the resource.
*/
- @JsonProperty(value = "type")
private String type;
/**
@@ -214,4 +214,50 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("type", this.type);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceInner 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 PrivateLinkResourceInner.
+ */
+ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("properties".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.innerProperties
+ = PrivateLinkResourceProperties.fromJson(reader);
+ } else if ("id".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java
index 53a75cbf0c15d..cf2a9fadb7ed3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java
@@ -5,36 +5,36 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
/**
* The PrivateLinkResourceProperties model.
*/
@Fluent
-public final class PrivateLinkResourceProperties {
+public final class PrivateLinkResourceProperties implements JsonSerializable {
/*
* The groupId property.
*/
- @JsonProperty(value = "groupId")
private String groupId;
/*
* The displayName property.
*/
- @JsonProperty(value = "displayName")
private String displayName;
/*
* The requiredMembers property.
*/
- @JsonProperty(value = "requiredMembers")
private List requiredMembers;
/*
* The requiredZoneNames property.
*/
- @JsonProperty(value = "requiredZoneNames")
private List requiredZoneNames;
/**
@@ -130,4 +130,54 @@ public PrivateLinkResourceProperties withRequiredZoneNames(List required
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("groupId", this.groupId);
+ jsonWriter.writeStringField("displayName", this.displayName);
+ jsonWriter.writeArrayField("requiredMembers", this.requiredMembers,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("requiredZoneNames", this.requiredZoneNames,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceProperties 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 PrivateLinkResourceProperties.
+ */
+ public static PrivateLinkResourceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceProperties deserializedPrivateLinkResourceProperties
+ = new PrivateLinkResourceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("groupId".equals(fieldName)) {
+ deserializedPrivateLinkResourceProperties.groupId = reader.getString();
+ } else if ("displayName".equals(fieldName)) {
+ deserializedPrivateLinkResourceProperties.displayName = reader.getString();
+ } else if ("requiredMembers".equals(fieldName)) {
+ List requiredMembers = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredMembers = requiredMembers;
+ } else if ("requiredZoneNames".equals(fieldName)) {
+ List requiredZoneNames = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredZoneNames = requiredZoneNames;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java
index c6a90deb33b6b..e76c82bc5d0c1 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java
@@ -5,25 +5,28 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties that represent the Service Bus destination of an event subscription.
*/
@Fluent
-public final class ServiceBusQueueEventSubscriptionDestinationProperties {
+public final class ServiceBusQueueEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
@@ -85,4 +88,49 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceBusQueueEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceBusQueueEventSubscriptionDestinationProperties 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 ServiceBusQueueEventSubscriptionDestinationProperties.
+ */
+ public static ServiceBusQueueEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceBusQueueEventSubscriptionDestinationProperties deserializedServiceBusQueueEventSubscriptionDestinationProperties
+ = new ServiceBusQueueEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedServiceBusQueueEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedServiceBusQueueEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceBusQueueEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java
index 317a1cf68f613..b8d3b4eb3a2c9 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java
@@ -5,25 +5,28 @@
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.DeliveryAttributeMapping;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties that represent the Service Bus Topic destination of an event subscription.
*/
@Fluent
-public final class ServiceBusTopicEventSubscriptionDestinationProperties {
+public final class ServiceBusTopicEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/**
@@ -85,4 +88,49 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ServiceBusTopicEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ServiceBusTopicEventSubscriptionDestinationProperties 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 ServiceBusTopicEventSubscriptionDestinationProperties.
+ */
+ public static ServiceBusTopicEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ ServiceBusTopicEventSubscriptionDestinationProperties deserializedServiceBusTopicEventSubscriptionDestinationProperties
+ = new ServiceBusTopicEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedServiceBusTopicEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedServiceBusTopicEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedServiceBusTopicEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java
index d3b186c12cba8..5cb1c9b7500fb 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 static delivery attribute mapping.
*/
@Fluent
-public final class StaticDeliveryAttributeMappingProperties {
+public final class StaticDeliveryAttributeMappingProperties
+ implements JsonSerializable {
/*
* Value of the delivery attribute.
*/
- @JsonProperty(value = "value")
private String value;
/*
* Boolean flag to tell if the attribute contains sensitive information .
*/
- @JsonProperty(value = "isSecret")
private Boolean isSecret;
/**
@@ -77,4 +80,45 @@ public StaticDeliveryAttributeMappingProperties withIsSecret(Boolean isSecret) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("value", this.value);
+ jsonWriter.writeBooleanField("isSecret", this.isSecret);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StaticDeliveryAttributeMappingProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StaticDeliveryAttributeMappingProperties 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 StaticDeliveryAttributeMappingProperties.
+ */
+ public static StaticDeliveryAttributeMappingProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StaticDeliveryAttributeMappingProperties deserializedStaticDeliveryAttributeMappingProperties
+ = new StaticDeliveryAttributeMappingProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ deserializedStaticDeliveryAttributeMappingProperties.value = reader.getString();
+ } else if ("isSecret".equals(fieldName)) {
+ deserializedStaticDeliveryAttributeMappingProperties.isSecret
+ = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStaticDeliveryAttributeMappingProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java
index 746820aa4ca9a..315d8469ce169 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 the storage blob based dead letter destination.
*/
@Fluent
-public final class StorageBlobDeadLetterDestinationProperties {
+public final class StorageBlobDeadLetterDestinationProperties
+ implements JsonSerializable {
/*
* The Azure Resource ID of the storage account that is the destination of the deadletter events
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* The name of the Storage blob container that is the destination of the deadletter events
*/
- @JsonProperty(value = "blobContainerName")
private String blobContainerName;
/**
@@ -81,4 +84,44 @@ public StorageBlobDeadLetterDestinationProperties withBlobContainerName(String b
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeStringField("blobContainerName", this.blobContainerName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageBlobDeadLetterDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageBlobDeadLetterDestinationProperties 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 StorageBlobDeadLetterDestinationProperties.
+ */
+ public static StorageBlobDeadLetterDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageBlobDeadLetterDestinationProperties deserializedStorageBlobDeadLetterDestinationProperties
+ = new StorageBlobDeadLetterDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedStorageBlobDeadLetterDestinationProperties.resourceId = reader.getString();
+ } else if ("blobContainerName".equals(fieldName)) {
+ deserializedStorageBlobDeadLetterDestinationProperties.blobContainerName = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageBlobDeadLetterDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java
index 443cea355e220..2a78b71d70235 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java
@@ -5,29 +5,33 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+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 properties for a storage queue destination.
*/
@Fluent
-public final class StorageQueueEventSubscriptionDestinationProperties {
+public final class StorageQueueEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
- * The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
+ * The Azure Resource ID of the storage account that contains the queue that is the destination of an event
+ * subscription.
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* The name of the Storage queue under a storage account that is the destination of an event subscription.
*/
- @JsonProperty(value = "queueName")
private String queueName;
/*
- * Storage queue message time to live in seconds. This value cannot be zero or negative with the exception of using -1 to indicate that the Time To Live of the message is Infinite.
+ * Storage queue message time to live in seconds. This value cannot be zero or negative with the exception of using
+ * -1 to indicate that the Time To Live of the message is Infinite.
*/
- @JsonProperty(value = "queueMessageTimeToLiveInSeconds")
private Long queueMessageTimeToLiveInSeconds;
/**
@@ -112,4 +116,49 @@ public Long queueMessageTimeToLiveInSeconds() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeStringField("queueName", this.queueName);
+ jsonWriter.writeNumberField("queueMessageTimeToLiveInSeconds", this.queueMessageTimeToLiveInSeconds);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StorageQueueEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StorageQueueEventSubscriptionDestinationProperties 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 StorageQueueEventSubscriptionDestinationProperties.
+ */
+ public static StorageQueueEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ StorageQueueEventSubscriptionDestinationProperties deserializedStorageQueueEventSubscriptionDestinationProperties
+ = new StorageQueueEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedStorageQueueEventSubscriptionDestinationProperties.resourceId = reader.getString();
+ } else if ("queueName".equals(fieldName)) {
+ deserializedStorageQueueEventSubscriptionDestinationProperties.queueName = reader.getString();
+ } else if ("queueMessageTimeToLiveInSeconds".equals(fieldName)) {
+ deserializedStorageQueueEventSubscriptionDestinationProperties.queueMessageTimeToLiveInSeconds
+ = reader.getNullable(JsonReader::getLong);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStorageQueueEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionFullUrlInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionFullUrlInner.java
index a119810c42337..c9828e67c28b4 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionFullUrlInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionFullUrlInner.java
@@ -5,17 +5,20 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Full endpoint URL of an event subscription.
*/
@Fluent
-public final class SubscriptionFullUrlInner {
+public final class SubscriptionFullUrlInner implements JsonSerializable {
/*
* The URL that represents the endpoint of the destination of an event subscription.
*/
- @JsonProperty(value = "endpointUrl")
private String endpointUrl;
/**
@@ -51,4 +54,40 @@ public SubscriptionFullUrlInner withEndpointUrl(String endpointUrl) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("endpointUrl", this.endpointUrl);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SubscriptionFullUrlInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SubscriptionFullUrlInner 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 SubscriptionFullUrlInner.
+ */
+ public static SubscriptionFullUrlInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SubscriptionFullUrlInner deserializedSubscriptionFullUrlInner = new SubscriptionFullUrlInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpointUrl".equals(fieldName)) {
+ deserializedSubscriptionFullUrlInner.endpointUrl = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSubscriptionFullUrlInner;
+ });
+ }
}
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 a2c82e8109048..76dd336af53d2 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
@@ -7,12 +7,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.DeliveryConfiguration;
import com.azure.resourcemanager.eventgrid.models.DeliverySchema;
import com.azure.resourcemanager.eventgrid.models.FiltersConfiguration;
import com.azure.resourcemanager.eventgrid.models.SubscriptionProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.util.Map;
/**
* Event Subscription.
@@ -22,15 +26,28 @@ public final class SubscriptionInner extends ProxyResource {
/*
* Properties of the event subscription.
*/
- @JsonProperty(value = "properties")
private SubscriptionProperties innerProperties;
/*
- * The system metadata relating to Event Subscription resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 SubscriptionInner class.
*/
@@ -47,7 +64,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.
*/
@@ -55,6 +72,36 @@ 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;
+ }
+
/**
* Get the provisioningState property: Provisioning state of the event subscription.
*
@@ -156,6 +203,29 @@ public SubscriptionInner withExpirationTimeUtc(OffsetDateTime expirationTimeUtc)
return this;
}
+ /**
+ * Get the tags property: Tags relating to Event Subscription resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.innerProperties() == null ? null : this.innerProperties().tags();
+ }
+
+ /**
+ * Set the tags property: Tags relating to Event Subscription resource.
+ *
+ * @param tags the tags value to set.
+ * @return the SubscriptionInner object itself.
+ */
+ public SubscriptionInner withTags(Map tags) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SubscriptionProperties();
+ }
+ this.innerProperties().withTags(tags);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -166,4 +236,49 @@ public void validate() {
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 SubscriptionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SubscriptionInner 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 SubscriptionInner.
+ */
+ public static SubscriptionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SubscriptionInner deserializedSubscriptionInner = new SubscriptionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSubscriptionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSubscriptionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSubscriptionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedSubscriptionInner.innerProperties = SubscriptionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSubscriptionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSubscriptionInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionProperties.java
index 7934fd1ddd817..1354d1d0194f9 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionProperties.java
@@ -5,48 +5,55 @@
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.DeliveryConfiguration;
import com.azure.resourcemanager.eventgrid.models.DeliverySchema;
import com.azure.resourcemanager.eventgrid.models.FiltersConfiguration;
import com.azure.resourcemanager.eventgrid.models.SubscriptionProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.Map;
/**
* Properties of the event subscription.
*/
@Fluent
-public final class SubscriptionProperties {
+public final class SubscriptionProperties implements JsonSerializable {
/*
* Provisioning state of the event subscription.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private SubscriptionProvisioningState provisioningState;
/*
* Information about the delivery configuration of the event subscription.
*/
- @JsonProperty(value = "deliveryConfiguration")
private DeliveryConfiguration deliveryConfiguration;
/*
* The event delivery schema for the event subscription.
*/
- @JsonProperty(value = "eventDeliverySchema")
private DeliverySchema eventDeliverySchema;
/*
* Information about the filter for the event subscription.
*/
- @JsonProperty(value = "filtersConfiguration")
private FiltersConfiguration filtersConfiguration;
/*
* Expiration time of the event subscription.
*/
- @JsonProperty(value = "expirationTimeUtc")
private OffsetDateTime expirationTimeUtc;
+ /*
+ * Tags relating to Event Subscription resource.
+ */
+ private Map tags;
+
/**
* Creates an instance of SubscriptionProperties class.
*/
@@ -142,6 +149,26 @@ public SubscriptionProperties withExpirationTimeUtc(OffsetDateTime expirationTim
return this;
}
+ /**
+ * Get the tags property: Tags relating to Event Subscription resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Tags relating to Event Subscription resource.
+ *
+ * @param tags the tags value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -155,4 +182,62 @@ public void validate() {
filtersConfiguration().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("deliveryConfiguration", this.deliveryConfiguration);
+ jsonWriter.writeStringField("eventDeliverySchema",
+ this.eventDeliverySchema == null ? null : this.eventDeliverySchema.toString());
+ jsonWriter.writeJsonField("filtersConfiguration", this.filtersConfiguration);
+ jsonWriter.writeStringField("expirationTimeUtc",
+ this.expirationTimeUtc == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeUtc));
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SubscriptionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SubscriptionProperties 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 SubscriptionProperties.
+ */
+ public static SubscriptionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SubscriptionProperties deserializedSubscriptionProperties = new SubscriptionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedSubscriptionProperties.provisioningState
+ = SubscriptionProvisioningState.fromString(reader.getString());
+ } else if ("deliveryConfiguration".equals(fieldName)) {
+ deserializedSubscriptionProperties.deliveryConfiguration = DeliveryConfiguration.fromJson(reader);
+ } else if ("eventDeliverySchema".equals(fieldName)) {
+ deserializedSubscriptionProperties.eventDeliverySchema
+ = DeliverySchema.fromString(reader.getString());
+ } else if ("filtersConfiguration".equals(fieldName)) {
+ deserializedSubscriptionProperties.filtersConfiguration = FiltersConfiguration.fromJson(reader);
+ } else if ("expirationTimeUtc".equals(fieldName)) {
+ deserializedSubscriptionProperties.expirationTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSubscriptionProperties.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSubscriptionProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionUpdateParametersProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionUpdateParametersProperties.java
index 2cd1704759cc6..32eeab58cc2b3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionUpdateParametersProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionUpdateParametersProperties.java
@@ -5,41 +5,50 @@
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.DeliveryConfiguration;
import com.azure.resourcemanager.eventgrid.models.DeliverySchema;
import com.azure.resourcemanager.eventgrid.models.FiltersConfiguration;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.Map;
/**
* Properties of the Event Subscription update parameters.
*/
@Fluent
-public final class SubscriptionUpdateParametersProperties {
+public final class SubscriptionUpdateParametersProperties
+ implements JsonSerializable {
/*
* Information about the delivery configuration of the event subscription.
*/
- @JsonProperty(value = "deliveryConfiguration")
private DeliveryConfiguration deliveryConfiguration;
/*
* The event delivery schema for the event subscription.
*/
- @JsonProperty(value = "eventDeliverySchema")
private DeliverySchema eventDeliverySchema;
/*
* Information about the filter for the event subscription.
*/
- @JsonProperty(value = "filtersConfiguration")
private FiltersConfiguration filtersConfiguration;
/*
* Expiration time of the event subscription.
*/
- @JsonProperty(value = "expirationTimeUtc")
private OffsetDateTime expirationTimeUtc;
+ /*
+ * Tags relating to Event Subscription resource.
+ */
+ private Map tags;
+
/**
* Creates an instance of SubscriptionUpdateParametersProperties class.
*/
@@ -127,6 +136,26 @@ public SubscriptionUpdateParametersProperties withExpirationTimeUtc(OffsetDateTi
return this;
}
+ /**
+ * Get the tags property: Tags relating to Event Subscription resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Tags relating to Event Subscription resource.
+ *
+ * @param tags the tags value to set.
+ * @return the SubscriptionUpdateParametersProperties object itself.
+ */
+ public SubscriptionUpdateParametersProperties withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -140,4 +169,62 @@ public void validate() {
filtersConfiguration().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("deliveryConfiguration", this.deliveryConfiguration);
+ jsonWriter.writeStringField("eventDeliverySchema",
+ this.eventDeliverySchema == null ? null : this.eventDeliverySchema.toString());
+ jsonWriter.writeJsonField("filtersConfiguration", this.filtersConfiguration);
+ jsonWriter.writeStringField("expirationTimeUtc",
+ this.expirationTimeUtc == null
+ ? null
+ : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeUtc));
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SubscriptionUpdateParametersProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SubscriptionUpdateParametersProperties 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 SubscriptionUpdateParametersProperties.
+ */
+ public static SubscriptionUpdateParametersProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SubscriptionUpdateParametersProperties deserializedSubscriptionUpdateParametersProperties
+ = new SubscriptionUpdateParametersProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("deliveryConfiguration".equals(fieldName)) {
+ deserializedSubscriptionUpdateParametersProperties.deliveryConfiguration
+ = DeliveryConfiguration.fromJson(reader);
+ } else if ("eventDeliverySchema".equals(fieldName)) {
+ deserializedSubscriptionUpdateParametersProperties.eventDeliverySchema
+ = DeliverySchema.fromString(reader.getString());
+ } else if ("filtersConfiguration".equals(fieldName)) {
+ deserializedSubscriptionUpdateParametersProperties.filtersConfiguration
+ = FiltersConfiguration.fromJson(reader);
+ } else if ("expirationTimeUtc".equals(fieldName)) {
+ deserializedSubscriptionUpdateParametersProperties.expirationTimeUtc = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSubscriptionUpdateParametersProperties.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSubscriptionUpdateParametersProperties;
+ });
+ }
}
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 f44526d9a978c..26dae4262c4e7 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
@@ -7,9 +7,12 @@
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.IdentityInfo;
import com.azure.resourcemanager.eventgrid.models.ResourceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
@@ -20,21 +23,33 @@ public final class SystemTopicInner extends Resource {
/*
* Properties of the system topic.
*/
- @JsonProperty(value = "properties")
private SystemTopicProperties innerProperties;
/*
- * The system metadata relating to System Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* Identity information for the resource.
*/
- @JsonProperty(value = "identity")
private IdentityInfo identity;
+ /*
+ * 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 SystemTopicInner class.
*/
@@ -51,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.
*/
@@ -79,6 +94,36 @@ public SystemTopicInner withIdentity(IdentityInfo identity) {
return this;
}
+ /**
+ * 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}
*/
@@ -174,4 +219,59 @@ public void validate() {
identity().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);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SystemTopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SystemTopicInner 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 SystemTopicInner.
+ */
+ public static SystemTopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SystemTopicInner deserializedSystemTopicInner = new SystemTopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSystemTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSystemTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSystemTopicInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedSystemTopicInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSystemTopicInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedSystemTopicInner.innerProperties = SystemTopicProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSystemTopicInner.systemData = SystemData.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedSystemTopicInner.identity = IdentityInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSystemTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java
index e01a253fd4099..b9076d6777f78 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java
@@ -5,36 +5,36 @@
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.ResourceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Properties of the System Topic.
*/
@Fluent
-public final class SystemTopicProperties {
+public final class SystemTopicProperties implements JsonSerializable {
/*
* Provisioning state of the system topic.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ResourceProvisioningState provisioningState;
/*
* Source for the system topic.
*/
- @JsonProperty(value = "source")
private String source;
/*
* TopicType for the system topic.
*/
- @JsonProperty(value = "topicType")
private String topicType;
/*
* Metric resource id for the system topic.
*/
- @JsonProperty(value = "metricResourceId", access = JsonProperty.Access.WRITE_ONLY)
private String metricResourceId;
/**
@@ -108,4 +108,48 @@ public String metricResourceId() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("source", this.source);
+ jsonWriter.writeStringField("topicType", this.topicType);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SystemTopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SystemTopicProperties 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 SystemTopicProperties.
+ */
+ public static SystemTopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SystemTopicProperties deserializedSystemTopicProperties = new SystemTopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedSystemTopicProperties.provisioningState
+ = ResourceProvisioningState.fromString(reader.getString());
+ } else if ("source".equals(fieldName)) {
+ deserializedSystemTopicProperties.source = reader.getString();
+ } else if ("topicType".equals(fieldName)) {
+ deserializedSystemTopicProperties.topicType = reader.getString();
+ } else if ("metricResourceId".equals(fieldName)) {
+ deserializedSystemTopicProperties.metricResourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSystemTopicProperties;
+ });
+ }
}
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 0cf21b3364afa..e7dd8e07cc431 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
@@ -7,6 +7,9 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.ExtendedLocation;
@@ -19,7 +22,7 @@
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -31,39 +34,48 @@ public final class TopicInner extends Resource {
/*
* Properties of the topic.
*/
- @JsonProperty(value = "properties")
private TopicProperties innerProperties;
/*
* The Sku pricing tier for the topic.
*/
- @JsonProperty(value = "sku")
private ResourceSku sku;
/*
* Identity information for the resource.
*/
- @JsonProperty(value = "identity")
private IdentityInfo identity;
/*
* Kind of the resource.
*/
- @JsonProperty(value = "kind")
private ResourceKind kind;
/*
* Extended location of the resource.
*/
- @JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;
/*
- * The system metadata relating to Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 TopicInner class.
*/
@@ -160,7 +172,7 @@ public TopicInner withExtendedLocation(ExtendedLocation extendedLocation) {
}
/**
- * 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.
*/
@@ -168,6 +180,36 @@ 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}
*/
@@ -447,4 +489,68 @@ public void validate() {
extendedLocation().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);
+ 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();
+ }
+
+ /**
+ * Reads an instance of TopicInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicInner 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 TopicInner.
+ */
+ public static TopicInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicInner deserializedTopicInner = new TopicInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedTopicInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedTopicInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedTopicInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedTopicInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ 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 {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java
index 790be781890c3..52456467997cb 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java
@@ -5,6 +5,10 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
@@ -13,86 +17,78 @@
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties of the Topic.
*/
@Fluent
-public final class TopicProperties {
+public final class TopicProperties implements JsonSerializable {
/*
* List of private endpoint connections.
*/
- @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
/*
* Provisioning state of the topic.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private TopicProvisioningState provisioningState;
/*
* Endpoint for the topic.
*/
- @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
/*
- * Event Type Information for the user topic. This information is provided by the publisher and can be used by the
+ * Event Type Information for the user topic. This information is provided by the publisher and can be used by the
* subscriber to view different types of events that are published.
*/
- @JsonProperty(value = "eventTypeInfo")
private EventTypeInfo eventTypeInfo;
/*
* Minimum TLS version of the publisher allowed to publish to this topic
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
* This determines the format that Event Grid should expect for incoming events published to the topic.
*/
- @JsonProperty(value = "inputSchema")
private InputSchema inputSchema;
/*
- * This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
+ * This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various
+ * properties of a source schema to various required properties of the EventGridEvent schema.
*/
- @JsonProperty(value = "inputSchemaMapping")
private InputSchemaMapping inputSchemaMapping;
/*
* Metric resource id for the topic.
*/
- @JsonProperty(value = "metricResourceId", access = JsonProperty.Access.WRITE_ONLY)
private String metricResourceId;
/*
- * This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the topic.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the topic.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
* Data Residency Boundary of the resource.
*/
- @JsonProperty(value = "dataResidencyBoundary")
private DataResidencyBoundary dataResidencyBoundary;
/**
@@ -338,4 +334,79 @@ public void validate() {
inboundIpRules().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("eventTypeInfo", this.eventTypeInfo);
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeStringField("inputSchema", this.inputSchema == null ? null : this.inputSchema.toString());
+ jsonWriter.writeJsonField("inputSchemaMapping", this.inputSchemaMapping);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeStringField("dataResidencyBoundary",
+ this.dataResidencyBoundary == null ? null : this.dataResidencyBoundary.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TopicProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicProperties 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 TopicProperties.
+ */
+ public static TopicProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicProperties deserializedTopicProperties = new TopicProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
+ deserializedTopicProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedTopicProperties.provisioningState
+ = TopicProvisioningState.fromString(reader.getString());
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedTopicProperties.endpoint = reader.getString();
+ } else if ("eventTypeInfo".equals(fieldName)) {
+ deserializedTopicProperties.eventTypeInfo = EventTypeInfo.fromJson(reader);
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedTopicProperties.minimumTlsVersionAllowed = TlsVersion.fromString(reader.getString());
+ } else if ("inputSchema".equals(fieldName)) {
+ deserializedTopicProperties.inputSchema = InputSchema.fromString(reader.getString());
+ } else if ("inputSchemaMapping".equals(fieldName)) {
+ deserializedTopicProperties.inputSchemaMapping = InputSchemaMapping.fromJson(reader);
+ } else if ("metricResourceId".equals(fieldName)) {
+ deserializedTopicProperties.metricResourceId = reader.getString();
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedTopicProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedTopicProperties.inboundIpRules = inboundIpRules;
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedTopicProperties.disableLocalAuth = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataResidencyBoundary".equals(fieldName)) {
+ deserializedTopicProperties.dataResidencyBoundary
+ = DataResidencyBoundary.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java
index 9684656f6b97e..9c39fbeccd852 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.eventgrid.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Shared access keys of the Topic.
*/
@Fluent
-public final class TopicSharedAccessKeysInner {
+public final class TopicSharedAccessKeysInner implements JsonSerializable {
/*
* Shared access key1 for the topic.
*/
- @JsonProperty(value = "key1")
private String key1;
/*
* Shared access key2 for the topic.
*/
- @JsonProperty(value = "key2")
private String key2;
/**
@@ -77,4 +79,43 @@ public TopicSharedAccessKeysInner withKey2(String key2) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key1", this.key1);
+ jsonWriter.writeStringField("key2", this.key2);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TopicSharedAccessKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicSharedAccessKeysInner 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 TopicSharedAccessKeysInner.
+ */
+ public static TopicSharedAccessKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicSharedAccessKeysInner deserializedTopicSharedAccessKeysInner = new TopicSharedAccessKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key1".equals(fieldName)) {
+ deserializedTopicSharedAccessKeysInner.key1 = reader.getString();
+ } else if ("key2".equals(fieldName)) {
+ deserializedTopicSharedAccessKeysInner.key2 = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicSharedAccessKeysInner;
+ });
+ }
}
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 5c7852e6440ea..b64f8bdba8660 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
@@ -7,8 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.TopicSpaceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -19,15 +22,28 @@ public final class TopicSpaceInner extends ProxyResource {
/*
* The properties of topic space.
*/
- @JsonProperty(value = "properties")
private TopicSpaceProperties innerProperties;
/*
- * The system metadata relating to the TopicSpace resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 TopicSpaceInner class.
*/
@@ -44,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.
*/
@@ -52,6 +68,36 @@ 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;
+ }
+
/**
* Get the description property: Description for the Topic Space resource.
*
@@ -125,4 +171,49 @@ public void validate() {
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 TopicSpaceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicSpaceInner 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 TopicSpaceInner.
+ */
+ public static TopicSpaceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicSpaceInner deserializedTopicSpaceInner = new TopicSpaceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedTopicSpaceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedTopicSpaceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedTopicSpaceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedTopicSpaceInner.innerProperties = TopicSpaceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedTopicSpaceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicSpaceInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceProperties.java
index 8ba3f8f9c652e..23a774d6a8d83 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceProperties.java
@@ -5,35 +5,36 @@
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.TopicSpaceProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* The properties of topic space.
*/
@Fluent
-public final class TopicSpaceProperties {
+public final class TopicSpaceProperties implements JsonSerializable {
/*
* Description for the Topic Space resource.
*/
- @JsonProperty(value = "description")
private String description;
/*
* The topic filters in the topic space.
- * Example: "topicTemplates": [
- * "devices/foo/bar",
- * "devices/topic1/+",
- * "devices/${principal.name}/${principal.attributes.keyName}" ].
+ * Example: "topicTemplates": [
+ * "devices/foo/bar",
+ * "devices/topic1/+",
+ * "devices/${principal.name}/${principal.attributes.keyName}" ].
*/
- @JsonProperty(value = "topicTemplates")
private List topicTemplates;
/*
* Provisioning state of the TopicSpace resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private TopicSpaceProvisioningState provisioningState;
/**
@@ -106,4 +107,48 @@ public TopicSpaceProvisioningState provisioningState() {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeArrayField("topicTemplates", this.topicTemplates,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TopicSpaceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicSpaceProperties 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 TopicSpaceProperties.
+ */
+ public static TopicSpaceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicSpaceProperties deserializedTopicSpaceProperties = new TopicSpaceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedTopicSpaceProperties.description = reader.getString();
+ } else if ("topicTemplates".equals(fieldName)) {
+ List topicTemplates = reader.readArray(reader1 -> reader1.getString());
+ deserializedTopicSpaceProperties.topicTemplates = topicTemplates;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedTopicSpaceProperties.provisioningState
+ = TopicSpaceProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicSpaceProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java
index dbe57cf44984d..6651b5258fc55 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java
@@ -6,11 +6,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.models.ResourceRegionType;
import com.azure.resourcemanager.eventgrid.models.TopicTypeAdditionalEnforcedPermission;
import com.azure.resourcemanager.eventgrid.models.TopicTypeProvisioningState;
import com.azure.resourcemanager.eventgrid.models.TopicTypeSourceScope;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -21,9 +24,23 @@ public final class TopicTypeInfoInner extends ProxyResource {
/*
* Properties of the topic type info
*/
- @JsonProperty(value = "properties")
private TopicTypeProperties innerProperties;
+ /*
+ * 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 TopicTypeInfoInner class.
*/
@@ -39,6 +56,36 @@ private TopicTypeProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * 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;
+ }
+
/**
* Get the provider property: Namespace of the provider of the topic type.
*
@@ -284,4 +331,47 @@ public void validate() {
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 TopicTypeInfoInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicTypeInfoInner 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 TopicTypeInfoInner.
+ */
+ public static TopicTypeInfoInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicTypeInfoInner deserializedTopicTypeInfoInner = new TopicTypeInfoInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedTopicTypeInfoInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedTopicTypeInfoInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedTopicTypeInfoInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedTopicTypeInfoInner.innerProperties = TopicTypeProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicTypeInfoInner;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java
index 2bf0e2034e653..30bb4fbaebd37 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java
@@ -5,76 +5,70 @@
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.ResourceRegionType;
import com.azure.resourcemanager.eventgrid.models.TopicTypeAdditionalEnforcedPermission;
import com.azure.resourcemanager.eventgrid.models.TopicTypeProvisioningState;
import com.azure.resourcemanager.eventgrid.models.TopicTypeSourceScope;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Properties of a topic type.
*/
@Fluent
-public final class TopicTypeProperties {
+public final class TopicTypeProperties implements JsonSerializable {
/*
* Namespace of the provider of the topic type.
*/
- @JsonProperty(value = "provider")
private String provider;
/*
* Display Name for the topic type.
*/
- @JsonProperty(value = "displayName")
private String displayName;
/*
* Description of the topic type.
*/
- @JsonProperty(value = "description")
private String description;
/*
* Region type of the resource.
*/
- @JsonProperty(value = "resourceRegionType")
private ResourceRegionType resourceRegionType;
/*
* Provisioning state of the topic type.
*/
- @JsonProperty(value = "provisioningState")
private TopicTypeProvisioningState provisioningState;
/*
* List of locations supported by this topic type.
*/
- @JsonProperty(value = "supportedLocations")
private List supportedLocations;
/*
* Source resource format.
*/
- @JsonProperty(value = "sourceResourceFormat")
private String sourceResourceFormat;
/*
* Supported source scopes.
*/
- @JsonProperty(value = "supportedScopesForSource")
private List supportedScopesForSource;
/*
* Flag to indicate that a topic type can support both regional or global system topics.
*/
- @JsonProperty(value = "areRegionalAndGlobalSourcesSupported")
private Boolean areRegionalAndGlobalSourcesSupported;
/*
* Permissions which are enforced for creating and updating system topics of this this topic type.
*/
- @JsonProperty(value = "additionalEnforcedPermissions")
private List additionalEnforcedPermissions;
/**
@@ -298,4 +292,80 @@ public void validate() {
additionalEnforcedPermissions().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("provider", this.provider);
+ jsonWriter.writeStringField("displayName", this.displayName);
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("resourceRegionType",
+ this.resourceRegionType == null ? null : this.resourceRegionType.toString());
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ jsonWriter.writeArrayField("supportedLocations", this.supportedLocations,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("sourceResourceFormat", this.sourceResourceFormat);
+ jsonWriter.writeArrayField("supportedScopesForSource", this.supportedScopesForSource,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeBooleanField("areRegionalAndGlobalSourcesSupported", this.areRegionalAndGlobalSourcesSupported);
+ jsonWriter.writeArrayField("additionalEnforcedPermissions", this.additionalEnforcedPermissions,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TopicTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicTypeProperties 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 TopicTypeProperties.
+ */
+ public static TopicTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicTypeProperties deserializedTopicTypeProperties = new TopicTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provider".equals(fieldName)) {
+ deserializedTopicTypeProperties.provider = reader.getString();
+ } else if ("displayName".equals(fieldName)) {
+ deserializedTopicTypeProperties.displayName = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedTopicTypeProperties.description = reader.getString();
+ } else if ("resourceRegionType".equals(fieldName)) {
+ deserializedTopicTypeProperties.resourceRegionType
+ = ResourceRegionType.fromString(reader.getString());
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedTopicTypeProperties.provisioningState
+ = TopicTypeProvisioningState.fromString(reader.getString());
+ } else if ("supportedLocations".equals(fieldName)) {
+ List supportedLocations = reader.readArray(reader1 -> reader1.getString());
+ deserializedTopicTypeProperties.supportedLocations = supportedLocations;
+ } else if ("sourceResourceFormat".equals(fieldName)) {
+ deserializedTopicTypeProperties.sourceResourceFormat = reader.getString();
+ } else if ("supportedScopesForSource".equals(fieldName)) {
+ List supportedScopesForSource
+ = reader.readArray(reader1 -> TopicTypeSourceScope.fromString(reader1.getString()));
+ deserializedTopicTypeProperties.supportedScopesForSource = supportedScopesForSource;
+ } else if ("areRegionalAndGlobalSourcesSupported".equals(fieldName)) {
+ deserializedTopicTypeProperties.areRegionalAndGlobalSourcesSupported
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("additionalEnforcedPermissions".equals(fieldName)) {
+ List additionalEnforcedPermissions
+ = reader.readArray(reader1 -> TopicTypeAdditionalEnforcedPermission.fromJson(reader1));
+ deserializedTopicTypeProperties.additionalEnforcedPermissions = additionalEnforcedPermissions;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicTypeProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java
index 5bc571931a0d2..6a54b626fdd12 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java
@@ -5,54 +5,56 @@
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.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Information of topic update parameter properties.
*/
@Fluent
-public final class TopicUpdateParameterProperties {
+public final class TopicUpdateParameterProperties implements JsonSerializable {
/*
- * This determines if traffic is allowed over public network. By default it is enabled.
- * You can further restrict to specific IPs by configuring
+ * This determines if traffic is allowed over public network. By default it is enabled.
+ * You can further restrict to specific IPs by configuring
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
+ * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if
+ * PublicNetworkAccess is enabled.
*/
- @JsonProperty(value = "inboundIpRules")
private List inboundIpRules;
/*
* Minimum TLS version of the publisher allowed to publish to this domain
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/*
- * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the topic.
+ * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true,
+ * only AAD token will be used to authenticate if user is allowed to publish to the topic.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
* The data residency boundary for the topic.
*/
- @JsonProperty(value = "dataResidencyBoundary")
private DataResidencyBoundary dataResidencyBoundary;
/*
* The eventTypeInfo for the topic.
*/
- @JsonProperty(value = "eventTypeInfo")
private EventTypeInfo eventTypeInfo;
/**
@@ -210,4 +212,65 @@ public void validate() {
eventTypeInfo().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeArrayField("inboundIpRules", this.inboundIpRules,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeStringField("dataResidencyBoundary",
+ this.dataResidencyBoundary == null ? null : this.dataResidencyBoundary.toString());
+ jsonWriter.writeJsonField("eventTypeInfo", this.eventTypeInfo);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TopicUpdateParameterProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TopicUpdateParameterProperties 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 TopicUpdateParameterProperties.
+ */
+ public static TopicUpdateParameterProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TopicUpdateParameterProperties deserializedTopicUpdateParameterProperties
+ = new TopicUpdateParameterProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedTopicUpdateParameterProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("inboundIpRules".equals(fieldName)) {
+ List inboundIpRules = reader.readArray(reader1 -> InboundIpRule.fromJson(reader1));
+ deserializedTopicUpdateParameterProperties.inboundIpRules = inboundIpRules;
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedTopicUpdateParameterProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedTopicUpdateParameterProperties.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataResidencyBoundary".equals(fieldName)) {
+ deserializedTopicUpdateParameterProperties.dataResidencyBoundary
+ = DataResidencyBoundary.fromString(reader.getString());
+ } else if ("eventTypeInfo".equals(fieldName)) {
+ deserializedTopicUpdateParameterProperties.eventTypeInfo = EventTypeInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTopicUpdateParameterProperties;
+ });
+ }
}
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 989e82da94dae..99f51f44df517 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
@@ -7,9 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
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.PartnerDetails;
import com.azure.resourcemanager.eventgrid.models.VerifiedPartnerProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.UUID;
/**
@@ -20,15 +23,28 @@ public final class VerifiedPartnerInner extends ProxyResource {
/*
* Properties of the verified partner.
*/
- @JsonProperty(value = "properties")
private VerifiedPartnerProperties innerProperties;
/*
- * The system metadata relating to Verified Partner resource.
+ * The system metadata relating to the Event Grid resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
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 VerifiedPartnerInner class.
*/
@@ -45,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.
*/
@@ -53,6 +69,36 @@ 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;
+ }
+
/**
* Get the partnerRegistrationImmutableId property: ImmutableId of the corresponding partner registration.
*
@@ -201,4 +247,49 @@ public void validate() {
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 VerifiedPartnerInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VerifiedPartnerInner 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 VerifiedPartnerInner.
+ */
+ public static VerifiedPartnerInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VerifiedPartnerInner deserializedVerifiedPartnerInner = new VerifiedPartnerInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedVerifiedPartnerInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedVerifiedPartnerInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedVerifiedPartnerInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedVerifiedPartnerInner.innerProperties = VerifiedPartnerProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedVerifiedPartnerInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVerifiedPartnerInner;
+ });
+ }
}
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 8f4bb4a7b6a90..640e1839d2186 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
@@ -5,50 +5,49 @@
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.PartnerDetails;
import com.azure.resourcemanager.eventgrid.models.VerifiedPartnerProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
+import java.util.Objects;
import java.util.UUID;
/**
* Properties of the verified partner.
*/
@Fluent
-public final class VerifiedPartnerProperties {
+public final class VerifiedPartnerProperties implements JsonSerializable {
/*
* ImmutableId of the corresponding partner registration.
*/
- @JsonProperty(value = "partnerRegistrationImmutableId")
private UUID partnerRegistrationImmutableId;
/*
* Official name of the Partner.
*/
- @JsonProperty(value = "organizationName")
private String organizationName;
/*
* Display name of the verified partner.
*/
- @JsonProperty(value = "partnerDisplayName")
private String partnerDisplayName;
/*
* Details of the partner topic scenario.
*/
- @JsonProperty(value = "partnerTopicDetails")
private PartnerDetails partnerTopicDetails;
/*
* Details of the partner destination scenario.
*/
- @JsonProperty(value = "partnerDestinationDetails")
private PartnerDetails partnerDestinationDetails;
/*
* Provisioning state of the verified partner.
*/
- @JsonProperty(value = "provisioningState")
private VerifiedPartnerProvisioningState provisioningState;
/**
@@ -190,4 +189,59 @@ public void validate() {
partnerDestinationDetails().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("partnerRegistrationImmutableId",
+ Objects.toString(this.partnerRegistrationImmutableId, null));
+ jsonWriter.writeStringField("organizationName", this.organizationName);
+ jsonWriter.writeStringField("partnerDisplayName", this.partnerDisplayName);
+ jsonWriter.writeJsonField("partnerTopicDetails", this.partnerTopicDetails);
+ jsonWriter.writeJsonField("partnerDestinationDetails", this.partnerDestinationDetails);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VerifiedPartnerProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VerifiedPartnerProperties 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 VerifiedPartnerProperties.
+ */
+ public static VerifiedPartnerProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VerifiedPartnerProperties deserializedVerifiedPartnerProperties = new VerifiedPartnerProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("partnerRegistrationImmutableId".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.partnerRegistrationImmutableId
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
+ } else if ("organizationName".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.organizationName = reader.getString();
+ } else if ("partnerDisplayName".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.partnerDisplayName = reader.getString();
+ } else if ("partnerTopicDetails".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.partnerTopicDetails = PartnerDetails.fromJson(reader);
+ } else if ("partnerDestinationDetails".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.partnerDestinationDetails = PartnerDetails.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedVerifiedPartnerProperties.provisioningState
+ = VerifiedPartnerProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVerifiedPartnerProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java
index b32e42b0c8daa..c9e2559a55ccb 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java
@@ -5,62 +5,61 @@
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.DeliveryAttributeMapping;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Information about the webhook destination properties for an event subscription.
*/
@Fluent
-public final class WebhookEventSubscriptionDestinationProperties {
+public final class WebhookEventSubscriptionDestinationProperties
+ implements JsonSerializable {
/*
* The URL that represents the endpoint of the destination of an event subscription.
*/
- @JsonProperty(value = "endpointUrl")
private String endpointUrl;
/*
* The base URL that represents the endpoint of the destination of an event subscription.
*/
- @JsonProperty(value = "endpointBaseUrl", access = JsonProperty.Access.WRITE_ONLY)
private String endpointBaseUrl;
/*
* Maximum number of events per batch.
*/
- @JsonProperty(value = "maxEventsPerBatch")
private Integer maxEventsPerBatch;
/*
* Preferred batch size in Kilobytes.
*/
- @JsonProperty(value = "preferredBatchSizeInKilobytes")
private Integer preferredBatchSizeInKilobytes;
/*
- * The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
+ * The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in
+ * delivery requests.
*/
- @JsonProperty(value = "azureActiveDirectoryTenantId")
private String azureActiveDirectoryTenantId;
/*
- * The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
+ * The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer
+ * token in delivery requests.
*/
- @JsonProperty(value = "azureActiveDirectoryApplicationIdOrUri")
private String azureActiveDirectoryApplicationIdOrUri;
/*
* Delivery attribute details.
*/
- @JsonProperty(value = "deliveryAttributeMappings")
private List deliveryAttributeMappings;
/*
* Minimum TLS version that should be supported by webhook endpoint
*/
- @JsonProperty(value = "minimumTlsVersionAllowed")
private TlsVersion minimumTlsVersionAllowed;
/**
@@ -238,4 +237,72 @@ public void validate() {
deliveryAttributeMappings().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("endpointUrl", this.endpointUrl);
+ jsonWriter.writeNumberField("maxEventsPerBatch", this.maxEventsPerBatch);
+ jsonWriter.writeNumberField("preferredBatchSizeInKilobytes", this.preferredBatchSizeInKilobytes);
+ jsonWriter.writeStringField("azureActiveDirectoryTenantId", this.azureActiveDirectoryTenantId);
+ jsonWriter.writeStringField("azureActiveDirectoryApplicationIdOrUri",
+ this.azureActiveDirectoryApplicationIdOrUri);
+ jsonWriter.writeArrayField("deliveryAttributeMappings", this.deliveryAttributeMappings,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("minimumTlsVersionAllowed",
+ this.minimumTlsVersionAllowed == null ? null : this.minimumTlsVersionAllowed.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WebhookEventSubscriptionDestinationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WebhookEventSubscriptionDestinationProperties 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 WebhookEventSubscriptionDestinationProperties.
+ */
+ public static WebhookEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WebhookEventSubscriptionDestinationProperties deserializedWebhookEventSubscriptionDestinationProperties
+ = new WebhookEventSubscriptionDestinationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpointUrl".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.endpointUrl = reader.getString();
+ } else if ("endpointBaseUrl".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.endpointBaseUrl = reader.getString();
+ } else if ("maxEventsPerBatch".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.maxEventsPerBatch
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("preferredBatchSizeInKilobytes".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.preferredBatchSizeInKilobytes
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("azureActiveDirectoryTenantId".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.azureActiveDirectoryTenantId
+ = reader.getString();
+ } else if ("azureActiveDirectoryApplicationIdOrUri".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.azureActiveDirectoryApplicationIdOrUri
+ = reader.getString();
+ } else if ("deliveryAttributeMappings".equals(fieldName)) {
+ List deliveryAttributeMappings
+ = reader.readArray(reader1 -> DeliveryAttributeMapping.fromJson(reader1));
+ deserializedWebhookEventSubscriptionDestinationProperties.deliveryAttributeMappings
+ = deliveryAttributeMappings;
+ } else if ("minimumTlsVersionAllowed".equals(fieldName)) {
+ deserializedWebhookEventSubscriptionDestinationProperties.minimumTlsVersionAllowed
+ = TlsVersion.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWebhookEventSubscriptionDestinationProperties;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookPartnerDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookPartnerDestinationProperties.java
index 8ebc3474eeb06..f7043d296b17c 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookPartnerDestinationProperties.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookPartnerDestinationProperties.java
@@ -5,30 +5,32 @@
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.PartnerClientAuthentication;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Properties of a partner destination webhook.
*/
@Fluent
-public final class WebhookPartnerDestinationProperties {
+public final class WebhookPartnerDestinationProperties
+ implements JsonSerializable {
/*
* The URL that represents the endpoint of the partner destination.
*/
- @JsonProperty(value = "endpointUrl")
private String endpointUrl;
/*
* The base URL that represents the endpoint of the partner destination.
*/
- @JsonProperty(value = "endpointBaseUrl")
private String endpointBaseUrl;
/*
* Partner client authentication
*/
- @JsonProperty(value = "clientAuthentication")
private PartnerClientAuthentication clientAuthentication;
/**
@@ -108,4 +110,48 @@ public void validate() {
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/CaCertificatesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/CaCertificatesClientImpl.java
index 9cb735613f81a..fb723a3c7694f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/CaCertificatesClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/CaCertificatesClientImpl.java
@@ -1002,9 +1002,7 @@ public PagedIterable listByNamespace(String resourceGroupNam
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1031,9 +1029,7 @@ private Mono> listByNamespaceNextSinglePageAsy
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java
index adfd2770545aa..6443805a58027 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java
@@ -36,8 +36,8 @@
import com.azure.resourcemanager.eventgrid.fluent.ChannelsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.ChannelInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
-import com.azure.resourcemanager.eventgrid.models.ChannelsListResult;
import com.azure.resourcemanager.eventgrid.models.ChannelUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.ChannelsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1220,9 +1220,7 @@ public EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1250,9 +1248,7 @@ private Mono> listByPartnerNamespaceNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java
index 7d5e9a6af82cc..6062d81c5611f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java
@@ -13,8 +13,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.ChannelInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.models.Channel;
-import com.azure.resourcemanager.eventgrid.models.Channels;
import com.azure.resourcemanager.eventgrid.models.ChannelUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.Channels;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFullUrl;
public final class ChannelsImpl implements Channels {
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientGroupsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientGroupsClientImpl.java
index 18d4dd0d73b4c..b114e4481cc8c 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientGroupsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientGroupsClientImpl.java
@@ -999,9 +999,7 @@ public PagedIterable listByNamespace(String resourceGroupName,
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1028,9 +1026,7 @@ private Mono> listByNamespaceNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientsClientImpl.java
index fccd9dd785469..5b3f9d36281cc 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ClientsClientImpl.java
@@ -983,9 +983,7 @@ public PagedIterable listByNamespace(String resourceGroupName, Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1012,9 +1010,7 @@ private Mono> listByNamespaceNextSinglePageAsync(Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java
index dac56c97f154f..91997c78ecdb2 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1635,9 +1635,7 @@ public PagedIterable list(String resourceGroupName, Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1663,9 +1661,7 @@ private Mono> listNextSinglePageAsync(Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
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 81bc1a985ea25..86d12c1db3e66 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
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1749,9 +1749,7 @@ public PagedIterable list(String resourceGroupName, Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1777,9 +1775,7 @@ private Mono> listNextSinglePageAsync(Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java
index d8dd48f3f4c5d..5b2f8850a68dd 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java
@@ -964,9 +964,7 @@ public PagedIterable listByDomain(String resourceGroupName, St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -993,9 +991,7 @@ private Mono> listByDomainNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java
index 1a916d974f5aa..58ac033d3c18c 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DomainInner;
import com.azure.resourcemanager.eventgrid.fluent.models.DomainSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.DomainsListResult;
import com.azure.resourcemanager.eventgrid.models.DomainUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.DomainsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1674,9 +1674,7 @@ public DomainSharedAccessKeysInner regenerateKey(String resourceGroupName, Strin
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1704,9 +1702,7 @@ private Mono> listBySubscriptionNextSinglePageAsync(S
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1733,9 +1729,7 @@ private Mono> listBySubscriptionNextSinglePageAsync(S
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1763,9 +1757,7 @@ private Mono> listByResourceGroupNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java
index c0aae518d2002..9cadd6738bd78 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java
@@ -14,8 +14,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DomainSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.Domain;
import com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.Domains;
import com.azure.resourcemanager.eventgrid.models.DomainSharedAccessKeys;
+import com.azure.resourcemanager.eventgrid.models.Domains;
public final class DomainsImpl implements Domains {
private static final ClientLogger LOGGER = new ClientLogger(DomainsImpl.class);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java
index f3c4915cc17c3..6e1e8d2e21244 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java
@@ -20,7 +20,8 @@
@ServiceClientBuilder(serviceClients = { EventGridManagementClientImpl.class })
public final class EventGridManagementClientBuilder {
/*
- * Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+ * Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
*/
private String subscriptionId;
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 0eb87b256c4bd..c49f67187d6c1 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
@@ -13,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollerFactory;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -28,15 +28,15 @@
import com.azure.resourcemanager.eventgrid.fluent.ClientGroupsClient;
import com.azure.resourcemanager.eventgrid.fluent.ClientsClient;
import com.azure.resourcemanager.eventgrid.fluent.DomainEventSubscriptionsClient;
-import com.azure.resourcemanager.eventgrid.fluent.DomainsClient;
import com.azure.resourcemanager.eventgrid.fluent.DomainTopicEventSubscriptionsClient;
import com.azure.resourcemanager.eventgrid.fluent.DomainTopicsClient;
+import com.azure.resourcemanager.eventgrid.fluent.DomainsClient;
import com.azure.resourcemanager.eventgrid.fluent.EventGridManagementClient;
import com.azure.resourcemanager.eventgrid.fluent.EventSubscriptionsClient;
import com.azure.resourcemanager.eventgrid.fluent.ExtensionTopicsClient;
-import com.azure.resourcemanager.eventgrid.fluent.NamespacesClient;
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;
@@ -51,9 +51,9 @@
import com.azure.resourcemanager.eventgrid.fluent.SystemTopicEventSubscriptionsClient;
import com.azure.resourcemanager.eventgrid.fluent.SystemTopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.TopicEventSubscriptionsClient;
-import com.azure.resourcemanager.eventgrid.fluent.TopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.TopicSpacesClient;
import com.azure.resourcemanager.eventgrid.fluent.TopicTypesClient;
+import com.azure.resourcemanager.eventgrid.fluent.TopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.VerifiedPartnersClient;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -607,7 +607,7 @@ public VerifiedPartnersClient getVerifiedPartners() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-06-01-preview";
+ this.apiVersion = "2024-12-15-preview";
this.caCertificates = new CaCertificatesClientImpl(this);
this.channels = new ChannelsClientImpl(this);
this.clientGroups = new ClientGroupsClientImpl(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 0d69608409a92..08f7b7edb4ff1 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
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -3881,9 +3881,7 @@ public PagedIterable listByDomainTopic(String resourceGr
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -3911,9 +3909,7 @@ private Mono> listGlobalBySubscriptionNext
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -3941,9 +3937,7 @@ private Mono> listGlobalBySubscriptionNext
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -3972,9 +3966,7 @@ private Mono> listGlobalBySubscriptionNext
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4002,9 +3994,7 @@ private Mono> listGlobalBySubscriptionNext
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4032,9 +4022,7 @@ private Mono> listGlobalByResourceGroupNex
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4062,9 +4050,7 @@ private Mono> listGlobalByResourceGroupNex
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4093,9 +4079,7 @@ private Mono> listGlobalByResourceGroupNex
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4123,9 +4107,7 @@ private Mono> listGlobalByResourceGroupNex
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4153,9 +4135,7 @@ private Mono> listRegionalBySubscriptionNe
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4183,9 +4163,7 @@ private Mono> listRegionalBySubscriptionNe
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4213,9 +4191,7 @@ private Mono> listRegionalBySubscriptionNe
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4243,9 +4219,7 @@ private Mono> listRegionalByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4274,9 +4248,7 @@ private Mono> listRegionalByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4304,9 +4276,7 @@ private Mono> listRegionalByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4335,9 +4305,7 @@ private Mono> listRegionalByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4365,9 +4333,7 @@ private Mono> listRegionalByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4394,9 +4360,7 @@ private Mono> listByResourceNextSinglePage
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4424,9 +4388,7 @@ private Mono> listByResourceNextSinglePage
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -4453,9 +4415,7 @@ private Mono> listByDomainTopicNextSingleP
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
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 091d896aedee0..c79d5d0b1b67c 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
@@ -16,8 +16,8 @@
import com.azure.resourcemanager.eventgrid.models.DeliveryAttributeListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscription;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFullUrl;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptions;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptions;
public final class EventSubscriptionsImpl implements EventSubscriptions {
private static final ClientLogger LOGGER = new ClientLogger(EventSubscriptionsImpl.class);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceImpl.java
index 2e92e57a2ee1a..4406d0c81de4f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceImpl.java
@@ -22,10 +22,10 @@
import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnection;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
-import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
import com.azure.resourcemanager.eventgrid.models.TopicSpacesConfiguration;
-import com.azure.resourcemanager.eventgrid.models.UpdateTopicsConfigurationInfo;
+import com.azure.resourcemanager.eventgrid.models.TopicsConfiguration;
import com.azure.resourcemanager.eventgrid.models.UpdateTopicSpacesConfigurationInfo;
+import com.azure.resourcemanager.eventgrid.models.UpdateTopicsConfigurationInfo;
import java.util.Collections;
import java.util.List;
import java.util.Map;
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicEventSubscriptionsClientImpl.java
index ee635c70bdf13..3cf6c1a04a621 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicEventSubscriptionsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicEventSubscriptionsClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.SubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.SubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.SubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.SubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.SubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1774,9 +1774,7 @@ public SubscriptionFullUrlInner getFullUrl(String resourceGroupName, String name
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1804,9 +1802,7 @@ private Mono> listByNamespaceTopicNextSinglePag
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicsClientImpl.java
index ace590003b162..42f7904ee323b 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespaceTopicsClientImpl.java
@@ -36,8 +36,8 @@
import com.azure.resourcemanager.eventgrid.fluent.NamespaceTopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.NamespaceTopicInner;
import com.azure.resourcemanager.eventgrid.fluent.models.TopicSharedAccessKeysInner;
-import com.azure.resourcemanager.eventgrid.models.NamespaceTopicsListResult;
import com.azure.resourcemanager.eventgrid.models.NamespaceTopicUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.NamespaceTopicsListResult;
import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -1724,9 +1724,7 @@ public TopicSharedAccessKeysInner regenerateKey(String resourceGroupName, String
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1753,9 +1751,7 @@ private Mono> listByNamespaceNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesClientImpl.java
index 9d3c0d7046078..e2d62c25b4acc 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesClientImpl.java
@@ -38,8 +38,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.NamespaceInner;
import com.azure.resourcemanager.eventgrid.fluent.models.NamespaceSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.NamespaceRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.NamespacesListResult;
import com.azure.resourcemanager.eventgrid.models.NamespaceUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.NamespacesListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -2045,9 +2045,7 @@ public CustomDomainOwnershipValidationResultInner validateCustomDomainOwnership(
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2075,9 +2073,7 @@ private Mono> listBySubscriptionNextSinglePageAsyn
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2105,9 +2101,7 @@ private Mono> listBySubscriptionNextSinglePageAsyn
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2135,9 +2129,7 @@ private Mono> listByResourceGroupNextSinglePageAsy
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesImpl.java
index 73df5e3561659..1bd705cfd0f4e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NamespacesImpl.java
@@ -16,8 +16,8 @@
import com.azure.resourcemanager.eventgrid.models.CustomDomainOwnershipValidationResult;
import com.azure.resourcemanager.eventgrid.models.Namespace;
import com.azure.resourcemanager.eventgrid.models.NamespaceRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.Namespaces;
import com.azure.resourcemanager.eventgrid.models.NamespaceSharedAccessKeys;
+import com.azure.resourcemanager.eventgrid.models.Namespaces;
public final class NamespacesImpl implements Namespaces {
private static final ClientLogger LOGGER = new ClientLogger(NamespacesImpl.class);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java
index b720c73e616a0..edc0bcad9c058 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java
@@ -36,8 +36,8 @@
import com.azure.resourcemanager.eventgrid.fluent.PartnerConfigurationsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerConfigurationInner;
import com.azure.resourcemanager.eventgrid.models.Partner;
-import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationsListResult;
import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1535,9 +1535,7 @@ public PartnerConfigurationInner unauthorizePartner(String resourceGroupName, Pa
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1565,9 +1563,7 @@ private Mono> listBySubscriptionNextSin
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java
index a3657305c4e37..3d0fc6d568870 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java
@@ -13,8 +13,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerConfigurationInner;
import com.azure.resourcemanager.eventgrid.models.Partner;
import com.azure.resourcemanager.eventgrid.models.PartnerConfiguration;
-import com.azure.resourcemanager.eventgrid.models.PartnerConfigurations;
import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.PartnerConfigurations;
public final class PartnerConfigurationsImpl implements PartnerConfigurations {
private static final ClientLogger LOGGER = new ClientLogger(PartnerConfigurationsImpl.class);
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
index 41b8999e1e499..55283ae61a98b 100644
--- 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
@@ -35,8 +35,8 @@
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.PartnerDestinationsListResult;
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;
@@ -1561,9 +1561,7 @@ public PartnerDestinationInner activate(String resourceGroupName, String partner
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1591,9 +1589,7 @@ private Mono> listBySubscriptionNextSingl
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1621,9 +1617,7 @@ private Mono> listBySubscriptionNextSingl
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1651,9 +1645,7 @@ private Mono> listByResourceGroupNextSing
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java
index fd2d800f75583..c2315f9ca0719 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerNamespaceInner;
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerNamespaceSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.PartnerNamespacesListResult;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.PartnerNamespacesListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1731,9 +1731,7 @@ public PartnerNamespaceSharedAccessKeysInner regenerateKey(String resourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1761,9 +1759,7 @@ private Mono> listBySubscriptionNextSingleP
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1791,9 +1787,7 @@ private Mono> listBySubscriptionNextSingleP
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1821,9 +1815,7 @@ private Mono> listByResourceGroupNextSingle
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java
index c73f5c566f5be..50a85db236b3c 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java
@@ -14,8 +14,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerNamespaceSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespace;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.PartnerNamespaces;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceSharedAccessKeys;
+import com.azure.resourcemanager.eventgrid.models.PartnerNamespaces;
public final class PartnerNamespacesImpl implements PartnerNamespaces {
private static final ClientLogger LOGGER = new ClientLogger(PartnerNamespacesImpl.class);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java
index 91984370d38be..422799e7c01da 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java
@@ -34,8 +34,8 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.eventgrid.fluent.PartnerRegistrationsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerRegistrationInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerRegistrationsListResult;
import com.azure.resourcemanager.eventgrid.models.PartnerRegistrationUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.PartnerRegistrationsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1424,9 +1424,7 @@ public PagedIterable listByResourceGroup(String resour
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1454,9 +1452,7 @@ private Mono> listBySubscriptionNextSing
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1484,9 +1480,7 @@ private Mono> listBySubscriptionNextSing
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1514,9 +1508,7 @@ private Mono> listByResourceGroupNextSin
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java
index dd8f16b0abb97..d121faab5b090 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1681,9 +1681,7 @@ public DeliveryAttributeListResultInner getDeliveryAttributes(String resourceGro
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1711,9 +1709,7 @@ private Mono> listByPartnerTopicNextSingle
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java
index f92aa95603d17..e24e2eecc48a0 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java
@@ -35,8 +35,8 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.eventgrid.fluent.PartnerTopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.PartnerTopicInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerTopicsListResult;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.PartnerTopicsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1467,9 +1467,7 @@ public PartnerTopicInner deactivate(String resourceGroupName, String partnerTopi
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1497,9 +1495,7 @@ private Mono> listBySubscriptionNextSinglePageA
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1527,9 +1523,7 @@ private Mono> listBySubscriptionNextSinglePageA
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1557,9 +1551,7 @@ private Mono> listByResourceGroupNextSinglePage
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PermissionBindingsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PermissionBindingsClientImpl.java
index 89e21d07e1a51..debc595aab404 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PermissionBindingsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PermissionBindingsClientImpl.java
@@ -1010,9 +1010,7 @@ public PagedIterable listByNamespace(String resourceGrou
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1039,9 +1037,7 @@ private Mono> listByNamespaceNextSinglePag
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java
index 9a581ab7970f0..bec13e6eb6ac3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -1179,9 +1179,7 @@ public PagedIterable listByResource(String resou
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1208,9 +1206,7 @@ private Mono> listByResourceNextSi
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java
index e02900f765c09..91f874b161d6e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java
@@ -516,9 +516,7 @@ public PagedIterable listByResource(String resourceGro
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -545,9 +543,7 @@ private Mono> listByResourceNextSinglePa
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SubscriptionImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SubscriptionImpl.java
index 604db4a34c0d4..14ea2c1c7f61e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SubscriptionImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SubscriptionImpl.java
@@ -17,6 +17,8 @@
import com.azure.resourcemanager.eventgrid.models.SubscriptionProvisioningState;
import com.azure.resourcemanager.eventgrid.models.SubscriptionUpdateParameters;
import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.Map;
public final class SubscriptionImpl implements Subscription, Subscription.Definition, Subscription.Update {
private SubscriptionInner innerObject;
@@ -59,6 +61,15 @@ public OffsetDateTime expirationTimeUtc() {
return this.innerModel().expirationTimeUtc();
}
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public String resourceGroupName() {
return resourceGroupName;
}
@@ -178,6 +189,16 @@ public SubscriptionFullUrl getFullUrl() {
.getFullUrl(resourceGroupName, namespaceName, topicName, eventSubscriptionName);
}
+ public SubscriptionImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateEventSubscriptionUpdateParameters.withTags(tags);
+ return this;
+ }
+ }
+
public SubscriptionImpl withDeliveryConfiguration(DeliveryConfiguration deliveryConfiguration) {
if (isInCreateMode()) {
this.innerModel().withDeliveryConfiguration(deliveryConfiguration);
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 b86c922450336..c9c29e288d8d2 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
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1674,9 +1674,7 @@ public PagedIterable listBySystemTopic(String resourceGr
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1703,9 +1701,7 @@ private Mono> listBySystemTopicNextSingleP
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java
index 4760304908a52..d275cf0999996 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java
@@ -34,8 +34,8 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.eventgrid.fluent.SystemTopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.models.SystemTopicInner;
-import com.azure.resourcemanager.eventgrid.models.SystemTopicsListResult;
import com.azure.resourcemanager.eventgrid.models.SystemTopicUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.SystemTopicsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1395,9 +1395,7 @@ public PagedIterable listByResourceGroup(String resourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1425,9 +1423,7 @@ private Mono> listBySubscriptionNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1455,9 +1451,7 @@ private Mono> listBySubscriptionNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1485,9 +1479,7 @@ private Mono> listByResourceGroupNextSinglePageA
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java
index ba5169a07b388..d0679612207a4 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java
@@ -37,8 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DeliveryAttributeListResultInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionFullUrlInner;
import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner;
-import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.EventSubscriptionsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1633,9 +1633,7 @@ public PagedIterable list(String resourceGroupName, Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1661,9 +1659,7 @@ private Mono> listNextSinglePageAsync(Stri
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicSpacesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicSpacesClientImpl.java
index 85eef75330c5c..caa4abb2cba2e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicSpacesClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicSpacesClientImpl.java
@@ -989,9 +989,7 @@ public PagedIterable listByNamespace(String resourceGroupName,
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -1018,9 +1016,7 @@ private Mono> listByNamespaceNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java
index 1535d0cae9a3c..b8fef8f819c7e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java
@@ -39,8 +39,8 @@
import com.azure.resourcemanager.eventgrid.fluent.models.TopicSharedAccessKeysInner;
import com.azure.resourcemanager.eventgrid.models.EventTypesListResult;
import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.TopicsListResult;
import com.azure.resourcemanager.eventgrid.models.TopicUpdateParameters;
+import com.azure.resourcemanager.eventgrid.models.TopicsListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -1980,9 +1980,7 @@ public PagedIterable listEventTypes(String resourceGroupName, St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2010,9 +2008,7 @@ private Mono> listBySubscriptionNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2039,9 +2035,7 @@ private Mono> listBySubscriptionNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -2069,9 +2063,7 @@ private Mono> listByResourceGroupNextSinglePageAsync(S
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java
index 49bb2d04d9242..605c13aaf7fbc 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java
@@ -16,8 +16,8 @@
import com.azure.resourcemanager.eventgrid.models.EventType;
import com.azure.resourcemanager.eventgrid.models.Topic;
import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
-import com.azure.resourcemanager.eventgrid.models.Topics;
import com.azure.resourcemanager.eventgrid.models.TopicSharedAccessKeys;
+import com.azure.resourcemanager.eventgrid.models.Topics;
public final class TopicsImpl implements Topics {
private static final ClientLogger LOGGER = new ClientLogger(TopicsImpl.class);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java
index 12e370338fdfa..9e9dfde50396d 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java
@@ -361,9 +361,7 @@ public PagedIterable list(String filter, Integer top, Cont
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
@@ -389,9 +387,7 @@ private Mono> listNextSinglePageAsync(String
/**
* Get the next page of items.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @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.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java
index 932d16d1a15fc..73ca9410fb635 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java
@@ -5,11 +5,11 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* This is the base type that represents an advanced filter. To configure an advanced filter, do not directly
@@ -17,48 +17,22 @@
* BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key
* based on which you want to filter.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "operatorType", defaultImpl = AdvancedFilter.class, visible = true)
-@JsonTypeName("AdvancedFilter")
-@JsonSubTypes({
- @JsonSubTypes.Type(name = "NumberIn", value = NumberInAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberNotIn", value = NumberNotInAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberLessThan", value = NumberLessThanAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberGreaterThan", value = NumberGreaterThanAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberLessThanOrEquals", value = NumberLessThanOrEqualsAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberGreaterThanOrEquals", value = NumberGreaterThanOrEqualsAdvancedFilter.class),
- @JsonSubTypes.Type(name = "BoolEquals", value = BoolEqualsAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringIn", value = StringInAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringNotIn", value = StringNotInAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringBeginsWith", value = StringBeginsWithAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringEndsWith", value = StringEndsWithAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringContains", value = StringContainsAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberInRange", value = NumberInRangeAdvancedFilter.class),
- @JsonSubTypes.Type(name = "NumberNotInRange", value = NumberNotInRangeAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringNotBeginsWith", value = StringNotBeginsWithAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringNotEndsWith", value = StringNotEndsWithAdvancedFilter.class),
- @JsonSubTypes.Type(name = "StringNotContains", value = StringNotContainsAdvancedFilter.class),
- @JsonSubTypes.Type(name = "IsNullOrUndefined", value = IsNullOrUndefinedAdvancedFilter.class),
- @JsonSubTypes.Type(name = "IsNotNull", value = IsNotNullAdvancedFilter.class) })
@Fluent
-public class AdvancedFilter {
+public class AdvancedFilter implements JsonSerializable {
/*
* The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
*/
- @JsonTypeId
- @JsonProperty(value = "operatorType", required = true)
- private AdvancedFilterOperatorType operatorType;
+ private AdvancedFilterOperatorType operatorType = AdvancedFilterOperatorType.fromString("AdvancedFilter");
/*
* The field/property in the event based on which you want to filter.
*/
- @JsonProperty(value = "key")
private String key;
/**
* Creates an instance of AdvancedFilter class.
*/
public AdvancedFilter() {
- this.operatorType = AdvancedFilterOperatorType.fromString("AdvancedFilter");
}
/**
@@ -98,4 +72,104 @@ public AdvancedFilter withKey(String key) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("operatorType", this.operatorType == null ? null : this.operatorType.toString());
+ jsonWriter.writeStringField("key", this.key);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AdvancedFilter from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AdvancedFilter 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 AdvancedFilter.
+ */
+ public static AdvancedFilter fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String discriminatorValue = null;
+ try (JsonReader readerToUse = reader.bufferObject()) {
+ readerToUse.nextToken(); // Prepare for reading
+ while (readerToUse.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = readerToUse.getFieldName();
+ readerToUse.nextToken();
+ if ("operatorType".equals(fieldName)) {
+ discriminatorValue = readerToUse.getString();
+ break;
+ } else {
+ readerToUse.skipChildren();
+ }
+ }
+ // Use the discriminator value to determine which subtype should be deserialized.
+ if ("NumberIn".equals(discriminatorValue)) {
+ return NumberInAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberNotIn".equals(discriminatorValue)) {
+ return NumberNotInAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberLessThan".equals(discriminatorValue)) {
+ return NumberLessThanAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberGreaterThan".equals(discriminatorValue)) {
+ return NumberGreaterThanAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberLessThanOrEquals".equals(discriminatorValue)) {
+ return NumberLessThanOrEqualsAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberGreaterThanOrEquals".equals(discriminatorValue)) {
+ return NumberGreaterThanOrEqualsAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("BoolEquals".equals(discriminatorValue)) {
+ return BoolEqualsAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringIn".equals(discriminatorValue)) {
+ return StringInAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringNotIn".equals(discriminatorValue)) {
+ return StringNotInAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringBeginsWith".equals(discriminatorValue)) {
+ return StringBeginsWithAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringEndsWith".equals(discriminatorValue)) {
+ return StringEndsWithAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringContains".equals(discriminatorValue)) {
+ return StringContainsAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberInRange".equals(discriminatorValue)) {
+ return NumberInRangeAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("NumberNotInRange".equals(discriminatorValue)) {
+ return NumberNotInRangeAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringNotBeginsWith".equals(discriminatorValue)) {
+ return StringNotBeginsWithAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringNotEndsWith".equals(discriminatorValue)) {
+ return StringNotEndsWithAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("StringNotContains".equals(discriminatorValue)) {
+ return StringNotContainsAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("IsNullOrUndefined".equals(discriminatorValue)) {
+ return IsNullOrUndefinedAdvancedFilter.fromJson(readerToUse.reset());
+ } else if ("IsNotNull".equals(discriminatorValue)) {
+ return IsNotNullAdvancedFilter.fromJson(readerToUse.reset());
+ } else {
+ return fromJsonKnownDiscriminator(readerToUse.reset());
+ }
+ }
+ });
+ }
+
+ static AdvancedFilter fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AdvancedFilter deserializedAdvancedFilter = new AdvancedFilter();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("operatorType".equals(fieldName)) {
+ deserializedAdvancedFilter.operatorType = AdvancedFilterOperatorType.fromString(reader.getString());
+ } else if ("key".equals(fieldName)) {
+ deserializedAdvancedFilter.key = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAdvancedFilter;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java
index c604f4af6a0a8..0792d66252c62 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -123,7 +122,6 @@ public AdvancedFilterOperatorType() {
* @param name a name to look for.
* @return the corresponding AdvancedFilterOperatorType.
*/
- @JsonCreator
public static AdvancedFilterOperatorType fromString(String name) {
return fromString(name, AdvancedFilterOperatorType.class);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AlternativeAuthenticationNameSource.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AlternativeAuthenticationNameSource.java
index c23d19b7d6c73..fc53c6536c89f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AlternativeAuthenticationNameSource.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AlternativeAuthenticationNameSource.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -55,7 +54,6 @@ public AlternativeAuthenticationNameSource() {
* @param name a name to look for.
* @return the corresponding AlternativeAuthenticationNameSource.
*/
- @JsonCreator
public static AlternativeAuthenticationNameSource fromString(String name) {
return fromString(name, AlternativeAuthenticationNameSource.class);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureADPartnerClientAuthentication.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureADPartnerClientAuthentication.java
index 0b4de82ec64c3..090089a750584 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureADPartnerClientAuthentication.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureADPartnerClientAuthentication.java
@@ -5,34 +5,25 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.fluent.models.AzureADPartnerClientAuthenticationProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.io.IOException;
/**
* Azure Active Directory Partner Client Authentication.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "clientAuthenticationType",
- defaultImpl = AzureADPartnerClientAuthentication.class,
- visible = true)
-@JsonTypeName("AzureAD")
@Fluent
public final class AzureADPartnerClientAuthentication extends PartnerClientAuthentication {
/*
* Type of client authentication
*/
- @JsonTypeId
- @JsonProperty(value = "clientAuthenticationType", required = true)
private PartnerClientAuthenticationType clientAuthenticationType = PartnerClientAuthenticationType.AZURE_AD;
/*
* AzureAD ClientAuthentication Properties
*/
- @JsonProperty(value = "properties")
private AzureADPartnerClientAuthenticationProperties innerProperties;
/**
@@ -118,9 +109,51 @@ public String azureActiveDirectoryApplicationIdOrUri() {
*/
@Override
public void validate() {
- super.validate();
if (innerProperties() != null) {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("clientAuthenticationType",
+ this.clientAuthenticationType == null ? null : this.clientAuthenticationType.toString());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureADPartnerClientAuthentication from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureADPartnerClientAuthentication 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 AzureADPartnerClientAuthentication.
+ */
+ public static AzureADPartnerClientAuthentication fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureADPartnerClientAuthentication deserializedAzureADPartnerClientAuthentication
+ = new AzureADPartnerClientAuthentication();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("clientAuthenticationType".equals(fieldName)) {
+ deserializedAzureADPartnerClientAuthentication.clientAuthenticationType
+ = PartnerClientAuthenticationType.fromString(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedAzureADPartnerClientAuthentication.innerProperties
+ = AzureADPartnerClientAuthenticationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureADPartnerClientAuthentication;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureFunctionEventSubscriptionDestination.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureFunctionEventSubscriptionDestination.java
index 769c08ab271cf..492d335f46f75 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureFunctionEventSubscriptionDestination.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AzureFunctionEventSubscriptionDestination.java
@@ -5,35 +5,26 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.fluent.models.AzureFunctionEventSubscriptionDestinationProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.io.IOException;
import java.util.List;
/**
* Information about the azure function destination for an event subscription.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "endpointType",
- defaultImpl = AzureFunctionEventSubscriptionDestination.class,
- visible = true)
-@JsonTypeName("AzureFunction")
@Fluent
public final class AzureFunctionEventSubscriptionDestination extends EventSubscriptionDestination {
/*
* Type of the endpoint for the event subscription destination.
*/
- @JsonTypeId
- @JsonProperty(value = "endpointType", required = true)
private EndpointType endpointType = EndpointType.AZURE_FUNCTION;
/*
* Azure Function Properties of the event subscription destination.
*/
- @JsonProperty(value = "properties")
private AzureFunctionEventSubscriptionDestinationProperties innerProperties;
/**
@@ -164,9 +155,50 @@ public List deliveryAttributeMappings() {
*/
@Override
public void validate() {
- super.validate();
if (innerProperties() != null) {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("endpointType", this.endpointType == null ? null : this.endpointType.toString());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureFunctionEventSubscriptionDestination from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureFunctionEventSubscriptionDestination 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 AzureFunctionEventSubscriptionDestination.
+ */
+ public static AzureFunctionEventSubscriptionDestination fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureFunctionEventSubscriptionDestination deserializedAzureFunctionEventSubscriptionDestination
+ = new AzureFunctionEventSubscriptionDestination();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpointType".equals(fieldName)) {
+ deserializedAzureFunctionEventSubscriptionDestination.endpointType
+ = EndpointType.fromString(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedAzureFunctionEventSubscriptionDestination.innerProperties
+ = AzureFunctionEventSubscriptionDestinationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureFunctionEventSubscriptionDestination;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsAdvancedFilter.java
index 2dc8f613a2bcb..b3db2ab7d8dff 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsAdvancedFilter.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsAdvancedFilter.java
@@ -5,33 +5,24 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* BoolEquals Advanced Filter.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "operatorType",
- defaultImpl = BoolEqualsAdvancedFilter.class,
- visible = true)
-@JsonTypeName("BoolEquals")
@Fluent
public final class BoolEqualsAdvancedFilter extends AdvancedFilter {
/*
* The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
*/
- @JsonTypeId
- @JsonProperty(value = "operatorType", required = true)
private AdvancedFilterOperatorType operatorType = AdvancedFilterOperatorType.BOOL_EQUALS;
/*
* The boolean filter value.
*/
- @JsonProperty(value = "value")
private Boolean value;
/**
@@ -87,6 +78,48 @@ public BoolEqualsAdvancedFilter withKey(String key) {
*/
@Override
public void validate() {
- super.validate();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key", key());
+ jsonWriter.writeStringField("operatorType", this.operatorType == null ? null : this.operatorType.toString());
+ jsonWriter.writeBooleanField("value", this.value);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BoolEqualsAdvancedFilter from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BoolEqualsAdvancedFilter 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 BoolEqualsAdvancedFilter.
+ */
+ public static BoolEqualsAdvancedFilter fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BoolEqualsAdvancedFilter deserializedBoolEqualsAdvancedFilter = new BoolEqualsAdvancedFilter();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key".equals(fieldName)) {
+ deserializedBoolEqualsAdvancedFilter.withKey(reader.getString());
+ } else if ("operatorType".equals(fieldName)) {
+ deserializedBoolEqualsAdvancedFilter.operatorType
+ = AdvancedFilterOperatorType.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedBoolEqualsAdvancedFilter.value = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBoolEqualsAdvancedFilter;
+ });
}
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsFilter.java
index fdb9c3ace3d4c..83cfe834e319b 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsFilter.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/BoolEqualsFilter.java
@@ -5,33 +5,24 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeId;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* BoolEquals Filter.
*/
-@JsonTypeInfo(
- use = JsonTypeInfo.Id.NAME,
- property = "operatorType",
- defaultImpl = BoolEqualsFilter.class,
- visible = true)
-@JsonTypeName("BoolEquals")
@Fluent
public final class BoolEqualsFilter extends Filter {
/*
* The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
*/
- @JsonTypeId
- @JsonProperty(value = "operatorType", required = true)
private FilterOperatorType operatorType = FilterOperatorType.BOOL_EQUALS;
/*
* The boolean filter value.
*/
- @JsonProperty(value = "value")
private Boolean value;
/**
@@ -87,6 +78,47 @@ public BoolEqualsFilter withKey(String key) {
*/
@Override
public void validate() {
- super.validate();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key", key());
+ jsonWriter.writeStringField("operatorType", this.operatorType == null ? null : this.operatorType.toString());
+ jsonWriter.writeBooleanField("value", this.value);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BoolEqualsFilter from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BoolEqualsFilter 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 BoolEqualsFilter.
+ */
+ public static BoolEqualsFilter fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BoolEqualsFilter deserializedBoolEqualsFilter = new BoolEqualsFilter();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key".equals(fieldName)) {
+ deserializedBoolEqualsFilter.withKey(reader.getString());
+ } else if ("operatorType".equals(fieldName)) {
+ deserializedBoolEqualsFilter.operatorType = FilterOperatorType.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedBoolEqualsFilter.value = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBoolEqualsFilter;
+ });
}
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificate.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificate.java
index f88ea170c189f..8c8fcd9156c1f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificate.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificate.java
@@ -35,7 +35,7 @@ public interface CaCertificate {
String type();
/**
- * Gets the systemData property: The system metadata relating to the CaCertificate resource.
+ * Gets 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/models/CaCertificateProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificateProvisioningState.java
index b68380c133a04..aa079caa7e340 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificateProvisioningState.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificateProvisioningState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -62,7 +61,6 @@ public CaCertificateProvisioningState() {
* @param name a name to look for.
* @return the corresponding CaCertificateProvisioningState.
*/
- @JsonCreator
public static CaCertificateProvisioningState fromString(String name) {
return fromString(name, CaCertificateProvisioningState.class);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificatesListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificatesListResult.java
index 6431055dcaa8c..9c73b151fd612 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificatesListResult.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/CaCertificatesListResult.java
@@ -5,25 +5,27 @@
package com.azure.resourcemanager.eventgrid.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.fluent.models.CaCertificateInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Result of the List CA Certificate operation.
*/
@Fluent
-public final class CaCertificatesListResult {
+public final class CaCertificatesListResult implements JsonSerializable {
/*
* A collection of CA Certificate.
*/
- @JsonProperty(value = "value")
private List value;
/*
* A link for the next page of CA Certificate.
*/
- @JsonProperty(value = "nextLink")
private String nextLink;
/**
@@ -82,4 +84,44 @@ public void validate() {
value().forEach(e -> e.validate());
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CaCertificatesListResult from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CaCertificatesListResult 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 CaCertificatesListResult.
+ */
+ public static CaCertificatesListResult fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CaCertificatesListResult deserializedCaCertificatesListResult = new CaCertificatesListResult();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> CaCertificateInner.fromJson(reader1));
+ deserializedCaCertificatesListResult.value = value;
+ } else if ("nextLink".equals(fieldName)) {
+ deserializedCaCertificatesListResult.nextLink = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCaCertificatesListResult;
+ });
+ }
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channel.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channel.java
index 4315166e43710..d62313522f459 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channel.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channel.java
@@ -36,7 +36,7 @@ public interface Channel {
String type();
/**
- * Gets the systemData property: The system metadata relating to Channel resource.
+ * Gets 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/models/ChannelProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java
index 1c512634c8645..d26c465ef4498 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -69,7 +68,6 @@ public ChannelProvisioningState() {
* @param name a name to look for.
* @return the corresponding ChannelProvisioningState.
*/
- @JsonCreator
public static ChannelProvisioningState fromString(String name) {
return fromString(name, ChannelProvisioningState.class);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelType.java
index b6c7aa9608f3e..3388de345ddb9 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelType.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelType.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
@@ -37,7 +36,6 @@ public ChannelType() {
* @param name a name to look for.
* @return the corresponding ChannelType.
*/
- @JsonCreator
public static ChannelType fromString(String name) {
return fromString(name, ChannelType.class);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java
index 55ae8b3bcd849..bf423d3be6494 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java
@@ -5,19 +5,22 @@
package com.azure.resourcemanager.eventgrid.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.fluent.models.ChannelUpdateParametersProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.time.OffsetDateTime;
/**
* Properties of the Channel update.
*/
@Fluent
-public final class ChannelUpdateParameters {
+public final class ChannelUpdateParameters implements JsonSerializable