Skip to content

Commit

Permalink
Re-generate EventGrid 4.4.0 events without FarmsBeat events (#22148)
Browse files Browse the repository at this point in the history
  • Loading branch information
YijunXieMS authored Jun 8, 2021
1 parent 126cf34 commit c44cbf4
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 4,725 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@
import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData;
import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData;
import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData;
import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData;
import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData;
Expand Down Expand Up @@ -426,7 +411,6 @@ public final class SystemEventNames {
public static final String STORAGE_BLOB_INVENTORY_POLICY_COMPLETED =
"Microsoft.Storage.BlobInventoryPolicyCompleted";


/**
* indicates an event of blob renaming.
*/
Expand Down Expand Up @@ -553,67 +537,6 @@ public final class SystemEventNames {
public static final String POLICY_INSIGHTS_POLICY_STATE_CHANGED = "Microsoft.PolicyInsights.PolicyStateChanged";
public static final String POLICY_INSIGHTS_POLICY_STATE_DELETED = "Microsoft.PolicyInsights.PolicyStateDeleted";

// Agriculture Food Farming
/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */
public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED =
"Microsoft.AgFoodPlatform.ApplicationDataChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */
public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */
public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */
public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */
public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */
public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */
public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */
public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */
public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */
public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */
public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED =
"Microsoft.AgFoodPlatform.SeasonalFieldChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */
public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged";


private static final Map<String, Class<?>> SYSTEM_EVENT_MAPPINGS = new HashMap<String, Class<?>>() {
{
// AppConfiguration events.
Expand Down Expand Up @@ -772,31 +695,6 @@ public final class SystemEventNames {
put(POLICY_INSIGHTS_POLICY_STATE_CREATED, PolicyInsightsPolicyStateCreatedEventData.class);
put(POLICY_INSIGHTS_POLICY_STATE_CHANGED, PolicyInsightsPolicyStateChangedEventData.class);
put(POLICY_INSIGHTS_POLICY_STATE_DELETED, PolicyInsightsPolicyStateDeletedEventData.class);

// Agriculture Food Farming
put(
AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED,
AgriFoodFarmingApplicationDataChangedEventData.class);
put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class);
put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class);
put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class);
put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class);
put(
AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class);
put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class);
put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class);
put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class);
put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class);
put(
AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class);
put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class);
put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class);
put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class);
put(
AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@
import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData;
import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData;
import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData;
import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData;
import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData;
import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData;
Expand Down Expand Up @@ -247,65 +232,6 @@ public final class SystemEventMappingNames {
/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. */
public static final String ACS_SMS_RECEIVED = "Microsoft.Communication.SMSReceived";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */
public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED =
"Microsoft.AgFoodPlatform.ApplicationDataChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */
public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */
public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */
public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */
public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */
public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */
public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */
public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */
public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */
public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */
public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED =
"Microsoft.AgFoodPlatform.SeasonalFieldChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */
public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged";

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event.
*/
public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED =
"Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged";

/** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. */
public static final String APP_CONFIGURATION_KEY_VALUE_DELETED = "Microsoft.AppConfiguration.KeyValueDeleted";

Expand Down Expand Up @@ -772,29 +698,6 @@ public final class SystemEventMappingNames {
put(ACS_RECORDING_FILE_STATUS_UPDATED, AcsRecordingFileStatusUpdatedEventData.class);
put(ACS_SMS_DELIVERY_REPORT_RECEIVED, AcsSmsDeliveryReportReceivedEventData.class);
put(ACS_SMS_RECEIVED, AcsSmsReceivedEventData.class);
put(
AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED,
AgriFoodFarmingApplicationDataChangedEventData.class);
put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class);
put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class);
put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class);
put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class);
put(
AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class);
put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class);
put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class);
put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class);
put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class);
put(
AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class);
put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class);
put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class);
put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class);
put(
AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED,
AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class);
put(APP_CONFIGURATION_KEY_VALUE_DELETED, AppConfigurationKeyValueDeletedEventData.class);
put(APP_CONFIGURATION_KEY_VALUE_MODIFIED, AppConfigurationKeyValueModifiedEventData.class);
put(CONTAINER_REGISTRY_CHART_DELETED, ContainerRegistryChartDeletedEventData.class);
Expand Down Expand Up @@ -934,5 +837,7 @@ public static Map<String, Class<?>> getSystemEventMappings() {
return Collections.unmodifiableMap(SYSTEM_EVENT_MAPPINGS);
}

private SystemEventMappingNames() { }
private SystemEventMappingNames() {

}
}
Loading

0 comments on commit c44cbf4

Please sign in to comment.