diff --git a/handler/account/account.go b/handler/account/account.go index 24e1aa7..5c60b0e 100644 --- a/handler/account/account.go +++ b/handler/account/account.go @@ -584,12 +584,13 @@ const ( MemberTypeServiceConfigurationWrite MemberType = "service:configuration:write" MemberTypeServiceDataWrite MemberType = "service:data:write" MemberTypeServiceLogsRead MemberType = "service:logs:read" + MemberTypeServiceMetricsRead MemberType = "service:metrics:read" MemberTypeServiceSecretsRead MemberType = "service:secrets:read" MemberTypeServiceUsersWrite MemberType = "service:users:write" ) func MemberTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } type OrderByType string @@ -694,12 +695,13 @@ const ( TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" TeamTypeServiceDataWrite TeamType = "service:data:write" TeamTypeServiceLogsRead TeamType = "service:logs:read" + TeamTypeServiceMetricsRead TeamType = "service:metrics:read" TeamTypeServiceSecretsRead TeamType = "service:secrets:read" TeamTypeServiceUsersWrite TeamType = "service:users:write" ) func TeamTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } type TechEmailOut struct { diff --git a/handler/accountteam/accountteam.go b/handler/accountteam/accountteam.go index cbc67f2..43f28f3 100644 --- a/handler/accountteam/accountteam.go +++ b/handler/accountteam/accountteam.go @@ -273,12 +273,13 @@ const ( TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" TeamTypeServiceDataWrite TeamType = "service:data:write" TeamTypeServiceLogsRead TeamType = "service:logs:read" + TeamTypeServiceMetricsRead TeamType = "service:metrics:read" TeamTypeServiceSecretsRead TeamType = "service:secrets:read" TeamTypeServiceUsersWrite TeamType = "service:users:write" ) func TeamTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } // accountTeamCreateOut AccountTeamCreateResponse diff --git a/handler/project/project.go b/handler/project/project.go index 78a0d4b..bcb838b 100644 --- a/handler/project/project.go +++ b/handler/project/project.go @@ -655,12 +655,13 @@ const ( MemberTypeServiceConfigurationWrite MemberType = "service:configuration:write" MemberTypeServiceDataWrite MemberType = "service:data:write" MemberTypeServiceLogsRead MemberType = "service:logs:read" + MemberTypeServiceMetricsRead MemberType = "service:metrics:read" MemberTypeServiceSecretsRead MemberType = "service:secrets:read" MemberTypeServiceUsersWrite MemberType = "service:users:write" ) func MemberTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } // MysqlOut Service type information @@ -835,12 +836,13 @@ const ( ProjectMembershipTypeServiceConfigurationWrite ProjectMembershipType = "service:configuration:write" ProjectMembershipTypeServiceDataWrite ProjectMembershipType = "service:data:write" ProjectMembershipTypeServiceLogsRead ProjectMembershipType = "service:logs:read" + ProjectMembershipTypeServiceMetricsRead ProjectMembershipType = "service:metrics:read" ProjectMembershipTypeServiceSecretsRead ProjectMembershipType = "service:secrets:read" ProjectMembershipTypeServiceUsersWrite ProjectMembershipType = "service:users:write" ) func ProjectMembershipTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } type ProjectOut struct { diff --git a/handler/user/user.go b/handler/user/user.go index c9e6ab0..60560f0 100644 --- a/handler/user/user.go +++ b/handler/user/user.go @@ -628,12 +628,13 @@ const ( ProjectMembershipTypeServiceConfigurationWrite ProjectMembershipType = "service:configuration:write" ProjectMembershipTypeServiceDataWrite ProjectMembershipType = "service:data:write" ProjectMembershipTypeServiceLogsRead ProjectMembershipType = "service:logs:read" + ProjectMembershipTypeServiceMetricsRead ProjectMembershipType = "service:metrics:read" ProjectMembershipTypeServiceSecretsRead ProjectMembershipType = "service:secrets:read" ProjectMembershipTypeServiceUsersWrite ProjectMembershipType = "service:users:write" ) func ProjectMembershipTypeChoices() []string { - return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:billing:read", "organization:billing:write", "organization:domains:write", "organization:groups:write", "organization:networking:read", "organization:networking:write", "organization:projects:write", "organization:users:write", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "project:services:write", "read_only", "role:organization:admin", "role:project:admin", "role:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:metrics:read", "service:secrets:read", "service:users:write"} } type TokenOut struct {