Skip to content

Commit

Permalink
update generated clients
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvegamyhre committed Mar 9, 2024
1 parent 21bc40b commit 11fffb7
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 28 deletions.
9 changes: 5 additions & 4 deletions api/jobset/v1alpha2/jobset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ type ReplicatedJobStatus struct {
// Name of the ReplicatedJob.
Name string `json:"name"`

// Ready is the number of child Jobs where number of ready pods + completed pods >= total expected pod count
// for the Job (i.e., minimum of job.spec.parallelism and job.spec.completions).
// Ready is the number of child Jobs where the number of ready pods and completed pods
// is greater than or equal to the total expected pod count for the Job (i.e., the minimum
// of job.spec.parallelism and job.spec.completions).
Ready int32 `json:"ready"`

// Succeeded is the number of successfully completed child Jobs.
Expand All @@ -128,8 +129,8 @@ type ReplicatedJobStatus struct {
// Failed is the number of failed child Jobs.
Failed int32 `json:"failed"`

// Active is the number of child Jobs with at least 1 pod in a running or pending state, which are not
// marked for deletion.
// Active is the number of child Jobs with at least 1 pod in a running or pending state
// which are not marked for deletion.
Active int32 `json:"active"`

// Suspended is the number of child Jobs which are in a suspended state.
Expand Down
42 changes: 24 additions & 18 deletions api/jobset/v1alpha2/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions hack/python-sdk/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,30 +193,36 @@
],
"properties": {
"active": {
"description": "Active is the number of child Jobs with at least 1 pod in a running or pending state which are not marked for deletion.",
"type": "integer",
"format": "int32",
"default": 0
},
"failed": {
"description": "Failed is the number of failed child Jobs.",
"type": "integer",
"format": "int32",
"default": 0
},
"name": {
"description": "Name of the ReplicatedJob.",
"type": "string",
"default": ""
},
"ready": {
"description": "Ready is the number of child Jobs where the number of ready pods and completed pods is greater than or equal to the total expected pod count for the Job (i.e., the minimum of job.spec.parallelism and job.spec.completions).",
"type": "integer",
"format": "int32",
"default": 0
},
"succeeded": {
"description": "Succeeded is the number of successfully completed child Jobs.",
"type": "integer",
"format": "int32",
"default": 0
},
"suspended": {
"description": "Suspended is the number of child Jobs which are in a suspended state.",
"type": "integer",
"format": "int32",
"default": 0
Expand Down
12 changes: 6 additions & 6 deletions sdk/python/docs/JobsetV1alpha2ReplicatedJobStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ReplicatedJobStatus defines the observed ReplicatedJobs Readiness.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **int** | | [default to 0]
**failed** | **int** | | [default to 0]
**name** | **str** | | [default to '']
**ready** | **int** | | [default to 0]
**succeeded** | **int** | | [default to 0]
**suspended** | **int** | | [default to 0]
**active** | **int** | Active is the number of child Jobs with at least 1 pod in a running or pending state which are not marked for deletion. | [default to 0]
**failed** | **int** | Failed is the number of failed child Jobs. | [default to 0]
**name** | **str** | Name of the ReplicatedJob. | [default to '']
**ready** | **int** | Ready is the number of child Jobs where the number of ready pods and completed pods is greater than or equal to the total expected pod count for the Job (i.e., the minimum of job.spec.parallelism and job.spec.completions). | [default to 0]
**succeeded** | **int** | Succeeded is the number of successfully completed child Jobs. | [default to 0]
**suspended** | **int** | Suspended is the number of child Jobs which are in a suspended state. | [default to 0]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
12 changes: 12 additions & 0 deletions sdk/python/jobset/models/jobset_v1alpha2_replicated_job_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def __init__(self, active=0, failed=0, name='', ready=0, succeeded=0, suspended=
def active(self):
"""Gets the active of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Active is the number of child Jobs with at least 1 pod in a running or pending state which are not marked for deletion. # noqa: E501
:return: The active of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: int
Expand All @@ -85,6 +86,7 @@ def active(self):
def active(self, active):
"""Sets the active of this JobsetV1alpha2ReplicatedJobStatus.
Active is the number of child Jobs with at least 1 pod in a running or pending state which are not marked for deletion. # noqa: E501
:param active: The active of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: int
Expand All @@ -98,6 +100,7 @@ def active(self, active):
def failed(self):
"""Gets the failed of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Failed is the number of failed child Jobs. # noqa: E501
:return: The failed of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: int
Expand All @@ -108,6 +111,7 @@ def failed(self):
def failed(self, failed):
"""Sets the failed of this JobsetV1alpha2ReplicatedJobStatus.
Failed is the number of failed child Jobs. # noqa: E501
:param failed: The failed of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: int
Expand All @@ -121,6 +125,7 @@ def failed(self, failed):
def name(self):
"""Gets the name of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Name of the ReplicatedJob. # noqa: E501
:return: The name of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: str
Expand All @@ -131,6 +136,7 @@ def name(self):
def name(self, name):
"""Sets the name of this JobsetV1alpha2ReplicatedJobStatus.
Name of the ReplicatedJob. # noqa: E501
:param name: The name of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: str
Expand All @@ -144,6 +150,7 @@ def name(self, name):
def ready(self):
"""Gets the ready of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Ready is the number of child Jobs where the number of ready pods and completed pods is greater than or equal to the total expected pod count for the Job (i.e., the minimum of job.spec.parallelism and job.spec.completions). # noqa: E501
:return: The ready of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: int
Expand All @@ -154,6 +161,7 @@ def ready(self):
def ready(self, ready):
"""Sets the ready of this JobsetV1alpha2ReplicatedJobStatus.
Ready is the number of child Jobs where the number of ready pods and completed pods is greater than or equal to the total expected pod count for the Job (i.e., the minimum of job.spec.parallelism and job.spec.completions). # noqa: E501
:param ready: The ready of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: int
Expand All @@ -167,6 +175,7 @@ def ready(self, ready):
def succeeded(self):
"""Gets the succeeded of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Succeeded is the number of successfully completed child Jobs. # noqa: E501
:return: The succeeded of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: int
Expand All @@ -177,6 +186,7 @@ def succeeded(self):
def succeeded(self, succeeded):
"""Sets the succeeded of this JobsetV1alpha2ReplicatedJobStatus.
Succeeded is the number of successfully completed child Jobs. # noqa: E501
:param succeeded: The succeeded of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: int
Expand All @@ -190,6 +200,7 @@ def succeeded(self, succeeded):
def suspended(self):
"""Gets the suspended of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
Suspended is the number of child Jobs which are in a suspended state. # noqa: E501
:return: The suspended of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:rtype: int
Expand All @@ -200,6 +211,7 @@ def suspended(self):
def suspended(self, suspended):
"""Sets the suspended of this JobsetV1alpha2ReplicatedJobStatus.
Suspended is the number of child Jobs which are in a suspended state. # noqa: E501
:param suspended: The suspended of this JobsetV1alpha2ReplicatedJobStatus. # noqa: E501
:type: int
Expand Down

0 comments on commit 11fffb7

Please sign in to comment.