Skip to content

Commit fdf3be8

Browse files
author
Thibaud Baas
committed
FM: Review comments
1 parent 8706647 commit fdf3be8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dataikuapi/fmclient.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class FMClient(object):
1515
"""Entry point for the FM API client"""
1616

17-
def __init__(self, host, api_key_id, api_key_secret, tenant_id, extra_headers = None):
17+
def __init__(self, host, api_key_id, api_key_secret, tenant_id="main", extra_headers=None):
1818
"""
1919
Instantiate a new FM API client on the given host with the given API key.
2020
@@ -43,7 +43,7 @@ def __init__(self, host, api_key_id, api_key_secret, tenant_id, extra_headers =
4343

4444
def get_cloud_credentials(self):
4545
"""
46-
Get Cloud Credential
46+
Get Cloud Credentials
4747
4848
:return: Cloud credentials
4949
:rtype: :class:`dataikuapi.fm.tenant.FMCloudCredentials`
@@ -56,7 +56,7 @@ def get_cloud_credentials(self):
5656
# VirtualNetwork
5757
########################################################
5858

59-
def get_virtual_networks(self):
59+
def list_virtual_networks(self):
6060
"""
6161
List all Virtual Networks
6262
@@ -129,7 +129,7 @@ def create_virtual_network(self,
129129
# Instance settings template
130130
########################################################
131131

132-
def get_instance_templates(self):
132+
def list_instance_templates(self):
133133
"""
134134
List all Instance Settings Templates
135135
@@ -213,7 +213,7 @@ def create_instance_template(self, label,
213213
# Instance
214214
########################################################
215215

216-
def get_instances(self):
216+
def list_instances(self):
217217
"""
218218
List all DSS Instances
219219

0 commit comments

Comments
 (0)