Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create(self, instance_id: str, *, provider_id: str, config: Dict[str, Any],
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -118,6 +118,9 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -128,6 +131,12 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['dashboard', 'instances', instance_id, 'provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create(self, instance_id: str, *, provider_id: str, config: Dict[str, Any],
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -118,6 +118,9 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -128,6 +131,12 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['instances', instance_id, 'provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def create(self, *, provider_id: str, config: Dict[str, Any], name: Optional[str
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -114,6 +114,9 @@ def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = Non
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -124,6 +127,12 @@ def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = Non
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class DashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapDashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> DashboardInstanceProviderDeploymentsAuthC
return DashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
Comment thread
herber marked this conversation as resolved.
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class ManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> ManagementInstanceProviderDeploymentsAuth
return ManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class ProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> ProviderDeploymentsAuthCredentialsUpdateB
return ProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create(self, instance_id: str, *, provider_id: str, config: Dict[str, Any],
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -118,6 +118,9 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -128,6 +131,12 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['dashboard', 'instances', instance_id, 'provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create(self, instance_id: str, *, provider_id: str, config: Dict[str, Any],
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -118,6 +118,9 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -128,6 +131,12 @@ def update(self, instance_id: str, provider_auth_credentials_id: str, *, name: O
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['instances', instance_id, 'provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def create(self, *, provider_id: str, config: Dict[str, Any], name: Optional[str
)
return self._post(request).transform(mapDashboardInstanceProviderDeploymentsAuthCredentialsCreateOutput.from_dict)

def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = None, description: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, scopes: Optional[List[str]] = None) -> DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput:
"""
Update provider auth credentials
Updates specific provider auth credentials.
Expand All @@ -114,6 +114,9 @@ def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = Non
:param name: Optional[str] (optional)
:param description: Optional[str] (optional)
:param metadata: Optional[Dict[str, Any]] (optional)
:param client_id: Optional[str] (optional)
:param client_secret: Optional[str] (optional)
:param scopes: Optional[List[str]] (optional)
:return: DashboardInstanceProviderDeploymentsAuthCredentialsUpdateOutput
"""
# Build body parameters from keyword arguments
Expand All @@ -124,6 +127,12 @@ def update(self, provider_auth_credentials_id: str, *, name: Optional[str] = Non
body_dict["description"] = description
if metadata is not None:
body_dict["metadata"] = metadata
if client_id is not None:
body_dict["client_id"] = client_id
if client_secret is not None:
body_dict["client_secret"] = client_secret
if scopes is not None:
body_dict["scopes"] = scopes

request = MetorialRequest(
path=['provider-auth-credentials', provider_auth_credentials_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class DashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapDashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> DashboardInstanceProviderDeploymentsAuthC
return DashboardInstanceProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class ManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> ManagementInstanceProviderDeploymentsAuth
return ManagementInstanceProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class ProviderDeploymentsAuthCredentialsUpdateBody:
name: Optional[str] = None
description: Optional[str] = None
metadata: Optional[Dict[str, Any]] = None
client_id: Optional[str] = None
client_secret: Optional[str] = None
scopes: Optional[List[str]] = None


class mapProviderDeploymentsAuthCredentialsUpdateBody:
Expand All @@ -59,7 +62,10 @@ def from_dict(data: Dict[str, Any]) -> ProviderDeploymentsAuthCredentialsUpdateB
return ProviderDeploymentsAuthCredentialsUpdateBody(
name=data.get('name'),
description=data.get('description'),
metadata=data.get('metadata')
metadata=data.get('metadata'),
client_id=data.get('client_id'),
client_secret=data.get('client_secret'),
scopes=data.get('scopes', [])
)

@staticmethod
Expand Down
Loading