From 4a6afa128a03a8c1bb1a5ea65ae6b3a643d55b3d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:03:50 +0300 Subject: [PATCH] chore(update): bump openapi schema (2024-10-24) (#170) Co-authored-by: GitHub --- handler/account/account.go | 50 ++++++++++++++++-------------- handler/accountteam/accountteam.go | 25 ++++++++------- handler/project/project.go | 50 ++++++++++++++++-------------- handler/user/user.go | 25 ++++++++------- 4 files changed, 78 insertions(+), 72 deletions(-) diff --git a/handler/account/account.go b/handler/account/account.go index a05fb85..10cd755 100644 --- a/handler/account/account.go +++ b/handler/account/account.go @@ -549,21 +549,22 @@ type EventOut struct { type MemberType string const ( - MemberTypeAdmin MemberType = "admin" - MemberTypeDeveloper MemberType = "developer" - MemberTypeOperator MemberType = "operator" - MemberTypeProjectAuditLogsRead MemberType = "project:audit_logs:read" - MemberTypeProjectIntegrationsRead MemberType = "project:integrations:read" - MemberTypeProjectNetworkingRead MemberType = "project:networking:read" - MemberTypeProjectNetworkingWrite MemberType = "project:networking:write" - MemberTypeProjectPermissionsRead MemberType = "project:permissions:read" - MemberTypeProjectServicesRead MemberType = "project:services:read" - MemberTypeReadOnly MemberType = "read_only" - MemberTypeServiceLogsRead MemberType = "service:logs:read" + MemberTypeAdmin MemberType = "admin" + MemberTypeDeveloper MemberType = "developer" + MemberTypeOperator MemberType = "operator" + MemberTypeProjectAuditLogsRead MemberType = "project:audit_logs:read" + MemberTypeProjectIntegrationsRead MemberType = "project:integrations:read" + MemberTypeProjectIntegrationsWrite MemberType = "project:integrations:write" + MemberTypeProjectNetworkingRead MemberType = "project:networking:read" + MemberTypeProjectNetworkingWrite MemberType = "project:networking:write" + MemberTypeProjectPermissionsRead MemberType = "project:permissions:read" + MemberTypeProjectServicesRead MemberType = "project:services:read" + MemberTypeReadOnly MemberType = "read_only" + MemberTypeServiceLogsRead MemberType = "service:logs:read" ) func MemberTypeChoices() []string { - return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} + return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} } type OrderByType string @@ -639,21 +640,22 @@ type TeamOut struct { type TeamType string const ( - TeamTypeAdmin TeamType = "admin" - TeamTypeOperator TeamType = "operator" - TeamTypeDeveloper TeamType = "developer" - TeamTypeReadOnly TeamType = "read_only" - TeamTypeProjectIntegrationsRead TeamType = "project:integrations:read" - TeamTypeProjectNetworkingRead TeamType = "project:networking:read" - TeamTypeProjectNetworkingWrite TeamType = "project:networking:write" - TeamTypeProjectPermissionsRead TeamType = "project:permissions:read" - TeamTypeServiceLogsRead TeamType = "service:logs:read" - TeamTypeProjectServicesRead TeamType = "project:services:read" - TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" + TeamTypeAdmin TeamType = "admin" + TeamTypeOperator TeamType = "operator" + TeamTypeDeveloper TeamType = "developer" + TeamTypeReadOnly TeamType = "read_only" + TeamTypeProjectIntegrationsRead TeamType = "project:integrations:read" + TeamTypeProjectIntegrationsWrite TeamType = "project:integrations:write" + TeamTypeProjectNetworkingRead TeamType = "project:networking:read" + TeamTypeProjectNetworkingWrite TeamType = "project:networking:write" + TeamTypeProjectPermissionsRead TeamType = "project:permissions:read" + TeamTypeServiceLogsRead TeamType = "service:logs:read" + TeamTypeProjectServicesRead TeamType = "project:services:read" + TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" ) func TeamTypeChoices() []string { - return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "service:logs:read", "project:services:read", "project:audit_logs:read"} + return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "service:logs:read", "project:services:read", "project:audit_logs:read"} } type TechEmailOut struct { diff --git a/handler/accountteam/accountteam.go b/handler/accountteam/accountteam.go index 533e3a8..05db792 100644 --- a/handler/accountteam/accountteam.go +++ b/handler/accountteam/accountteam.go @@ -244,21 +244,22 @@ type TeamOut struct { type TeamType string const ( - TeamTypeAdmin TeamType = "admin" - TeamTypeOperator TeamType = "operator" - TeamTypeDeveloper TeamType = "developer" - TeamTypeReadOnly TeamType = "read_only" - TeamTypeProjectIntegrationsRead TeamType = "project:integrations:read" - TeamTypeProjectNetworkingRead TeamType = "project:networking:read" - TeamTypeProjectNetworkingWrite TeamType = "project:networking:write" - TeamTypeProjectPermissionsRead TeamType = "project:permissions:read" - TeamTypeServiceLogsRead TeamType = "service:logs:read" - TeamTypeProjectServicesRead TeamType = "project:services:read" - TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" + TeamTypeAdmin TeamType = "admin" + TeamTypeOperator TeamType = "operator" + TeamTypeDeveloper TeamType = "developer" + TeamTypeReadOnly TeamType = "read_only" + TeamTypeProjectIntegrationsRead TeamType = "project:integrations:read" + TeamTypeProjectIntegrationsWrite TeamType = "project:integrations:write" + TeamTypeProjectNetworkingRead TeamType = "project:networking:read" + TeamTypeProjectNetworkingWrite TeamType = "project:networking:write" + TeamTypeProjectPermissionsRead TeamType = "project:permissions:read" + TeamTypeServiceLogsRead TeamType = "service:logs:read" + TeamTypeProjectServicesRead TeamType = "project:services:read" + TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" ) func TeamTypeChoices() []string { - return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "service:logs:read", "project:services:read", "project:audit_logs:read"} + return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "service:logs:read", "project:services:read", "project:audit_logs:read"} } // accountTeamCreateOut AccountTeamCreateResponse diff --git a/handler/project/project.go b/handler/project/project.go index 0f4922f..ec70c8a 100644 --- a/handler/project/project.go +++ b/handler/project/project.go @@ -447,21 +447,22 @@ type AlloydbomniOut struct { type AnyType string const ( - AnyTypeAdmin AnyType = "admin" - AnyTypeDeveloper AnyType = "developer" - AnyTypeOperator AnyType = "operator" - AnyTypeProjectAuditLogsRead AnyType = "project:audit_logs:read" - AnyTypeProjectIntegrationsRead AnyType = "project:integrations:read" - AnyTypeProjectNetworkingRead AnyType = "project:networking:read" - AnyTypeProjectNetworkingWrite AnyType = "project:networking:write" - AnyTypeProjectPermissionsRead AnyType = "project:permissions:read" - AnyTypeProjectServicesRead AnyType = "project:services:read" - AnyTypeReadOnly AnyType = "read_only" - AnyTypeServiceLogsRead AnyType = "service:logs:read" + AnyTypeAdmin AnyType = "admin" + AnyTypeDeveloper AnyType = "developer" + AnyTypeOperator AnyType = "operator" + AnyTypeProjectAuditLogsRead AnyType = "project:audit_logs:read" + AnyTypeProjectIntegrationsRead AnyType = "project:integrations:read" + AnyTypeProjectIntegrationsWrite AnyType = "project:integrations:write" + AnyTypeProjectNetworkingRead AnyType = "project:networking:read" + AnyTypeProjectNetworkingWrite AnyType = "project:networking:write" + AnyTypeProjectPermissionsRead AnyType = "project:permissions:read" + AnyTypeProjectServicesRead AnyType = "project:services:read" + AnyTypeReadOnly AnyType = "read_only" + AnyTypeServiceLogsRead AnyType = "service:logs:read" ) func AnyTypeChoices() []string { - return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} + return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} } // BackupConfigOut Backup configuration for this service plan @@ -628,21 +629,22 @@ type KafkaOut struct { type MemberType string const ( - MemberTypeAdmin MemberType = "admin" - MemberTypeDeveloper MemberType = "developer" - MemberTypeOperator MemberType = "operator" - MemberTypeProjectAuditLogsRead MemberType = "project:audit_logs:read" - MemberTypeProjectIntegrationsRead MemberType = "project:integrations:read" - MemberTypeProjectNetworkingRead MemberType = "project:networking:read" - MemberTypeProjectNetworkingWrite MemberType = "project:networking:write" - MemberTypeProjectPermissionsRead MemberType = "project:permissions:read" - MemberTypeProjectServicesRead MemberType = "project:services:read" - MemberTypeReadOnly MemberType = "read_only" - MemberTypeServiceLogsRead MemberType = "service:logs:read" + MemberTypeAdmin MemberType = "admin" + MemberTypeDeveloper MemberType = "developer" + MemberTypeOperator MemberType = "operator" + MemberTypeProjectAuditLogsRead MemberType = "project:audit_logs:read" + MemberTypeProjectIntegrationsRead MemberType = "project:integrations:read" + MemberTypeProjectIntegrationsWrite MemberType = "project:integrations:write" + MemberTypeProjectNetworkingRead MemberType = "project:networking:read" + MemberTypeProjectNetworkingWrite MemberType = "project:networking:write" + MemberTypeProjectPermissionsRead MemberType = "project:permissions:read" + MemberTypeProjectServicesRead MemberType = "project:services:read" + MemberTypeReadOnly MemberType = "read_only" + MemberTypeServiceLogsRead MemberType = "service:logs:read" ) func MemberTypeChoices() []string { - return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} + return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} } // MysqlOut Service type information diff --git a/handler/user/user.go b/handler/user/user.go index 84e0e90..5193ee1 100644 --- a/handler/user/user.go +++ b/handler/user/user.go @@ -515,21 +515,22 @@ func ActionTypeChoices() []string { type AnyType string const ( - AnyTypeAdmin AnyType = "admin" - AnyTypeDeveloper AnyType = "developer" - AnyTypeOperator AnyType = "operator" - AnyTypeProjectAuditLogsRead AnyType = "project:audit_logs:read" - AnyTypeProjectIntegrationsRead AnyType = "project:integrations:read" - AnyTypeProjectNetworkingRead AnyType = "project:networking:read" - AnyTypeProjectNetworkingWrite AnyType = "project:networking:write" - AnyTypeProjectPermissionsRead AnyType = "project:permissions:read" - AnyTypeProjectServicesRead AnyType = "project:services:read" - AnyTypeReadOnly AnyType = "read_only" - AnyTypeServiceLogsRead AnyType = "service:logs:read" + AnyTypeAdmin AnyType = "admin" + AnyTypeDeveloper AnyType = "developer" + AnyTypeOperator AnyType = "operator" + AnyTypeProjectAuditLogsRead AnyType = "project:audit_logs:read" + AnyTypeProjectIntegrationsRead AnyType = "project:integrations:read" + AnyTypeProjectIntegrationsWrite AnyType = "project:integrations:write" + AnyTypeProjectNetworkingRead AnyType = "project:networking:read" + AnyTypeProjectNetworkingWrite AnyType = "project:networking:write" + AnyTypeProjectPermissionsRead AnyType = "project:permissions:read" + AnyTypeProjectServicesRead AnyType = "project:services:read" + AnyTypeReadOnly AnyType = "read_only" + AnyTypeServiceLogsRead AnyType = "service:logs:read" ) func AnyTypeChoices() []string { - return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} + return []string{"admin", "developer", "operator", "project:audit_logs:read", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "project:services:read", "read_only", "service:logs:read"} } type AuthenticationMethodOut struct {