@@ -76,11 +76,9 @@ def create_entity_examples(j1):
7676 'backupRetentionPeriod' : 7 ,
7777 'tag.Environment' : 'production' ,
7878 'tag.Team' : 'data' ,
79- 'metadata' : {
80- 'createdBy' : 'terraform' ,
81- 'lastBackup' : '2024-01-01T00:00:00Z' ,
82- 'maintenanceWindow' : 'sun:03:00-sun:04:00'
83- }
79+ 'createdBy' : 'terraform' ,
80+ 'lastBackup' : '2024-01-01T00:00:00Z' ,
81+ 'maintenanceWindow' : 'sun:03:00-sun:04:00'
8482 },
8583 timestamp = int (time .time ()) * 1000
8684 )
@@ -122,16 +120,12 @@ def update_entity_examples(j1, entity_id):
122120 entity_id = entity_id ,
123121 properties = {
124122 'isActive' : False ,
125- 'maintenanceWindow' : {
126- 'start' : '2024-01-01T00:00:00Z' ,
127- 'end' : '2024-01-01T04:00:00Z' ,
128- 'reason' : 'scheduled_maintenance'
129- },
130- 'metadata' : {
131- 'maintenancePerformedBy' : 'admin@company.com' ,
132- 'maintenanceType' : 'security_patches' ,
133- 'estimatedDuration' : '4 hours'
134- }
123+ 'maintenanceWindowStart' : '2024-01-01T00:00:00Z' ,
124+ 'maintenanceWindowEnd' : '2024-01-01T04:00:00Z' ,
125+ 'maintenanceReason' : 'scheduled_maintenance' ,
126+ 'maintenancePerformedBy' : 'admin@company.com' ,
127+ 'maintenanceType' : 'security_patches' ,
128+ 'estimatedDuration' : '4 hours'
135129 }
136130 )
137131 print (f"Updated with complex properties\n " )
0 commit comments