Skip to content

Commit

Permalink
feat: Updated pydantic to v2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Sep 10, 2024
1 parent 1f310b2 commit a1c3eb2
Show file tree
Hide file tree
Showing 13 changed files with 380 additions and 42 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ghapi
jinja2
kombu==5.4.0
openstacksdk>=3,<4
pydantic < 2
pydantic==2.8.2
132 changes: 132 additions & 0 deletions src-docs/metrics.events.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,28 @@ Initialize the event.
- <b>`kwargs`</b>: The keyword arguments to pass to the base class. These are used to set the specific fields. E.g. timestamp=12345 will set the timestamp field to 12345.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down Expand Up @@ -100,6 +122,28 @@ Initialize the event.
- <b>`kwargs`</b>: The keyword arguments to pass to the base class. These are used to set the specific fields. E.g. timestamp=12345 will set the timestamp field to 12345.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down Expand Up @@ -139,6 +183,28 @@ Initialize the event.
- <b>`kwargs`</b>: The keyword arguments to pass to the base class. These are used to set the specific fields. E.g. timestamp=12345 will set the timestamp field to 12345.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand All @@ -158,6 +224,28 @@ This could e.g. be an exit code or a http status code.
- <b>`code`</b>: The status code.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down Expand Up @@ -199,6 +287,28 @@ Initialize the event.
- <b>`kwargs`</b>: The keyword arguments to pass to the base class. These are used to set the specific fields. E.g. timestamp=12345 will set the timestamp field to 12345.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down Expand Up @@ -236,6 +346,28 @@ Initialize the event.
- <b>`kwargs`</b>: The keyword arguments to pass to the base class. These are used to set the specific fields. E.g. timestamp=12345 will set the timestamp field to 12345.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




88 changes: 88 additions & 0 deletions src-docs/metrics.runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,28 @@ Metrics for the pre-job phase of a runner.
- <b>`event`</b>: The github event.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down Expand Up @@ -132,6 +154,28 @@ Information about a status code.
- <b>`code`</b>: The status code.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand All @@ -151,6 +195,28 @@ Metrics for the post-job phase of a runner.
- <b>`status_info`</b>: More information about the status.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand All @@ -171,6 +237,28 @@ Metrics for a runner.
- <b>`runner_name`</b>: The name of the runner.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




22 changes: 22 additions & 0 deletions src-docs/reactive.consumer.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@ A class to translate the payload.
- <b>`run_url`</b>: The URL of the job.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down
22 changes: 22 additions & 0 deletions src-docs/types_.github.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,28 @@ Stats for a job on GitHub.
- <b>`conclusion`</b>: The end result of a job.


---

#### <kbd>property</kbd> model_extra

Get extra fields set during validation.



**Returns:**
A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow"`.

---

#### <kbd>property</kbd> model_fields_set

Returns the set of fields that have been explicitly set on this model instance.



**Returns:**
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.




Expand Down
Loading

0 comments on commit a1c3eb2

Please sign in to comment.