Skip to content

Commit

Permalink
[DOM-20439] Remove name from Model Version Publish (#83)
Browse files Browse the repository at this point in the history
* Remove name from Model Version Publish
  • Loading branch information
mohithg committed Jan 6, 2021
1 parent 14dc23f commit f4bf6e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@ All notable changes to the `python-domino` library will be documented in this fi
### Added

### Changed
* Model version publish method (model_version_publish) doesn't take name anymore

## 1.0.3

Expand Down
3 changes: 1 addition & 2 deletions domino/domino.py
Expand Up @@ -584,13 +584,12 @@ def model_versions_get(self, model_id):
return self._get(url)

def model_version_publish(self, model_id, file, function, environment_id,
name, description, files_to_exclude=[]):
description, files_to_exclude=[]):
self.requires_at_least("2.5.0")

url = self._routes.model_version_publish(model_id)

request = {
"name": name,
"description": description,
"projectId": self._project_id,
"file": file,
Expand Down
1 change: 0 additions & 1 deletion examples/models_and_environments.py
Expand Up @@ -44,7 +44,6 @@ def describe_model_versions(model_id):
file="main.R",
function="api_endpoint",
environment_id=chosen_environment_id,
name="Model published from API! -- second version",
description="v2")

describe_model_versions(published_model_id)

0 comments on commit f4bf6e1

Please sign in to comment.