Skip to content

Commit db8df6f

Browse files
authored
feat(iam): add support for Managed, Deletable and Editable property (scaleway#2241)
1 parent b464c29 commit db8df6f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

api/iam/v1alpha1/iam_sdk.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,9 @@ type APIKey struct {
881881
// Editable: defines whether or not the API key is editable.
882882
Editable bool `json:"editable"`
883883

884+
// Managed: defines whether or not the API key is managed.
885+
Managed bool `json:"managed"`
886+
884887
// CreationIP: IP address of the device that created the API key.
885888
CreationIP string `json:"creation_ip"`
886889
}
@@ -908,6 +911,12 @@ type Application struct {
908911
// Editable: defines whether or not the application is editable.
909912
Editable bool `json:"editable"`
910913

914+
// Deletable: defines whether or not the application is deletable.
915+
Deletable bool `json:"deletable"`
916+
917+
// Managed: defines whether or not the application is managed.
918+
Managed bool `json:"managed"`
919+
911920
// NbAPIKeys: number of API keys attributed to the application.
912921
NbAPIKeys uint32 `json:"nb_api_keys"`
913922

@@ -943,6 +952,15 @@ type Group struct {
943952

944953
// Tags: tags associated to the group.
945954
Tags []string `json:"tags"`
955+
956+
// Editable: defines whether or not the group is editable.
957+
Editable bool `json:"editable"`
958+
959+
// Deletable: defines whether or not the group is deletable.
960+
Deletable bool `json:"deletable"`
961+
962+
// Managed: defines whether or not the group is managed.
963+
Managed bool `json:"managed"`
946964
}
947965

948966
// Log: log.
@@ -1019,6 +1037,12 @@ type Policy struct {
10191037
// Editable: defines whether or not a policy is editable.
10201038
Editable bool `json:"editable"`
10211039

1040+
// Deletable: defines whether or not a policy is deletable.
1041+
Deletable bool `json:"deletable"`
1042+
1043+
// Managed: defines whether or not a policy is managed.
1044+
Managed bool `json:"managed"`
1045+
10221046
// NbRules: number of rules of the policy.
10231047
NbRules uint32 `json:"nb_rules"`
10241048

0 commit comments

Comments
 (0)