Closes: #17936 - GFK serializer field (#20706)
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled

* Establish GFKSerializerField and replace get_* methods in circuits.py

* Set read_only=True

* Apply GFKSerializerField to all matching SerializerMethodFields

* Use GFKSerializerField for ObjectChangeSerializer.changed_object and EventRuleSerializer.action_object
This commit is contained in:
bctiemann
2025-11-04 10:01:22 -05:00
committed by GitHub
parent 068d493cc6
commit bcffc383bf
22 changed files with 119 additions and 318 deletions

View File

@@ -206935,8 +206935,8 @@
"format": "int64"
},
"object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"user": {
"$ref": "#/components/schemas/BriefUser"
@@ -211700,8 +211700,8 @@
"readOnly": true
},
"termination": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"created": {
"type": "string",
@@ -211972,8 +211972,8 @@
"nullable": true
},
"termination": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"port_speed": {
"type": "integer",
@@ -212176,8 +212176,8 @@
"format": "int64"
},
"member": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"priority": {
"type": "object",
@@ -212561,8 +212561,8 @@
"nullable": true
},
"termination": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"port_speed": {
"type": "integer",
@@ -212978,8 +212978,8 @@
"nullable": true
},
"scope": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"description": {
"type": "string",
@@ -215293,9 +215293,8 @@
"format": "int64"
},
"object": {
"type": "object",
"additionalProperties": {},
"readOnly": true
"readOnly": true,
"nullable": true
},
"contact": {
"$ref": "#/components/schemas/BriefContact"
@@ -219029,9 +219028,8 @@
"nullable": true
},
"action_object": {
"type": "object",
"additionalProperties": {},
"readOnly": true
"readOnly": true,
"nullable": true
},
"description": {
"type": "string",
@@ -219536,8 +219534,8 @@
"format": "int64"
},
"interface": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"priority": {
"type": "integer",
@@ -221339,8 +221337,8 @@
"nullable": true
},
"assigned_object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"nat_inside": {
"allOf": [
@@ -222501,8 +222499,8 @@
"format": "int64"
},
"parent": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"name": {
"type": "string",
@@ -225660,8 +225658,8 @@
"nullable": true
},
"component": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"tags": {
"type": "array",
@@ -226044,8 +226042,8 @@
"nullable": true
},
"component": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"created": {
"type": "string",
@@ -226327,8 +226325,8 @@
"format": "int64"
},
"assigned_object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"created": {
"type": "string",
@@ -226777,8 +226775,8 @@
"format": "int64"
},
"assigned_object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"tags": {
"type": "array",
@@ -227155,8 +227153,8 @@
"nullable": true
},
"assigned_object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"description": {
"type": "string",
@@ -229542,8 +229540,8 @@
"format": "int64"
},
"object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"user": {
"$ref": "#/components/schemas/BriefUser"
@@ -229796,7 +229794,11 @@
"format": "int64"
},
"changed_object": {
"nullable": true,
"readOnly": true,
"nullable": true
},
"object_repr": {
"type": "string",
"readOnly": true
},
"message": {
@@ -229821,6 +229823,7 @@
"display_url",
"id",
"message",
"object_repr",
"postchange_data",
"prechange_data",
"request_id",
@@ -248892,8 +248895,8 @@
"nullable": true
},
"scope": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"tenant": {
"allOf": [
@@ -252745,8 +252748,8 @@
"format": "int64"
},
"parent": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"name": {
"type": "string",
@@ -253669,8 +253672,8 @@
"format": "int64"
},
"object": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"user": {
"$ref": "#/components/schemas/BriefUser"
@@ -255193,8 +255196,8 @@
"nullable": true
},
"termination": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"outside_ip": {
"allOf": [
@@ -255671,8 +255674,8 @@
"nullable": true
},
"scope": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"vid_ranges": {
"type": "array",
@@ -258528,8 +258531,8 @@
"nullable": true
},
"scope": {
"nullable": true,
"readOnly": true
"readOnly": true,
"nullable": true
},
"tenant": {
"allOf": [