Skip to content

Commit 980eb8f

Browse files
authored
chore(cockpit): remove reset cockpit grafana (#371)
1 parent f59d6a7 commit 980eb8f

File tree

6 files changed

+0
-106
lines changed

6 files changed

+0
-106
lines changed

scaleway-async/scaleway_async/cockpit/v1beta1/api.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
TokenScopes,
3838
ActivateCockpitRequest,
3939
DeactivateCockpitRequest,
40-
ResetCockpitGrafanaRequest,
4140
CreateDatasourceRequest,
4241
CreateTokenRequest,
4342
CreateContactPointRequest,
@@ -64,7 +63,6 @@
6463
marshal_DeleteGrafanaUserRequest,
6564
marshal_DisableManagedAlertsRequest,
6665
marshal_EnableManagedAlertsRequest,
67-
marshal_ResetCockpitGrafanaRequest,
6866
marshal_ResetGrafanaUserPasswordRequest,
6967
marshal_SelectPlanRequest,
7068
marshal_TriggerTestAlertRequest,
@@ -248,36 +246,6 @@ async def deactivate_cockpit(
248246
self._throw_on_error(res)
249247
return unmarshal_Cockpit(res.json())
250248

251-
async def reset_cockpit_grafana(
252-
self,
253-
*,
254-
project_id: Optional[str] = None,
255-
) -> Cockpit:
256-
"""
257-
Reset your Cockpit's Grafana associated with the specified Project ID.
258-
:param project_id: ID of the Project the Cockpit belongs to.
259-
:return: :class:`Cockpit <Cockpit>`
260-
261-
Usage:
262-
::
263-
264-
result = await api.reset_cockpit_grafana()
265-
"""
266-
267-
res = self._request(
268-
"POST",
269-
f"/cockpit/v1beta1/reset-grafana",
270-
body=marshal_ResetCockpitGrafanaRequest(
271-
ResetCockpitGrafanaRequest(
272-
project_id=project_id,
273-
),
274-
self.client,
275-
),
276-
)
277-
278-
self._throw_on_error(res)
279-
return unmarshal_Cockpit(res.json())
280-
281249
async def create_datasource(
282250
self,
283251
*,

scaleway-async/scaleway_async/cockpit/v1beta1/marshalling.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
TokenScopes,
3636
ActivateCockpitRequest,
3737
DeactivateCockpitRequest,
38-
ResetCockpitGrafanaRequest,
3938
CreateDatasourceRequest,
4039
CreateTokenRequest,
4140
CreateContactPointRequest,
@@ -685,18 +684,6 @@ def marshal_EnableManagedAlertsRequest(
685684
return output
686685

687686

688-
def marshal_ResetCockpitGrafanaRequest(
689-
request: ResetCockpitGrafanaRequest,
690-
defaults: ProfileDefaults,
691-
) -> Dict[str, Any]:
692-
output: Dict[str, Any] = {}
693-
694-
if request.project_id is not None:
695-
output["project_id"] = request.project_id or defaults.default_project_id
696-
697-
return output
698-
699-
700687
def marshal_ResetGrafanaUserPasswordRequest(
701688
request: ResetGrafanaUserPasswordRequest,
702689
defaults: ProfileDefaults,

scaleway-async/scaleway_async/cockpit/v1beta1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,6 @@ class DeactivateCockpitRequest:
614614
"""
615615

616616

617-
@dataclass
618-
class ResetCockpitGrafanaRequest:
619-
project_id: Optional[str]
620-
"""
621-
ID of the Project the Cockpit belongs to.
622-
"""
623-
624-
625617
@dataclass
626618
class CreateDatasourceRequest:
627619
project_id: Optional[str]

scaleway/scaleway/cockpit/v1beta1/api.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
TokenScopes,
3838
ActivateCockpitRequest,
3939
DeactivateCockpitRequest,
40-
ResetCockpitGrafanaRequest,
4140
CreateDatasourceRequest,
4241
CreateTokenRequest,
4342
CreateContactPointRequest,
@@ -64,7 +63,6 @@
6463
marshal_DeleteGrafanaUserRequest,
6564
marshal_DisableManagedAlertsRequest,
6665
marshal_EnableManagedAlertsRequest,
67-
marshal_ResetCockpitGrafanaRequest,
6866
marshal_ResetGrafanaUserPasswordRequest,
6967
marshal_SelectPlanRequest,
7068
marshal_TriggerTestAlertRequest,
@@ -248,36 +246,6 @@ def deactivate_cockpit(
248246
self._throw_on_error(res)
249247
return unmarshal_Cockpit(res.json())
250248

251-
def reset_cockpit_grafana(
252-
self,
253-
*,
254-
project_id: Optional[str] = None,
255-
) -> Cockpit:
256-
"""
257-
Reset your Cockpit's Grafana associated with the specified Project ID.
258-
:param project_id: ID of the Project the Cockpit belongs to.
259-
:return: :class:`Cockpit <Cockpit>`
260-
261-
Usage:
262-
::
263-
264-
result = api.reset_cockpit_grafana()
265-
"""
266-
267-
res = self._request(
268-
"POST",
269-
f"/cockpit/v1beta1/reset-grafana",
270-
body=marshal_ResetCockpitGrafanaRequest(
271-
ResetCockpitGrafanaRequest(
272-
project_id=project_id,
273-
),
274-
self.client,
275-
),
276-
)
277-
278-
self._throw_on_error(res)
279-
return unmarshal_Cockpit(res.json())
280-
281249
def create_datasource(
282250
self,
283251
*,

scaleway/scaleway/cockpit/v1beta1/marshalling.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
TokenScopes,
3636
ActivateCockpitRequest,
3737
DeactivateCockpitRequest,
38-
ResetCockpitGrafanaRequest,
3938
CreateDatasourceRequest,
4039
CreateTokenRequest,
4140
CreateContactPointRequest,
@@ -685,18 +684,6 @@ def marshal_EnableManagedAlertsRequest(
685684
return output
686685

687686

688-
def marshal_ResetCockpitGrafanaRequest(
689-
request: ResetCockpitGrafanaRequest,
690-
defaults: ProfileDefaults,
691-
) -> Dict[str, Any]:
692-
output: Dict[str, Any] = {}
693-
694-
if request.project_id is not None:
695-
output["project_id"] = request.project_id or defaults.default_project_id
696-
697-
return output
698-
699-
700687
def marshal_ResetGrafanaUserPasswordRequest(
701688
request: ResetGrafanaUserPasswordRequest,
702689
defaults: ProfileDefaults,

scaleway/scaleway/cockpit/v1beta1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,6 @@ class DeactivateCockpitRequest:
614614
"""
615615

616616

617-
@dataclass
618-
class ResetCockpitGrafanaRequest:
619-
project_id: Optional[str]
620-
"""
621-
ID of the Project the Cockpit belongs to.
622-
"""
623-
624-
625617
@dataclass
626618
class CreateDatasourceRequest:
627619
project_id: Optional[str]

0 commit comments

Comments
 (0)