From ccf3581ec005d20f48e9ae36a179de4be48a3ba8 Mon Sep 17 00:00:00 2001 From: polyaxon-ci Date: Thu, 6 Jan 2022 19:51:48 +0100 Subject: [PATCH] Update sdks --- .../v1/service_model/v1_project_version.go | 57 -- java/http_client/v1/api/openapi.yaml | 488 ------------------ java/http_client/v1/docs/V1ProjectVersion.md | 1 - .../client/model/V1ProjectVersion.java | 42 +- .../client/model/V1ProjectVersionTest.java | 9 - js/http_client/v1/docs/V1ProjectVersion.md | 1 - .../v1/src/model/V1ProjectVersion.js | 9 - .../v1/test/model/V1ProjectVersion.spec.js | 6 - jsonschema/v1/polyaxonfile.schema.json | 7 - protos/v1/api/project.proto | 4 - .../http_client/v1/docs/V1ProjectVersion.md | 1 - .../polyaxon_sdk/models/v1_project_version.py | 32 +- swagger/v1/polyaxon_sdk.swagger.json | 7 - .../v1/src/models/V1ProjectVersion.ts | 12 - 14 files changed, 5 insertions(+), 671 deletions(-) diff --git a/go/http_client/v1/service_model/v1_project_version.go b/go/http_client/v1/service_model/v1_project_version.go index d7da8ba619..21062a0a49 100644 --- a/go/http_client/v1/service_model/v1_project_version.go +++ b/go/http_client/v1/service_model/v1_project_version.go @@ -71,9 +71,6 @@ type V1ProjectVersion struct { // Run lineage Run string `json:"run,omitempty"` - // Latest runs - Runs []*V1Run `json:"runs"` - // Optional latest stage of this entity Stage *V1Stages `json:"stage,omitempty"` @@ -103,10 +100,6 @@ func (m *V1ProjectVersion) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateRuns(formats); err != nil { - res = append(res, err) - } - if err := m.validateStage(formats); err != nil { res = append(res, err) } @@ -156,32 +149,6 @@ func (m *V1ProjectVersion) validateKind(formats strfmt.Registry) error { return nil } -func (m *V1ProjectVersion) validateRuns(formats strfmt.Registry) error { - if swag.IsZero(m.Runs) { // not required - return nil - } - - for i := 0; i < len(m.Runs); i++ { - if swag.IsZero(m.Runs[i]) { // not required - continue - } - - if m.Runs[i] != nil { - if err := m.Runs[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("runs" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("runs" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - func (m *V1ProjectVersion) validateStage(formats strfmt.Registry) error { if swag.IsZero(m.Stage) { // not required return nil @@ -247,10 +214,6 @@ func (m *V1ProjectVersion) ContextValidate(ctx context.Context, formats strfmt.R res = append(res, err) } - if err := m.contextValidateRuns(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateStage(ctx, formats); err != nil { res = append(res, err) } @@ -281,26 +244,6 @@ func (m *V1ProjectVersion) contextValidateKind(ctx context.Context, formats strf return nil } -func (m *V1ProjectVersion) contextValidateRuns(ctx context.Context, formats strfmt.Registry) error { - - for i := 0; i < len(m.Runs); i++ { - - if m.Runs[i] != nil { - if err := m.Runs[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("runs" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("runs" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - func (m *V1ProjectVersion) contextValidateStage(ctx context.Context, formats strfmt.Registry) error { if m.Stage != nil { diff --git a/java/http_client/v1/api/openapi.yaml b/java/http_client/v1/api/openapi.yaml index f07cbccd32..a35961e53a 100644 --- a/java/http_client/v1/api/openapi.yaml +++ b/java/http_client/v1/api/openapi.yaml @@ -21417,167 +21417,6 @@ components: meta_info: '{}' name: name connection: connection - runs: - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true artifacts: - artifacts - artifacts @@ -21607,167 +21446,6 @@ components: meta_info: '{}' name: name connection: connection - runs: - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true artifacts: - artifacts - artifacts @@ -25583,167 +25261,6 @@ components: meta_info: '{}' name: name connection: connection - runs: - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true - - outputs: '{}' - role: role - finished_at: 2000-01-23T04:56:07.000+00:00 - inputs: '{}' - description: description - project: project - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - content: content - duration: 1 - updated_at: 2000-01-23T04:56:07.000+00:00 - meta_info: '{}' - merge: true - owner: owner - settings: - models: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - agent: - name: name - uuid: uuid - component: '{}' - tensorboard: '{}' - build: '{}' - namespace: namespace - artifacts_store: - name: name - uuid: uuid - queue: - name: name - uuid: uuid - artifacts: - - owner: owner - name: name - project: project - - owner: owner - name: name - project: project - raw_content: raw_content - original: - name: name - uuid: uuid - wait_time: 6 - schedule_at: 2000-01-23T04:56:07.000+00:00 - bookmarked: true - resources: - memory: 2.302136 - cost: 3.6160767 - custom: 9.301444 - cpu: 5.637377 - gpu: 7.0614014 - live_state: 5 - readme: readme - graph: '{}' - tags: - - tags - - tags - pipeline: - name: name - uuid: uuid - name: name - started_at: 2000-01-23T04:56:07.000+00:00 - is_approved: true - user: user - status_conditions: - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - - reason: reason - last_update_time: 2000-01-23T04:56:07.000+00:00 - last_transition_time: 2000-01-23T04:56:07.000+00:00 - message: message - status: status - is_managed: true artifacts: - artifacts - artifacts @@ -25807,11 +25324,6 @@ components: role: title: Current user's role in this (org/teams)/hub/version type: string - runs: - items: - $ref: '#/components/schemas/v1Run' - title: Latest runs - type: array title: component hub specification type: object v1ProjectVersionKind: diff --git a/java/http_client/v1/docs/V1ProjectVersion.md b/java/http_client/v1/docs/V1ProjectVersion.md index f76817aa9d..c0954ce44d 100644 --- a/java/http_client/v1/docs/V1ProjectVersion.md +++ b/java/http_client/v1/docs/V1ProjectVersion.md @@ -24,7 +24,6 @@ Name | Type | Description | Notes **stageConditions** | [**List<V1StageCondition>**](V1StageCondition.md) | | [optional] **content** | **String** | | [optional] **role** | **String** | | [optional] -**runs** | [**List<V1Run>**](V1Run.md) | | [optional] diff --git a/java/http_client/v1/src/main/java/org/openapitools/client/model/V1ProjectVersion.java b/java/http_client/v1/src/main/java/org/openapitools/client/model/V1ProjectVersion.java index b9b75aff0d..465996541b 100644 --- a/java/http_client/v1/src/main/java/org/openapitools/client/model/V1ProjectVersion.java +++ b/java/http_client/v1/src/main/java/org/openapitools/client/model/V1ProjectVersion.java @@ -40,7 +40,6 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.V1ProjectVersionKind; -import org.openapitools.client.model.V1Run; import org.openapitools.client.model.V1StageCondition; import org.openapitools.client.model.V1Stages; import org.threeten.bp.OffsetDateTime; @@ -118,10 +117,6 @@ public class V1ProjectVersion { @SerializedName(SERIALIZED_NAME_ROLE) private String role; - public static final String SERIALIZED_NAME_RUNS = "runs"; - @SerializedName(SERIALIZED_NAME_RUNS) - private List runs = null; - public V1ProjectVersion uuid(String uuid) { @@ -538,37 +533,6 @@ public void setRole(String role) { } - public V1ProjectVersion runs(List runs) { - - this.runs = runs; - return this; - } - - public V1ProjectVersion addRunsItem(V1Run runsItem) { - if (this.runs == null) { - this.runs = new ArrayList(); - } - this.runs.add(runsItem); - return this; - } - - /** - * Get runs - * @return runs - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public List getRuns() { - return runs; - } - - - public void setRuns(List runs) { - this.runs = runs; - } - - @Override public boolean equals(Object o) { if (this == o) { @@ -594,13 +558,12 @@ public boolean equals(Object o) { Objects.equals(this.kind, v1ProjectVersion.kind) && Objects.equals(this.stageConditions, v1ProjectVersion.stageConditions) && Objects.equals(this.content, v1ProjectVersion.content) && - Objects.equals(this.role, v1ProjectVersion.role) && - Objects.equals(this.runs, v1ProjectVersion.runs); + Objects.equals(this.role, v1ProjectVersion.role); } @Override public int hashCode() { - return Objects.hash(uuid, name, description, tags, owner, project, connection, run, artifacts, metaInfo, createdAt, updatedAt, stage, kind, stageConditions, content, role, runs); + return Objects.hash(uuid, name, description, tags, owner, project, connection, run, artifacts, metaInfo, createdAt, updatedAt, stage, kind, stageConditions, content, role); } @Override @@ -624,7 +587,6 @@ public String toString() { sb.append(" stageConditions: ").append(toIndentedString(stageConditions)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" runs: ").append(toIndentedString(runs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/java/http_client/v1/src/test/java/org/openapitools/client/model/V1ProjectVersionTest.java b/java/http_client/v1/src/test/java/org/openapitools/client/model/V1ProjectVersionTest.java index 73ce09a141..84d735bd98 100644 --- a/java/http_client/v1/src/test/java/org/openapitools/client/model/V1ProjectVersionTest.java +++ b/java/http_client/v1/src/test/java/org/openapitools/client/model/V1ProjectVersionTest.java @@ -38,7 +38,6 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.V1ProjectVersionKind; -import org.openapitools.client.model.V1Run; import org.openapitools.client.model.V1StageCondition; import org.openapitools.client.model.V1Stages; import org.threeten.bp.OffsetDateTime; @@ -197,12 +196,4 @@ public void roleTest() { // TODO: test role } - /** - * Test the property 'runs' - */ - @Test - public void runsTest() { - // TODO: test runs - } - } diff --git a/js/http_client/v1/docs/V1ProjectVersion.md b/js/http_client/v1/docs/V1ProjectVersion.md index 10232973fa..1dc8e61961 100644 --- a/js/http_client/v1/docs/V1ProjectVersion.md +++ b/js/http_client/v1/docs/V1ProjectVersion.md @@ -21,6 +21,5 @@ Name | Type | Description | Notes **stage_conditions** | [**[V1StageCondition]**](V1StageCondition.md) | | [optional] **content** | **String** | | [optional] **role** | **String** | | [optional] -**runs** | [**[V1Run]**](V1Run.md) | | [optional] diff --git a/js/http_client/v1/src/model/V1ProjectVersion.js b/js/http_client/v1/src/model/V1ProjectVersion.js index 156bc165a6..a23f446a1b 100644 --- a/js/http_client/v1/src/model/V1ProjectVersion.js +++ b/js/http_client/v1/src/model/V1ProjectVersion.js @@ -27,7 +27,6 @@ import ApiClient from '../ApiClient'; import V1ProjectVersionKind from './V1ProjectVersionKind'; -import V1Run from './V1Run'; import V1StageCondition from './V1StageCondition'; import V1Stages from './V1Stages'; @@ -116,9 +115,6 @@ class V1ProjectVersion { if (data.hasOwnProperty('role')) { obj['role'] = ApiClient.convertToType(data['role'], 'String'); } - if (data.hasOwnProperty('runs')) { - obj['runs'] = ApiClient.convertToType(data['runs'], [V1Run]); - } } return obj; } @@ -211,11 +207,6 @@ V1ProjectVersion.prototype['content'] = undefined; */ V1ProjectVersion.prototype['role'] = undefined; -/** - * @member {Array.} runs - */ -V1ProjectVersion.prototype['runs'] = undefined; - diff --git a/js/http_client/v1/test/model/V1ProjectVersion.spec.js b/js/http_client/v1/test/model/V1ProjectVersion.spec.js index cfffce9059..68f004d7a8 100644 --- a/js/http_client/v1/test/model/V1ProjectVersion.spec.js +++ b/js/http_client/v1/test/model/V1ProjectVersion.spec.js @@ -170,12 +170,6 @@ //expect(instance).to.be(); }); - it('should have the property runs (base name: "runs")', function() { - // uncomment below and update the code to test the property runs - //var instance = new PolyaxonSdk.V1ProjectVersion(); - //expect(instance).to.be(); - }); - }); })); diff --git a/jsonschema/v1/polyaxonfile.schema.json b/jsonschema/v1/polyaxonfile.schema.json index 1e66052f57..f2b48e23f8 100644 --- a/jsonschema/v1/polyaxonfile.schema.json +++ b/jsonschema/v1/polyaxonfile.schema.json @@ -9127,13 +9127,6 @@ "title": "Run lineage", "type": "string" }, - "runs": { - "items": { - "$ref": "#/definitions/v1Run" - }, - "title": "Latest runs", - "type": "array" - }, "stage": { "$ref": "#/definitions/v1Stages", "title": "Optional latest stage of this entity" diff --git a/protos/v1/api/project.proto b/protos/v1/api/project.proto index 15e809ab8e..28d3ac370f 100644 --- a/protos/v1/api/project.proto +++ b/protos/v1/api/project.proto @@ -23,7 +23,6 @@ import "google/protobuf/timestamp.proto"; import "v1/polyflow/stage.proto"; import "v1/api/stage.proto"; -import "v1/api/run.proto"; option go_package = "v1/api"; @@ -213,9 +212,6 @@ message ProjectVersion { // Current user's role in this (org/teams)/hub/version string role = 17; - - // Latest runs - repeated Run runs = 18; } diff --git a/python/http_client/v1/docs/V1ProjectVersion.md b/python/http_client/v1/docs/V1ProjectVersion.md index c95176d392..bcb1fbbac5 100644 --- a/python/http_client/v1/docs/V1ProjectVersion.md +++ b/python/http_client/v1/docs/V1ProjectVersion.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes **stage_conditions** | [**list[V1StageCondition]**](V1StageCondition.md) | | [optional] **content** | **str** | | [optional] **role** | **str** | | [optional] -**runs** | [**list[V1Run]**](V1Run.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/http_client/v1/polyaxon_sdk/models/v1_project_version.py b/python/http_client/v1/polyaxon_sdk/models/v1_project_version.py index 8ac139481c..1edddf6ed7 100644 --- a/python/http_client/v1/polyaxon_sdk/models/v1_project_version.py +++ b/python/http_client/v1/polyaxon_sdk/models/v1_project_version.py @@ -69,8 +69,7 @@ class V1ProjectVersion(object): 'kind': 'V1ProjectVersionKind', 'stage_conditions': 'list[V1StageCondition]', 'content': 'str', - 'role': 'str', - 'runs': 'list[V1Run]' + 'role': 'str' } attribute_map = { @@ -90,11 +89,10 @@ class V1ProjectVersion(object): 'kind': 'kind', 'stage_conditions': 'stage_conditions', 'content': 'content', - 'role': 'role', - 'runs': 'runs' + 'role': 'role' } - def __init__(self, uuid=None, name=None, description=None, tags=None, owner=None, project=None, connection=None, run=None, artifacts=None, meta_info=None, created_at=None, updated_at=None, stage=None, kind=None, stage_conditions=None, content=None, role=None, runs=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, uuid=None, name=None, description=None, tags=None, owner=None, project=None, connection=None, run=None, artifacts=None, meta_info=None, created_at=None, updated_at=None, stage=None, kind=None, stage_conditions=None, content=None, role=None, local_vars_configuration=None): # noqa: E501 """V1ProjectVersion - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() @@ -117,7 +115,6 @@ def __init__(self, uuid=None, name=None, description=None, tags=None, owner=None self._stage_conditions = None self._content = None self._role = None - self._runs = None self.discriminator = None if uuid is not None: @@ -154,8 +151,6 @@ def __init__(self, uuid=None, name=None, description=None, tags=None, owner=None self.content = content if role is not None: self.role = role - if runs is not None: - self.runs = runs @property def uuid(self): @@ -514,27 +509,6 @@ def role(self, role): self._role = role - @property - def runs(self): - """Gets the runs of this V1ProjectVersion. # noqa: E501 - - - :return: The runs of this V1ProjectVersion. # noqa: E501 - :rtype: list[V1Run] - """ - return self._runs - - @runs.setter - def runs(self, runs): - """Sets the runs of this V1ProjectVersion. - - - :param runs: The runs of this V1ProjectVersion. # noqa: E501 - :type runs: list[V1Run] - """ - - self._runs = runs - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/swagger/v1/polyaxon_sdk.swagger.json b/swagger/v1/polyaxon_sdk.swagger.json index 06b15f4f58..d1a616e43e 100644 --- a/swagger/v1/polyaxon_sdk.swagger.json +++ b/swagger/v1/polyaxon_sdk.swagger.json @@ -21248,13 +21248,6 @@ "role": { "type": "string", "title": "Current user's role in this (org/teams)/hub/version" - }, - "runs": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Run" - }, - "title": "Latest runs" } }, "title": "component hub specification" diff --git a/ts/http_client/v1/src/models/V1ProjectVersion.ts b/ts/http_client/v1/src/models/V1ProjectVersion.ts index a7cb45f86a..00a7834202 100644 --- a/ts/http_client/v1/src/models/V1ProjectVersion.ts +++ b/ts/http_client/v1/src/models/V1ProjectVersion.ts @@ -32,10 +32,6 @@ import { V1ProjectVersionKindFromJSON, V1ProjectVersionKindFromJSONTyped, V1ProjectVersionKindToJSON, - V1Run, - V1RunFromJSON, - V1RunFromJSONTyped, - V1RunToJSON, V1StageCondition, V1StageConditionFromJSON, V1StageConditionFromJSONTyped, @@ -154,12 +150,6 @@ export interface V1ProjectVersion { * @memberof V1ProjectVersion */ role?: string; - /** - * - * @type {Array} - * @memberof V1ProjectVersion - */ - runs?: Array; } export function V1ProjectVersionFromJSON(json: any): V1ProjectVersion { @@ -189,7 +179,6 @@ export function V1ProjectVersionFromJSONTyped(json: any, ignoreDiscriminator: bo 'stage_conditions': !exists(json, 'stage_conditions') ? undefined : ((json['stage_conditions'] as Array).map(V1StageConditionFromJSON)), 'content': !exists(json, 'content') ? undefined : json['content'], 'role': !exists(json, 'role') ? undefined : json['role'], - 'runs': !exists(json, 'runs') ? undefined : ((json['runs'] as Array).map(V1RunFromJSON)), }; } @@ -219,7 +208,6 @@ export function V1ProjectVersionToJSON(value?: V1ProjectVersion | null): any { 'stage_conditions': value.stage_conditions === undefined ? undefined : ((value.stage_conditions as Array).map(V1StageConditionToJSON)), 'content': value.content, 'role': value.role, - 'runs': value.runs === undefined ? undefined : ((value.runs as Array).map(V1RunToJSON)), }; }