Skip to content

Commit cdf0bdd

Browse files
committed
feat: update generated APIs
1 parent c87d8dd commit cdf0bdd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/cockpit/v1/cockpit_sdk.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,8 @@ func (s *GlobalAPI) SyncGrafanaDataSources(req *GlobalAPISyncGrafanaDataSourcesR
15701570
return nil
15711571
}
15721572

1573-
// CreateGrafanaUser: Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
1573+
// Deprecated: CreateGrafanaUser: Create a Grafana user
1574+
// Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
15741575
// Each Grafana user is associated with a role: viewer or editor. A viewer can only view dashboards, whereas an editor can create and edit dashboards. Note that the `admin` username is not available for creation.
15751576
func (s *GlobalAPI) CreateGrafanaUser(req *GlobalAPICreateGrafanaUserRequest, opts ...scw.RequestOption) (*GrafanaUser, error) {
15761577
var err error
@@ -1599,7 +1600,8 @@ func (s *GlobalAPI) CreateGrafanaUser(req *GlobalAPICreateGrafanaUserRequest, op
15991600
return &resp, nil
16001601
}
16011602

1602-
// ListGrafanaUsers: List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
1603+
// Deprecated: ListGrafanaUsers: List Grafana users
1604+
// List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.
16031605
func (s *GlobalAPI) ListGrafanaUsers(req *GlobalAPIListGrafanaUsersRequest, opts ...scw.RequestOption) (*ListGrafanaUsersResponse, error) {
16041606
var err error
16051607

@@ -1634,7 +1636,8 @@ func (s *GlobalAPI) ListGrafanaUsers(req *GlobalAPIListGrafanaUsersRequest, opts
16341636
return &resp, nil
16351637
}
16361638

1637-
// DeleteGrafanaUser: Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
1639+
// Deprecated: DeleteGrafanaUser: Delete a Grafana user
1640+
// Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
16381641
func (s *GlobalAPI) DeleteGrafanaUser(req *GlobalAPIDeleteGrafanaUserRequest, opts ...scw.RequestOption) error {
16391642
var err error
16401643

@@ -1663,7 +1666,8 @@ func (s *GlobalAPI) DeleteGrafanaUser(req *GlobalAPIDeleteGrafanaUserRequest, op
16631666
return nil
16641667
}
16651668

1666-
// ResetGrafanaUserPassword: Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
1669+
// Deprecated: ResetGrafanaUserPassword: Reset a Grafana user password
1670+
// Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
16671671
// A new password regenerates and only displays once. Make sure that you save it.
16681672
func (s *GlobalAPI) ResetGrafanaUserPassword(req *GlobalAPIResetGrafanaUserPasswordRequest, opts ...scw.RequestOption) (*GrafanaUser, error) {
16691673
var err error

0 commit comments

Comments
 (0)