diff --git a/generator/models.go b/generator/models.go index 692b7c4..175be9d 100644 --- a/generator/models.go +++ b/generator/models.go @@ -213,6 +213,11 @@ func (s *Schema) init(doc *Doc, scope map[string]*Schema, name string) { if !strings.Contains(s.CamelName, enumTypeSuffix) { s.CamelName += enumTypeSuffix } + + // Sorts values for consistency + sort.Slice(s.Enum, func(i, j int) bool { + return fmt.Sprint(s.Enum[i]) < fmt.Sprint(s.Enum[j]) + }) } // Adds suffix to reduce name collision diff --git a/handler/account/account.go b/handler/account/account.go index 287a0dc..eb0d50a 100644 --- a/handler/account/account.go +++ b/handler/account/account.go @@ -593,16 +593,16 @@ func MemberTypeChoices() []string { type OrderByType string const ( + OrderByTypeRealNameAsc OrderByType = "real_name:asc" + OrderByTypeRealNameDesc OrderByType = "real_name:desc" OrderByTypeUserEmailAsc OrderByType = "user_email:asc" OrderByTypeUserEmailDesc OrderByType = "user_email:desc" OrderByTypeUserIdAsc OrderByType = "user_id:asc" OrderByTypeUserIdDesc OrderByType = "user_id:desc" - OrderByTypeRealNameAsc OrderByType = "real_name:asc" - OrderByTypeRealNameDesc OrderByType = "real_name:desc" ) func OrderByTypeChoices() []string { - return []string{"user_email:asc", "user_email:desc", "user_id:asc", "user_id:desc", "real_name:asc", "real_name:desc"} + return []string{"real_name:asc", "real_name:desc", "user_email:asc", "user_email:desc", "user_id:asc", "user_id:desc"} } type PaymentMethodType string @@ -664,38 +664,38 @@ type TeamType string const ( TeamTypeAdmin TeamType = "admin" - TeamTypeOperator TeamType = "operator" TeamTypeDeveloper TeamType = "developer" - TeamTypeReadOnly TeamType = "read_only" + TeamTypeOperator TeamType = "operator" + TeamTypeOrganizationAppUsersWrite TeamType = "organization:app_users:write" + TeamTypeOrganizationAuditLogsRead TeamType = "organization:audit_logs:read" + TeamTypeOrganizationDomainsWrite TeamType = "organization:domains:write" + TeamTypeOrganizationGroupsWrite TeamType = "organization:groups:write" + TeamTypeOrganizationIdpsWrite TeamType = "organization:idps:write" + TeamTypeOrganizationNetworkingRead TeamType = "organization:networking:read" + TeamTypeOrganizationNetworkingWrite TeamType = "organization:networking:write" + TeamTypeOrganizationProjectsWrite TeamType = "organization:projects:write" + TeamTypeOrganizationUsersWrite TeamType = "organization:users:write" + TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" 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" - TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" - TeamTypeServiceLogsRead TeamType = "service:logs:read" TeamTypeProjectServicesRead TeamType = "project:services:read" TeamTypeProjectServicesWrite TeamType = "project:services:write" - TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" + TeamTypeReadOnly TeamType = "read_only" + TeamTypeRoleOrganizationAdmin TeamType = "role:organization:admin" + TeamTypeRoleServicesMaintenance TeamType = "role:services:maintenance" + TeamTypeRoleServicesRecover TeamType = "role:services:recover" + TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" TeamTypeServiceDataWrite TeamType = "service:data:write" + TeamTypeServiceLogsRead TeamType = "service:logs:read" TeamTypeServiceSecretsRead TeamType = "service:secrets:read" TeamTypeServiceUsersWrite TeamType = "service:users:write" - TeamTypeRoleServicesMaintenance TeamType = "role:services:maintenance" - TeamTypeRoleServicesRecover TeamType = "role:services:recover" - TeamTypeOrganizationProjectsWrite TeamType = "organization:projects:write" - TeamTypeOrganizationAuditLogsRead TeamType = "organization:audit_logs:read" - TeamTypeOrganizationUsersWrite TeamType = "organization:users:write" - TeamTypeOrganizationAppUsersWrite TeamType = "organization:app_users:write" - TeamTypeOrganizationGroupsWrite TeamType = "organization:groups:write" - TeamTypeOrganizationIdpsWrite TeamType = "organization:idps:write" - TeamTypeOrganizationDomainsWrite TeamType = "organization:domains:write" - TeamTypeOrganizationNetworkingRead TeamType = "organization:networking:read" - TeamTypeOrganizationNetworkingWrite TeamType = "organization:networking:write" - TeamTypeRoleOrganizationAdmin TeamType = "role:organization:admin" ) func TeamTypeChoices() []string { - return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "service:configuration:write", "service:logs:read", "project:services:read", "project:services:write", "project:audit_logs:read", "service:data:write", "service:secrets:read", "service:users:write", "role:services:maintenance", "role:services:recover", "organization:projects:write", "organization:audit_logs:read", "organization:users:write", "organization:app_users:write", "organization:groups:write", "organization:idps:write", "organization:domains:write", "organization:networking:read", "organization:networking:write", "role:organization:admin"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:domains:write", "organization:groups:write", "organization:idps: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:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} } type TechEmailOut struct { diff --git a/handler/accountauthentication/accountauthentication.go b/handler/accountauthentication/accountauthentication.go index 25f4e34..1d4132e 100644 --- a/handler/accountauthentication/accountauthentication.go +++ b/handler/accountauthentication/accountauthentication.go @@ -383,15 +383,15 @@ type SamlFieldMappingOut struct { type SamlSignatureAlgorithmType string const ( - SamlSignatureAlgorithmTypeRsaSha1 SamlSignatureAlgorithmType = "rsa-sha1" SamlSignatureAlgorithmTypeDsaSha1 SamlSignatureAlgorithmType = "dsa-sha1" + SamlSignatureAlgorithmTypeRsaSha1 SamlSignatureAlgorithmType = "rsa-sha1" SamlSignatureAlgorithmTypeRsaSha256 SamlSignatureAlgorithmType = "rsa-sha256" SamlSignatureAlgorithmTypeRsaSha384 SamlSignatureAlgorithmType = "rsa-sha384" SamlSignatureAlgorithmTypeRsaSha512 SamlSignatureAlgorithmType = "rsa-sha512" ) func SamlSignatureAlgorithmTypeChoices() []string { - return []string{"rsa-sha1", "dsa-sha1", "rsa-sha256", "rsa-sha384", "rsa-sha512"} + return []string{"dsa-sha1", "rsa-sha1", "rsa-sha256", "rsa-sha384", "rsa-sha512"} } type SamlVariantType string diff --git a/handler/accountteam/accountteam.go b/handler/accountteam/accountteam.go index 8d29261..b05a522 100644 --- a/handler/accountteam/accountteam.go +++ b/handler/accountteam/accountteam.go @@ -245,38 +245,38 @@ type TeamType string const ( TeamTypeAdmin TeamType = "admin" - TeamTypeOperator TeamType = "operator" TeamTypeDeveloper TeamType = "developer" - TeamTypeReadOnly TeamType = "read_only" + TeamTypeOperator TeamType = "operator" + TeamTypeOrganizationAppUsersWrite TeamType = "organization:app_users:write" + TeamTypeOrganizationAuditLogsRead TeamType = "organization:audit_logs:read" + TeamTypeOrganizationDomainsWrite TeamType = "organization:domains:write" + TeamTypeOrganizationGroupsWrite TeamType = "organization:groups:write" + TeamTypeOrganizationIdpsWrite TeamType = "organization:idps:write" + TeamTypeOrganizationNetworkingRead TeamType = "organization:networking:read" + TeamTypeOrganizationNetworkingWrite TeamType = "organization:networking:write" + TeamTypeOrganizationProjectsWrite TeamType = "organization:projects:write" + TeamTypeOrganizationUsersWrite TeamType = "organization:users:write" + TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" 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" - TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" - TeamTypeServiceLogsRead TeamType = "service:logs:read" TeamTypeProjectServicesRead TeamType = "project:services:read" TeamTypeProjectServicesWrite TeamType = "project:services:write" - TeamTypeProjectAuditLogsRead TeamType = "project:audit_logs:read" + TeamTypeReadOnly TeamType = "read_only" + TeamTypeRoleOrganizationAdmin TeamType = "role:organization:admin" + TeamTypeRoleServicesMaintenance TeamType = "role:services:maintenance" + TeamTypeRoleServicesRecover TeamType = "role:services:recover" + TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write" TeamTypeServiceDataWrite TeamType = "service:data:write" + TeamTypeServiceLogsRead TeamType = "service:logs:read" TeamTypeServiceSecretsRead TeamType = "service:secrets:read" TeamTypeServiceUsersWrite TeamType = "service:users:write" - TeamTypeRoleServicesMaintenance TeamType = "role:services:maintenance" - TeamTypeRoleServicesRecover TeamType = "role:services:recover" - TeamTypeOrganizationProjectsWrite TeamType = "organization:projects:write" - TeamTypeOrganizationAuditLogsRead TeamType = "organization:audit_logs:read" - TeamTypeOrganizationUsersWrite TeamType = "organization:users:write" - TeamTypeOrganizationAppUsersWrite TeamType = "organization:app_users:write" - TeamTypeOrganizationGroupsWrite TeamType = "organization:groups:write" - TeamTypeOrganizationIdpsWrite TeamType = "organization:idps:write" - TeamTypeOrganizationDomainsWrite TeamType = "organization:domains:write" - TeamTypeOrganizationNetworkingRead TeamType = "organization:networking:read" - TeamTypeOrganizationNetworkingWrite TeamType = "organization:networking:write" - TeamTypeRoleOrganizationAdmin TeamType = "role:organization:admin" ) func TeamTypeChoices() []string { - return []string{"admin", "operator", "developer", "read_only", "project:integrations:read", "project:integrations:write", "project:networking:read", "project:networking:write", "project:permissions:read", "service:configuration:write", "service:logs:read", "project:services:read", "project:services:write", "project:audit_logs:read", "service:data:write", "service:secrets:read", "service:users:write", "role:services:maintenance", "role:services:recover", "organization:projects:write", "organization:audit_logs:read", "organization:users:write", "organization:app_users:write", "organization:groups:write", "organization:idps:write", "organization:domains:write", "organization:networking:read", "organization:networking:write", "role:organization:admin"} + return []string{"admin", "developer", "operator", "organization:app_users:write", "organization:audit_logs:read", "organization:domains:write", "organization:groups:write", "organization:idps: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:services:maintenance", "role:services:recover", "service:configuration:write", "service:data:write", "service:logs:read", "service:secrets:read", "service:users:write"} } // accountTeamCreateOut AccountTeamCreateResponse diff --git a/handler/billinggroup/billinggroup.go b/handler/billinggroup/billinggroup.go index f651c06..98f842d 100644 --- a/handler/billinggroup/billinggroup.go +++ b/handler/billinggroup/billinggroup.go @@ -549,7 +549,9 @@ const ( InvoiceStateTypeAccrual InvoiceStateType = "accrual" InvoiceStateTypeConsolidated InvoiceStateType = "consolidated" InvoiceStateTypeDue InvoiceStateType = "due" + InvoiceStateTypeDueOnlyProjectChargesCalculated InvoiceStateType = "due_only_project_charges_calculated" InvoiceStateTypeEstimate InvoiceStateType = "estimate" + InvoiceStateTypeEstimateOnlyProjectChargesCalculated InvoiceStateType = "estimate_only_project_charges_calculated" InvoiceStateTypeFailedCreditCardCharge InvoiceStateType = "failed_credit_card_charge" InvoiceStateTypeFailedNoCreditCard InvoiceStateType = "failed_no_credit_card" InvoiceStateTypeMailed InvoiceStateType = "mailed" @@ -558,12 +560,10 @@ const ( InvoiceStateTypePartnerMetering InvoiceStateType = "partner_metering" InvoiceStateTypeUncollectible InvoiceStateType = "uncollectible" InvoiceStateTypeWaived InvoiceStateType = "waived" - InvoiceStateTypeDueOnlyProjectChargesCalculated InvoiceStateType = "due_only_project_charges_calculated" - InvoiceStateTypeEstimateOnlyProjectChargesCalculated InvoiceStateType = "estimate_only_project_charges_calculated" ) func InvoiceStateTypeChoices() []string { - return []string{"accrual", "consolidated", "due", "estimate", "failed_credit_card_charge", "failed_no_credit_card", "mailed", "no_payment_expected", "paid", "partner_metering", "uncollectible", "waived", "due_only_project_charges_calculated", "estimate_only_project_charges_calculated"} + return []string{"accrual", "consolidated", "due", "due_only_project_charges_calculated", "estimate", "estimate_only_project_charges_calculated", "failed_credit_card_charge", "failed_no_credit_card", "mailed", "no_payment_expected", "paid", "partner_metering", "uncollectible", "waived"} } type LineOut struct { diff --git a/handler/clickhouse/clickhouse.go b/handler/clickhouse/clickhouse.go index 89c1d18..5e76070 100644 --- a/handler/clickhouse/clickhouse.go +++ b/handler/clickhouse/clickhouse.go @@ -182,12 +182,12 @@ type OrderByType string const ( OrderByTypeCallsAsc OrderByType = "calls:asc" OrderByTypeCallsDesc OrderByType = "calls:desc" - OrderByTypeMinTimeAsc OrderByType = "min_time:asc" - OrderByTypeMinTimeDesc OrderByType = "min_time:desc" OrderByTypeMaxTimeAsc OrderByType = "max_time:asc" OrderByTypeMaxTimeDesc OrderByType = "max_time:desc" OrderByTypeMeanTimeAsc OrderByType = "mean_time:asc" OrderByTypeMeanTimeDesc OrderByType = "mean_time:desc" + OrderByTypeMinTimeAsc OrderByType = "min_time:asc" + OrderByTypeMinTimeDesc OrderByType = "min_time:desc" OrderByTypeP95TimeAsc OrderByType = "p95_time:asc" OrderByTypeP95TimeDesc OrderByType = "p95_time:desc" OrderByTypeStddevTimeAsc OrderByType = "stddev_time:asc" @@ -197,7 +197,7 @@ const ( ) func OrderByTypeChoices() []string { - return []string{"calls:asc", "calls:desc", "min_time:asc", "min_time:desc", "max_time:asc", "max_time:desc", "mean_time:asc", "mean_time:desc", "p95_time:asc", "p95_time:desc", "stddev_time:asc", "stddev_time:desc", "total_time:asc", "total_time:desc"} + return []string{"calls:asc", "calls:desc", "max_time:asc", "max_time:desc", "mean_time:asc", "mean_time:desc", "min_time:asc", "min_time:desc", "p95_time:asc", "p95_time:desc", "stddev_time:asc", "stddev_time:desc", "total_time:asc", "total_time:desc"} } type QueryOut struct { diff --git a/handler/flinkapplication/flinkapplication.go b/handler/flinkapplication/flinkapplication.go index d051313..322eb05 100644 --- a/handler/flinkapplication/flinkapplication.go +++ b/handler/flinkapplication/flinkapplication.go @@ -166,27 +166,27 @@ type CurrentDeploymentOut struct { type CurrentDeploymentStatusType string const ( - CurrentDeploymentStatusTypeInitializing CurrentDeploymentStatusType = "INITIALIZING" + CurrentDeploymentStatusTypeCanceled CurrentDeploymentStatusType = "CANCELED" + CurrentDeploymentStatusTypeCancelling CurrentDeploymentStatusType = "CANCELLING" + CurrentDeploymentStatusTypeCancellingRequested CurrentDeploymentStatusType = "CANCELLING_REQUESTED" CurrentDeploymentStatusTypeCreated CurrentDeploymentStatusType = "CREATED" - CurrentDeploymentStatusTypeRunning CurrentDeploymentStatusType = "RUNNING" - CurrentDeploymentStatusTypeFailing CurrentDeploymentStatusType = "FAILING" + CurrentDeploymentStatusTypeDeleteRequested CurrentDeploymentStatusType = "DELETE_REQUESTED" + CurrentDeploymentStatusTypeDeleting CurrentDeploymentStatusType = "DELETING" CurrentDeploymentStatusTypeFailed CurrentDeploymentStatusType = "FAILED" - CurrentDeploymentStatusTypeSaving CurrentDeploymentStatusType = "SAVING" - CurrentDeploymentStatusTypeCancellingRequested CurrentDeploymentStatusType = "CANCELLING_REQUESTED" - CurrentDeploymentStatusTypeCancelling CurrentDeploymentStatusType = "CANCELLING" - CurrentDeploymentStatusTypeCanceled CurrentDeploymentStatusType = "CANCELED" - CurrentDeploymentStatusTypeSavingAndStopRequested CurrentDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - CurrentDeploymentStatusTypeSavingAndStop CurrentDeploymentStatusType = "SAVING_AND_STOP" + CurrentDeploymentStatusTypeFailing CurrentDeploymentStatusType = "FAILING" CurrentDeploymentStatusTypeFinished CurrentDeploymentStatusType = "FINISHED" + CurrentDeploymentStatusTypeInitializing CurrentDeploymentStatusType = "INITIALIZING" + CurrentDeploymentStatusTypeReconciling CurrentDeploymentStatusType = "RECONCILING" CurrentDeploymentStatusTypeRestarting CurrentDeploymentStatusType = "RESTARTING" + CurrentDeploymentStatusTypeRunning CurrentDeploymentStatusType = "RUNNING" + CurrentDeploymentStatusTypeSaving CurrentDeploymentStatusType = "SAVING" + CurrentDeploymentStatusTypeSavingAndStop CurrentDeploymentStatusType = "SAVING_AND_STOP" + CurrentDeploymentStatusTypeSavingAndStopRequested CurrentDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" CurrentDeploymentStatusTypeSuspended CurrentDeploymentStatusType = "SUSPENDED" - CurrentDeploymentStatusTypeDeleteRequested CurrentDeploymentStatusType = "DELETE_REQUESTED" - CurrentDeploymentStatusTypeDeleting CurrentDeploymentStatusType = "DELETING" - CurrentDeploymentStatusTypeReconciling CurrentDeploymentStatusType = "RECONCILING" ) func CurrentDeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } // ServiceFlinkCreateApplicationIn ServiceFlinkCreateApplicationRequestBody diff --git a/handler/flinkapplicationdeployment/flinkapplicationdeployment.go b/handler/flinkapplicationdeployment/flinkapplicationdeployment.go index df5ffd1..785d48f 100644 --- a/handler/flinkapplicationdeployment/flinkapplicationdeployment.go +++ b/handler/flinkapplicationdeployment/flinkapplicationdeployment.go @@ -150,53 +150,53 @@ type DeploymentOut struct { type DeploymentStatusType string const ( - DeploymentStatusTypeInitializing DeploymentStatusType = "INITIALIZING" + DeploymentStatusTypeCanceled DeploymentStatusType = "CANCELED" + DeploymentStatusTypeCancelling DeploymentStatusType = "CANCELLING" + DeploymentStatusTypeCancellingRequested DeploymentStatusType = "CANCELLING_REQUESTED" DeploymentStatusTypeCreated DeploymentStatusType = "CREATED" - DeploymentStatusTypeRunning DeploymentStatusType = "RUNNING" - DeploymentStatusTypeFailing DeploymentStatusType = "FAILING" + DeploymentStatusTypeDeleteRequested DeploymentStatusType = "DELETE_REQUESTED" + DeploymentStatusTypeDeleting DeploymentStatusType = "DELETING" DeploymentStatusTypeFailed DeploymentStatusType = "FAILED" - DeploymentStatusTypeSaving DeploymentStatusType = "SAVING" - DeploymentStatusTypeCancellingRequested DeploymentStatusType = "CANCELLING_REQUESTED" - DeploymentStatusTypeCancelling DeploymentStatusType = "CANCELLING" - DeploymentStatusTypeCanceled DeploymentStatusType = "CANCELED" - DeploymentStatusTypeSavingAndStopRequested DeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - DeploymentStatusTypeSavingAndStop DeploymentStatusType = "SAVING_AND_STOP" + DeploymentStatusTypeFailing DeploymentStatusType = "FAILING" DeploymentStatusTypeFinished DeploymentStatusType = "FINISHED" + DeploymentStatusTypeInitializing DeploymentStatusType = "INITIALIZING" + DeploymentStatusTypeReconciling DeploymentStatusType = "RECONCILING" DeploymentStatusTypeRestarting DeploymentStatusType = "RESTARTING" + DeploymentStatusTypeRunning DeploymentStatusType = "RUNNING" + DeploymentStatusTypeSaving DeploymentStatusType = "SAVING" + DeploymentStatusTypeSavingAndStop DeploymentStatusType = "SAVING_AND_STOP" + DeploymentStatusTypeSavingAndStopRequested DeploymentStatusType = "SAVING_AND_STOP_REQUESTED" DeploymentStatusTypeSuspended DeploymentStatusType = "SUSPENDED" - DeploymentStatusTypeDeleteRequested DeploymentStatusType = "DELETE_REQUESTED" - DeploymentStatusTypeDeleting DeploymentStatusType = "DELETING" - DeploymentStatusTypeReconciling DeploymentStatusType = "RECONCILING" ) func DeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } type ServiceFlinkApplicationDeploymentStatusType string const ( - ServiceFlinkApplicationDeploymentStatusTypeInitializing ServiceFlinkApplicationDeploymentStatusType = "INITIALIZING" + ServiceFlinkApplicationDeploymentStatusTypeCanceled ServiceFlinkApplicationDeploymentStatusType = "CANCELED" + ServiceFlinkApplicationDeploymentStatusTypeCancelling ServiceFlinkApplicationDeploymentStatusType = "CANCELLING" + ServiceFlinkApplicationDeploymentStatusTypeCancellingRequested ServiceFlinkApplicationDeploymentStatusType = "CANCELLING_REQUESTED" ServiceFlinkApplicationDeploymentStatusTypeCreated ServiceFlinkApplicationDeploymentStatusType = "CREATED" - ServiceFlinkApplicationDeploymentStatusTypeRunning ServiceFlinkApplicationDeploymentStatusType = "RUNNING" - ServiceFlinkApplicationDeploymentStatusTypeFailing ServiceFlinkApplicationDeploymentStatusType = "FAILING" + ServiceFlinkApplicationDeploymentStatusTypeDeleteRequested ServiceFlinkApplicationDeploymentStatusType = "DELETE_REQUESTED" + ServiceFlinkApplicationDeploymentStatusTypeDeleting ServiceFlinkApplicationDeploymentStatusType = "DELETING" ServiceFlinkApplicationDeploymentStatusTypeFailed ServiceFlinkApplicationDeploymentStatusType = "FAILED" - ServiceFlinkApplicationDeploymentStatusTypeSaving ServiceFlinkApplicationDeploymentStatusType = "SAVING" - ServiceFlinkApplicationDeploymentStatusTypeCancellingRequested ServiceFlinkApplicationDeploymentStatusType = "CANCELLING_REQUESTED" - ServiceFlinkApplicationDeploymentStatusTypeCancelling ServiceFlinkApplicationDeploymentStatusType = "CANCELLING" - ServiceFlinkApplicationDeploymentStatusTypeCanceled ServiceFlinkApplicationDeploymentStatusType = "CANCELED" - ServiceFlinkApplicationDeploymentStatusTypeSavingAndStopRequested ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - ServiceFlinkApplicationDeploymentStatusTypeSavingAndStop ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP" + ServiceFlinkApplicationDeploymentStatusTypeFailing ServiceFlinkApplicationDeploymentStatusType = "FAILING" ServiceFlinkApplicationDeploymentStatusTypeFinished ServiceFlinkApplicationDeploymentStatusType = "FINISHED" + ServiceFlinkApplicationDeploymentStatusTypeInitializing ServiceFlinkApplicationDeploymentStatusType = "INITIALIZING" + ServiceFlinkApplicationDeploymentStatusTypeReconciling ServiceFlinkApplicationDeploymentStatusType = "RECONCILING" ServiceFlinkApplicationDeploymentStatusTypeRestarting ServiceFlinkApplicationDeploymentStatusType = "RESTARTING" + ServiceFlinkApplicationDeploymentStatusTypeRunning ServiceFlinkApplicationDeploymentStatusType = "RUNNING" + ServiceFlinkApplicationDeploymentStatusTypeSaving ServiceFlinkApplicationDeploymentStatusType = "SAVING" + ServiceFlinkApplicationDeploymentStatusTypeSavingAndStop ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP" + ServiceFlinkApplicationDeploymentStatusTypeSavingAndStopRequested ServiceFlinkApplicationDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" ServiceFlinkApplicationDeploymentStatusTypeSuspended ServiceFlinkApplicationDeploymentStatusType = "SUSPENDED" - ServiceFlinkApplicationDeploymentStatusTypeDeleteRequested ServiceFlinkApplicationDeploymentStatusType = "DELETE_REQUESTED" - ServiceFlinkApplicationDeploymentStatusTypeDeleting ServiceFlinkApplicationDeploymentStatusType = "DELETING" - ServiceFlinkApplicationDeploymentStatusTypeReconciling ServiceFlinkApplicationDeploymentStatusType = "RECONCILING" ) func ServiceFlinkApplicationDeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } // ServiceFlinkCancelApplicationDeploymentOut ServiceFlinkCancelApplicationDeploymentResponse diff --git a/handler/flinkjarapplication/flinkjarapplication.go b/handler/flinkjarapplication/flinkjarapplication.go index 456cef8..a387677 100644 --- a/handler/flinkjarapplication/flinkjarapplication.go +++ b/handler/flinkjarapplication/flinkjarapplication.go @@ -150,27 +150,27 @@ type CurrentDeploymentOut struct { type CurrentDeploymentStatusType string const ( - CurrentDeploymentStatusTypeInitializing CurrentDeploymentStatusType = "INITIALIZING" + CurrentDeploymentStatusTypeCanceled CurrentDeploymentStatusType = "CANCELED" + CurrentDeploymentStatusTypeCancelling CurrentDeploymentStatusType = "CANCELLING" + CurrentDeploymentStatusTypeCancellingRequested CurrentDeploymentStatusType = "CANCELLING_REQUESTED" CurrentDeploymentStatusTypeCreated CurrentDeploymentStatusType = "CREATED" - CurrentDeploymentStatusTypeRunning CurrentDeploymentStatusType = "RUNNING" - CurrentDeploymentStatusTypeFailing CurrentDeploymentStatusType = "FAILING" + CurrentDeploymentStatusTypeDeleteRequested CurrentDeploymentStatusType = "DELETE_REQUESTED" + CurrentDeploymentStatusTypeDeleting CurrentDeploymentStatusType = "DELETING" CurrentDeploymentStatusTypeFailed CurrentDeploymentStatusType = "FAILED" - CurrentDeploymentStatusTypeSaving CurrentDeploymentStatusType = "SAVING" - CurrentDeploymentStatusTypeCancellingRequested CurrentDeploymentStatusType = "CANCELLING_REQUESTED" - CurrentDeploymentStatusTypeCancelling CurrentDeploymentStatusType = "CANCELLING" - CurrentDeploymentStatusTypeCanceled CurrentDeploymentStatusType = "CANCELED" - CurrentDeploymentStatusTypeSavingAndStopRequested CurrentDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - CurrentDeploymentStatusTypeSavingAndStop CurrentDeploymentStatusType = "SAVING_AND_STOP" + CurrentDeploymentStatusTypeFailing CurrentDeploymentStatusType = "FAILING" CurrentDeploymentStatusTypeFinished CurrentDeploymentStatusType = "FINISHED" + CurrentDeploymentStatusTypeInitializing CurrentDeploymentStatusType = "INITIALIZING" + CurrentDeploymentStatusTypeReconciling CurrentDeploymentStatusType = "RECONCILING" CurrentDeploymentStatusTypeRestarting CurrentDeploymentStatusType = "RESTARTING" + CurrentDeploymentStatusTypeRunning CurrentDeploymentStatusType = "RUNNING" + CurrentDeploymentStatusTypeSaving CurrentDeploymentStatusType = "SAVING" + CurrentDeploymentStatusTypeSavingAndStop CurrentDeploymentStatusType = "SAVING_AND_STOP" + CurrentDeploymentStatusTypeSavingAndStopRequested CurrentDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" CurrentDeploymentStatusTypeSuspended CurrentDeploymentStatusType = "SUSPENDED" - CurrentDeploymentStatusTypeDeleteRequested CurrentDeploymentStatusType = "DELETE_REQUESTED" - CurrentDeploymentStatusTypeDeleting CurrentDeploymentStatusType = "DELETING" - CurrentDeploymentStatusTypeReconciling CurrentDeploymentStatusType = "RECONCILING" ) func CurrentDeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } // FileInfoOut Flink JarApplicationVersion FileInfo @@ -185,13 +185,13 @@ type FileInfoOut struct { type FileStatusType string const ( + FileStatusTypeFailed FileStatusType = "FAILED" FileStatusTypeInitial FileStatusType = "INITIAL" FileStatusTypeReady FileStatusType = "READY" - FileStatusTypeFailed FileStatusType = "FAILED" ) func FileStatusTypeChoices() []string { - return []string{"INITIAL", "READY", "FAILED"} + return []string{"FAILED", "INITIAL", "READY"} } // ServiceFlinkCreateJarApplicationIn ServiceFlinkCreateJarApplicationRequestBody diff --git a/handler/flinkjarapplicationdeployment/flinkjarapplicationdeployment.go b/handler/flinkjarapplicationdeployment/flinkjarapplicationdeployment.go index d364a31..425d1a3 100644 --- a/handler/flinkjarapplicationdeployment/flinkjarapplicationdeployment.go +++ b/handler/flinkjarapplicationdeployment/flinkjarapplicationdeployment.go @@ -151,27 +151,27 @@ type DeploymentOut struct { type DeploymentStatusType string const ( - DeploymentStatusTypeInitializing DeploymentStatusType = "INITIALIZING" + DeploymentStatusTypeCanceled DeploymentStatusType = "CANCELED" + DeploymentStatusTypeCancelling DeploymentStatusType = "CANCELLING" + DeploymentStatusTypeCancellingRequested DeploymentStatusType = "CANCELLING_REQUESTED" DeploymentStatusTypeCreated DeploymentStatusType = "CREATED" - DeploymentStatusTypeRunning DeploymentStatusType = "RUNNING" - DeploymentStatusTypeFailing DeploymentStatusType = "FAILING" + DeploymentStatusTypeDeleteRequested DeploymentStatusType = "DELETE_REQUESTED" + DeploymentStatusTypeDeleting DeploymentStatusType = "DELETING" DeploymentStatusTypeFailed DeploymentStatusType = "FAILED" - DeploymentStatusTypeSaving DeploymentStatusType = "SAVING" - DeploymentStatusTypeCancellingRequested DeploymentStatusType = "CANCELLING_REQUESTED" - DeploymentStatusTypeCancelling DeploymentStatusType = "CANCELLING" - DeploymentStatusTypeCanceled DeploymentStatusType = "CANCELED" - DeploymentStatusTypeSavingAndStopRequested DeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - DeploymentStatusTypeSavingAndStop DeploymentStatusType = "SAVING_AND_STOP" + DeploymentStatusTypeFailing DeploymentStatusType = "FAILING" DeploymentStatusTypeFinished DeploymentStatusType = "FINISHED" + DeploymentStatusTypeInitializing DeploymentStatusType = "INITIALIZING" + DeploymentStatusTypeReconciling DeploymentStatusType = "RECONCILING" DeploymentStatusTypeRestarting DeploymentStatusType = "RESTARTING" + DeploymentStatusTypeRunning DeploymentStatusType = "RUNNING" + DeploymentStatusTypeSaving DeploymentStatusType = "SAVING" + DeploymentStatusTypeSavingAndStop DeploymentStatusType = "SAVING_AND_STOP" + DeploymentStatusTypeSavingAndStopRequested DeploymentStatusType = "SAVING_AND_STOP_REQUESTED" DeploymentStatusTypeSuspended DeploymentStatusType = "SUSPENDED" - DeploymentStatusTypeDeleteRequested DeploymentStatusType = "DELETE_REQUESTED" - DeploymentStatusTypeDeleting DeploymentStatusType = "DELETING" - DeploymentStatusTypeReconciling DeploymentStatusType = "RECONCILING" ) func DeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } // ServiceFlinkCancelJarApplicationDeploymentOut ServiceFlinkCancelJarApplicationDeploymentResponse @@ -250,27 +250,27 @@ type ServiceFlinkGetJarApplicationDeploymentOut struct { type ServiceFlinkJarApplicationDeploymentStatusType string const ( - ServiceFlinkJarApplicationDeploymentStatusTypeInitializing ServiceFlinkJarApplicationDeploymentStatusType = "INITIALIZING" + ServiceFlinkJarApplicationDeploymentStatusTypeCanceled ServiceFlinkJarApplicationDeploymentStatusType = "CANCELED" + ServiceFlinkJarApplicationDeploymentStatusTypeCancelling ServiceFlinkJarApplicationDeploymentStatusType = "CANCELLING" + ServiceFlinkJarApplicationDeploymentStatusTypeCancellingRequested ServiceFlinkJarApplicationDeploymentStatusType = "CANCELLING_REQUESTED" ServiceFlinkJarApplicationDeploymentStatusTypeCreated ServiceFlinkJarApplicationDeploymentStatusType = "CREATED" - ServiceFlinkJarApplicationDeploymentStatusTypeRunning ServiceFlinkJarApplicationDeploymentStatusType = "RUNNING" - ServiceFlinkJarApplicationDeploymentStatusTypeFailing ServiceFlinkJarApplicationDeploymentStatusType = "FAILING" + ServiceFlinkJarApplicationDeploymentStatusTypeDeleteRequested ServiceFlinkJarApplicationDeploymentStatusType = "DELETE_REQUESTED" + ServiceFlinkJarApplicationDeploymentStatusTypeDeleting ServiceFlinkJarApplicationDeploymentStatusType = "DELETING" ServiceFlinkJarApplicationDeploymentStatusTypeFailed ServiceFlinkJarApplicationDeploymentStatusType = "FAILED" - ServiceFlinkJarApplicationDeploymentStatusTypeSaving ServiceFlinkJarApplicationDeploymentStatusType = "SAVING" - ServiceFlinkJarApplicationDeploymentStatusTypeCancellingRequested ServiceFlinkJarApplicationDeploymentStatusType = "CANCELLING_REQUESTED" - ServiceFlinkJarApplicationDeploymentStatusTypeCancelling ServiceFlinkJarApplicationDeploymentStatusType = "CANCELLING" - ServiceFlinkJarApplicationDeploymentStatusTypeCanceled ServiceFlinkJarApplicationDeploymentStatusType = "CANCELED" - ServiceFlinkJarApplicationDeploymentStatusTypeSavingAndStopRequested ServiceFlinkJarApplicationDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" - ServiceFlinkJarApplicationDeploymentStatusTypeSavingAndStop ServiceFlinkJarApplicationDeploymentStatusType = "SAVING_AND_STOP" + ServiceFlinkJarApplicationDeploymentStatusTypeFailing ServiceFlinkJarApplicationDeploymentStatusType = "FAILING" ServiceFlinkJarApplicationDeploymentStatusTypeFinished ServiceFlinkJarApplicationDeploymentStatusType = "FINISHED" + ServiceFlinkJarApplicationDeploymentStatusTypeInitializing ServiceFlinkJarApplicationDeploymentStatusType = "INITIALIZING" + ServiceFlinkJarApplicationDeploymentStatusTypeReconciling ServiceFlinkJarApplicationDeploymentStatusType = "RECONCILING" ServiceFlinkJarApplicationDeploymentStatusTypeRestarting ServiceFlinkJarApplicationDeploymentStatusType = "RESTARTING" + ServiceFlinkJarApplicationDeploymentStatusTypeRunning ServiceFlinkJarApplicationDeploymentStatusType = "RUNNING" + ServiceFlinkJarApplicationDeploymentStatusTypeSaving ServiceFlinkJarApplicationDeploymentStatusType = "SAVING" + ServiceFlinkJarApplicationDeploymentStatusTypeSavingAndStop ServiceFlinkJarApplicationDeploymentStatusType = "SAVING_AND_STOP" + ServiceFlinkJarApplicationDeploymentStatusTypeSavingAndStopRequested ServiceFlinkJarApplicationDeploymentStatusType = "SAVING_AND_STOP_REQUESTED" ServiceFlinkJarApplicationDeploymentStatusTypeSuspended ServiceFlinkJarApplicationDeploymentStatusType = "SUSPENDED" - ServiceFlinkJarApplicationDeploymentStatusTypeDeleteRequested ServiceFlinkJarApplicationDeploymentStatusType = "DELETE_REQUESTED" - ServiceFlinkJarApplicationDeploymentStatusTypeDeleting ServiceFlinkJarApplicationDeploymentStatusType = "DELETING" - ServiceFlinkJarApplicationDeploymentStatusTypeReconciling ServiceFlinkJarApplicationDeploymentStatusType = "RECONCILING" ) func ServiceFlinkJarApplicationDeploymentStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "SAVING", "CANCELLING_REQUESTED", "CANCELLING", "CANCELED", "SAVING_AND_STOP_REQUESTED", "SAVING_AND_STOP", "FINISHED", "RESTARTING", "SUSPENDED", "DELETE_REQUESTED", "DELETING", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CANCELLING_REQUESTED", "CREATED", "DELETE_REQUESTED", "DELETING", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SAVING", "SAVING_AND_STOP", "SAVING_AND_STOP_REQUESTED", "SUSPENDED"} } // ServiceFlinkStopJarApplicationDeploymentOut ServiceFlinkStopJarApplicationDeploymentResponse diff --git a/handler/flinkjarapplicationversion/flinkjarapplicationversion.go b/handler/flinkjarapplicationversion/flinkjarapplicationversion.go index 39b1e1c..f2291b2 100644 --- a/handler/flinkjarapplicationversion/flinkjarapplicationversion.go +++ b/handler/flinkjarapplicationversion/flinkjarapplicationversion.go @@ -92,13 +92,13 @@ type FileInfoOut struct { type FileStatusType string const ( + FileStatusTypeFailed FileStatusType = "FAILED" FileStatusTypeInitial FileStatusType = "INITIAL" FileStatusTypeReady FileStatusType = "READY" - FileStatusTypeFailed FileStatusType = "FAILED" ) func FileStatusTypeChoices() []string { - return []string{"INITIAL", "READY", "FAILED"} + return []string{"FAILED", "INITIAL", "READY"} } // ServiceFlinkCreateJarApplicationVersionOut ServiceFlinkCreateJarApplicationVersionResponse diff --git a/handler/flinkjob/flinkjob.go b/handler/flinkjob/flinkjob.go index c08346d..1d5fd44 100644 --- a/handler/flinkjob/flinkjob.go +++ b/handler/flinkjob/flinkjob.go @@ -68,21 +68,21 @@ type JobOut struct { type JobStatusType string const ( - JobStatusTypeInitializing JobStatusType = "INITIALIZING" + JobStatusTypeCanceled JobStatusType = "CANCELED" + JobStatusTypeCancelling JobStatusType = "CANCELLING" JobStatusTypeCreated JobStatusType = "CREATED" - JobStatusTypeRunning JobStatusType = "RUNNING" - JobStatusTypeFailing JobStatusType = "FAILING" JobStatusTypeFailed JobStatusType = "FAILED" - JobStatusTypeCancelling JobStatusType = "CANCELLING" - JobStatusTypeCanceled JobStatusType = "CANCELED" + JobStatusTypeFailing JobStatusType = "FAILING" JobStatusTypeFinished JobStatusType = "FINISHED" + JobStatusTypeInitializing JobStatusType = "INITIALIZING" + JobStatusTypeReconciling JobStatusType = "RECONCILING" JobStatusTypeRestarting JobStatusType = "RESTARTING" + JobStatusTypeRunning JobStatusType = "RUNNING" JobStatusTypeSuspended JobStatusType = "SUSPENDED" - JobStatusTypeReconciling JobStatusType = "RECONCILING" ) func JobStatusTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "CANCELLING", "CANCELED", "FINISHED", "RESTARTING", "SUSPENDED", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CREATED", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SUSPENDED"} } // ServiceFlinkJobDetailsOut ServiceFlinkJobDetailsResponse @@ -104,21 +104,21 @@ type ServiceFlinkJobDetailsOut struct { type ServiceFlinkJobDetailsStateType string const ( - ServiceFlinkJobDetailsStateTypeInitializing ServiceFlinkJobDetailsStateType = "INITIALIZING" + ServiceFlinkJobDetailsStateTypeCanceled ServiceFlinkJobDetailsStateType = "CANCELED" + ServiceFlinkJobDetailsStateTypeCancelling ServiceFlinkJobDetailsStateType = "CANCELLING" ServiceFlinkJobDetailsStateTypeCreated ServiceFlinkJobDetailsStateType = "CREATED" - ServiceFlinkJobDetailsStateTypeRunning ServiceFlinkJobDetailsStateType = "RUNNING" - ServiceFlinkJobDetailsStateTypeFailing ServiceFlinkJobDetailsStateType = "FAILING" ServiceFlinkJobDetailsStateTypeFailed ServiceFlinkJobDetailsStateType = "FAILED" - ServiceFlinkJobDetailsStateTypeCancelling ServiceFlinkJobDetailsStateType = "CANCELLING" - ServiceFlinkJobDetailsStateTypeCanceled ServiceFlinkJobDetailsStateType = "CANCELED" + ServiceFlinkJobDetailsStateTypeFailing ServiceFlinkJobDetailsStateType = "FAILING" ServiceFlinkJobDetailsStateTypeFinished ServiceFlinkJobDetailsStateType = "FINISHED" + ServiceFlinkJobDetailsStateTypeInitializing ServiceFlinkJobDetailsStateType = "INITIALIZING" + ServiceFlinkJobDetailsStateTypeReconciling ServiceFlinkJobDetailsStateType = "RECONCILING" ServiceFlinkJobDetailsStateTypeRestarting ServiceFlinkJobDetailsStateType = "RESTARTING" + ServiceFlinkJobDetailsStateTypeRunning ServiceFlinkJobDetailsStateType = "RUNNING" ServiceFlinkJobDetailsStateTypeSuspended ServiceFlinkJobDetailsStateType = "SUSPENDED" - ServiceFlinkJobDetailsStateTypeReconciling ServiceFlinkJobDetailsStateType = "RECONCILING" ) func ServiceFlinkJobDetailsStateTypeChoices() []string { - return []string{"INITIALIZING", "CREATED", "RUNNING", "FAILING", "FAILED", "CANCELLING", "CANCELED", "FINISHED", "RESTARTING", "SUSPENDED", "RECONCILING"} + return []string{"CANCELED", "CANCELLING", "CREATED", "FAILED", "FAILING", "FINISHED", "INITIALIZING", "RECONCILING", "RESTARTING", "RUNNING", "SUSPENDED"} } // StatusCountsOut Status counts diff --git a/handler/kafkaconnect/kafkaconnect.go b/handler/kafkaconnect/kafkaconnect.go index 3a2fcff..d3692f3 100644 --- a/handler/kafkaconnect/kafkaconnect.go +++ b/handler/kafkaconnect/kafkaconnect.go @@ -209,19 +209,19 @@ type ConfigurationSchemaOut struct { type ConfigurationSchemaType string const ( - ConfigurationSchemaTypeString ConfigurationSchemaType = "STRING" - ConfigurationSchemaTypeInt ConfigurationSchemaType = "INT" - ConfigurationSchemaTypeShort ConfigurationSchemaType = "SHORT" - ConfigurationSchemaTypeLong ConfigurationSchemaType = "LONG" - ConfigurationSchemaTypeDouble ConfigurationSchemaType = "DOUBLE" ConfigurationSchemaTypeBoolean ConfigurationSchemaType = "BOOLEAN" - ConfigurationSchemaTypeList ConfigurationSchemaType = "LIST" ConfigurationSchemaTypeClass ConfigurationSchemaType = "CLASS" + ConfigurationSchemaTypeDouble ConfigurationSchemaType = "DOUBLE" + ConfigurationSchemaTypeInt ConfigurationSchemaType = "INT" + ConfigurationSchemaTypeList ConfigurationSchemaType = "LIST" + ConfigurationSchemaTypeLong ConfigurationSchemaType = "LONG" ConfigurationSchemaTypePassword ConfigurationSchemaType = "PASSWORD" + ConfigurationSchemaTypeShort ConfigurationSchemaType = "SHORT" + ConfigurationSchemaTypeString ConfigurationSchemaType = "STRING" ) func ConfigurationSchemaTypeChoices() []string { - return []string{"STRING", "INT", "SHORT", "LONG", "DOUBLE", "BOOLEAN", "LIST", "CLASS", "PASSWORD"} + return []string{"BOOLEAN", "CLASS", "DOUBLE", "INT", "LIST", "LONG", "PASSWORD", "SHORT", "STRING"} } type ConnectorOut struct { @@ -233,13 +233,13 @@ type ConnectorOut struct { type ImportanceType string const ( + ImportanceTypeHigh ImportanceType = "HIGH" ImportanceTypeLow ImportanceType = "LOW" ImportanceTypeMedium ImportanceType = "MEDIUM" - ImportanceTypeHigh ImportanceType = "HIGH" ) func ImportanceTypeChoices() []string { - return []string{"LOW", "MEDIUM", "HIGH"} + return []string{"HIGH", "LOW", "MEDIUM"} } // PluginOut Kafka Connector plugin information @@ -350,14 +350,14 @@ func TaskStateTypeChoices() []string { type WidthType string const ( + WidthTypeLong WidthType = "LONG" + WidthTypeMedium WidthType = "MEDIUM" WidthTypeNone WidthType = "NONE" WidthTypeShort WidthType = "SHORT" - WidthTypeMedium WidthType = "MEDIUM" - WidthTypeLong WidthType = "LONG" ) func WidthTypeChoices() []string { - return []string{"NONE", "SHORT", "MEDIUM", "LONG"} + return []string{"LONG", "MEDIUM", "NONE", "SHORT"} } // serviceKafkaConnectCreateConnectorOut ServiceKafkaConnectCreateConnectorResponse diff --git a/handler/kafkatopic/kafkatopic.go b/handler/kafkatopic/kafkatopic.go index a21b892..2d6abcd 100644 --- a/handler/kafkatopic/kafkatopic.go +++ b/handler/kafkatopic/kafkatopic.go @@ -140,28 +140,28 @@ type CleanupPolicyOut struct { type CleanupPolicyType string const ( - CleanupPolicyTypeDelete CleanupPolicyType = "delete" CleanupPolicyTypeCompact CleanupPolicyType = "compact" CleanupPolicyTypeCompactDelete CleanupPolicyType = "compact,delete" + CleanupPolicyTypeDelete CleanupPolicyType = "delete" ) func CleanupPolicyTypeChoices() []string { - return []string{"delete", "compact", "compact,delete"} + return []string{"compact", "compact,delete", "delete"} } type CompressionType string const ( - CompressionTypeSnappy CompressionType = "snappy" CompressionTypeGzip CompressionType = "gzip" CompressionTypeLz4 CompressionType = "lz4" CompressionTypeProducer CompressionType = "producer" + CompressionTypeSnappy CompressionType = "snappy" CompressionTypeUncompressed CompressionType = "uncompressed" CompressionTypeZstd CompressionType = "zstd" ) func CompressionTypeChoices() []string { - return []string{"snappy", "gzip", "lz4", "producer", "uncompressed", "zstd"} + return []string{"gzip", "lz4", "producer", "snappy", "uncompressed", "zstd"} } // CompressionTypeOut compression.type value, source and synonyms @@ -177,16 +177,16 @@ type CompressionTypeOut struct { type CompressionTypeValue string const ( - CompressionTypeValueSnappy CompressionTypeValue = "snappy" CompressionTypeValueGzip CompressionTypeValue = "gzip" CompressionTypeValueLz4 CompressionTypeValue = "lz4" CompressionTypeValueProducer CompressionTypeValue = "producer" + CompressionTypeValueSnappy CompressionTypeValue = "snappy" CompressionTypeValueUncompressed CompressionTypeValue = "uncompressed" CompressionTypeValueZstd CompressionTypeValue = "zstd" ) func CompressionTypeValueChoices() []string { - return []string{"snappy", "gzip", "lz4", "producer", "uncompressed", "zstd"} + return []string{"gzip", "lz4", "producer", "snappy", "uncompressed", "zstd"} } // ConfigIn Kafka topic configuration @@ -301,15 +301,15 @@ type FlushMsOut struct { type FormatType string const ( + FormatTypeAvro FormatType = "avro" FormatTypeBinary FormatType = "binary" FormatTypeJson FormatType = "json" - FormatTypeAvro FormatType = "avro" - FormatTypeProtobuf FormatType = "protobuf" FormatTypeJsonschema FormatType = "jsonschema" + FormatTypeProtobuf FormatType = "protobuf" ) func FormatTypeChoices() []string { - return []string{"binary", "json", "avro", "protobuf", "jsonschema"} + return []string{"avro", "binary", "json", "jsonschema", "protobuf"} } // IndexIntervalBytesOut index.interval.bytes value, source and synonyms @@ -391,10 +391,6 @@ type MessageFormatVersionOut struct { type MessageFormatVersionType string const ( - MessageFormatVersionType080 MessageFormatVersionType = "0.8.0" - MessageFormatVersionType081 MessageFormatVersionType = "0.8.1" - MessageFormatVersionType082 MessageFormatVersionType = "0.8.2" - MessageFormatVersionType090 MessageFormatVersionType = "0.9.0" MessageFormatVersionType0100 MessageFormatVersionType = "0.10.0" MessageFormatVersionType0100Iv0 MessageFormatVersionType = "0.10.0-IV0" MessageFormatVersionType0100Iv1 MessageFormatVersionType = "0.10.0-IV1" @@ -408,6 +404,10 @@ const ( MessageFormatVersionType0110Iv0 MessageFormatVersionType = "0.11.0-IV0" MessageFormatVersionType0110Iv1 MessageFormatVersionType = "0.11.0-IV1" MessageFormatVersionType0110Iv2 MessageFormatVersionType = "0.11.0-IV2" + MessageFormatVersionType080 MessageFormatVersionType = "0.8.0" + MessageFormatVersionType081 MessageFormatVersionType = "0.8.1" + MessageFormatVersionType082 MessageFormatVersionType = "0.8.2" + MessageFormatVersionType090 MessageFormatVersionType = "0.9.0" MessageFormatVersionType10 MessageFormatVersionType = "1.0" MessageFormatVersionType10Iv0 MessageFormatVersionType = "1.0-IV0" MessageFormatVersionType11 MessageFormatVersionType = "1.1" @@ -475,7 +475,7 @@ const ( ) func MessageFormatVersionTypeChoices() []string { - return []string{"0.8.0", "0.8.1", "0.8.2", "0.9.0", "0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1"} + return []string{"0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1"} } type MessageOut struct { @@ -740,17 +740,17 @@ type ServiceKafkaTopicUpdateIn struct { type SourceType string const ( - SourceTypeUnknownConfig SourceType = "unknown_config" - SourceTypeTopicConfig SourceType = "topic_config" + SourceTypeDefaultConfig SourceType = "default_config" SourceTypeDynamicBrokerConfig SourceType = "dynamic_broker_config" + SourceTypeDynamicBrokerLoggerConfig SourceType = "dynamic_broker_logger_config" SourceTypeDynamicDefaultBrokerConfig SourceType = "dynamic_default_broker_config" SourceTypeStaticBrokerConfig SourceType = "static_broker_config" - SourceTypeDefaultConfig SourceType = "default_config" - SourceTypeDynamicBrokerLoggerConfig SourceType = "dynamic_broker_logger_config" + SourceTypeTopicConfig SourceType = "topic_config" + SourceTypeUnknownConfig SourceType = "unknown_config" ) func SourceTypeChoices() []string { - return []string{"unknown_config", "topic_config", "dynamic_broker_config", "dynamic_default_broker_config", "static_broker_config", "default_config", "dynamic_broker_logger_config"} + return []string{"default_config", "dynamic_broker_config", "dynamic_broker_logger_config", "dynamic_default_broker_config", "static_broker_config", "topic_config", "unknown_config"} } type TagIn struct { diff --git a/handler/opensearch/opensearch.go b/handler/opensearch/opensearch.go index e5b9deb..58bfcda 100644 --- a/handler/opensearch/opensearch.go +++ b/handler/opensearch/opensearch.go @@ -173,27 +173,27 @@ type AclOut struct { type ElasticsearchVersionType string const ( - ElasticsearchVersionType7 ElasticsearchVersionType = "7" ElasticsearchVersionType1 ElasticsearchVersionType = "1" ElasticsearchVersionType2 ElasticsearchVersionType = "2" + ElasticsearchVersionType7 ElasticsearchVersionType = "7" ) func ElasticsearchVersionTypeChoices() []string { - return []string{"7", "1", "2"} + return []string{"1", "2", "7"} } type HealthType string const ( HealthTypeGreen HealthType = "green" - HealthTypeYellow HealthType = "yellow" HealthTypeRed HealthType = "red" HealthTypeRedAsterisk HealthType = "red*" HealthTypeUnknown HealthType = "unknown" + HealthTypeYellow HealthType = "yellow" ) func HealthTypeChoices() []string { - return []string{"green", "yellow", "red", "red*", "unknown"} + return []string{"green", "red", "red*", "unknown", "yellow"} } type IndexeOut struct { @@ -211,14 +211,14 @@ type IndexeOut struct { type IndexeStatusType string const ( - IndexeStatusTypeUnknown IndexeStatusType = "unknown" - IndexeStatusTypeOpen IndexeStatusType = "open" IndexeStatusTypeClose IndexeStatusType = "close" IndexeStatusTypeNone IndexeStatusType = "none" + IndexeStatusTypeOpen IndexeStatusType = "open" + IndexeStatusTypeUnknown IndexeStatusType = "unknown" ) func IndexeStatusTypeChoices() []string { - return []string{"unknown", "open", "close", "none"} + return []string{"close", "none", "open", "unknown"} } // OpensearchAclConfigIn OpenSearch ACL configuration @@ -235,15 +235,15 @@ type OpensearchAclConfigOut struct { type PermissionType string const ( - PermissionTypeDeny PermissionType = "deny" PermissionTypeAdmin PermissionType = "admin" + PermissionTypeDeny PermissionType = "deny" PermissionTypeRead PermissionType = "read" PermissionTypeReadwrite PermissionType = "readwrite" PermissionTypeWrite PermissionType = "write" ) func PermissionTypeChoices() []string { - return []string{"deny", "admin", "read", "readwrite", "write"} + return []string{"admin", "deny", "read", "readwrite", "write"} } // ReplicationOut Index replication diff --git a/handler/organization/organization.go b/handler/organization/organization.go index 3de8596..effe5dd 100644 --- a/handler/organization/organization.go +++ b/handler/organization/organization.go @@ -327,13 +327,13 @@ func PrincipalTypeChoices() []string { type ResourceType string const ( - ResourceTypeProject ResourceType = "project" ResourceTypeOrganization ResourceType = "organization" ResourceTypeOrganizationUnit ResourceType = "organization_unit" + ResourceTypeProject ResourceType = "project" ) func ResourceTypeChoices() []string { - return []string{"project", "organization", "organization_unit"} + return []string{"organization", "organization_unit", "project"} } type TierType string diff --git a/handler/postgresql/postgresql.go b/handler/postgresql/postgresql.go index 96614af..2b918a2 100644 --- a/handler/postgresql/postgresql.go +++ b/handler/postgresql/postgresql.go @@ -128,12 +128,12 @@ type PoolModeType string const ( PoolModeTypeSession PoolModeType = "session" - PoolModeTypeTransaction PoolModeType = "transaction" PoolModeTypeStatement PoolModeType = "statement" + PoolModeTypeTransaction PoolModeType = "transaction" ) func PoolModeTypeChoices() []string { - return []string{"session", "transaction", "statement"} + return []string{"session", "statement", "transaction"} } type QueryOut struct { diff --git a/handler/privatelink/privatelink.go b/handler/privatelink/privatelink.go index 6e030bf..cd0262a 100644 --- a/handler/privatelink/privatelink.go +++ b/handler/privatelink/privatelink.go @@ -268,14 +268,14 @@ type ConnectionOut struct { type ConnectionStateType string const ( + ConnectionStateTypeActive ConnectionStateType = "active" + ConnectionStateTypeConnected ConnectionStateType = "connected" ConnectionStateTypePendingUserApproval ConnectionStateType = "pending-user-approval" ConnectionStateTypeUserApproved ConnectionStateType = "user-approved" - ConnectionStateTypeConnected ConnectionStateType = "connected" - ConnectionStateTypeActive ConnectionStateType = "active" ) func ConnectionStateTypeChoices() []string { - return []string{"pending-user-approval", "user-approved", "connected", "active"} + return []string{"active", "connected", "pending-user-approval", "user-approved"} } type PrivatelinkAvailabilityOut struct { @@ -298,13 +298,13 @@ type ServicePrivatelinkAwscreateOut struct { type ServicePrivatelinkAwscreateStateType string const ( - ServicePrivatelinkAwscreateStateTypeCreating ServicePrivatelinkAwscreateStateType = "creating" ServicePrivatelinkAwscreateStateTypeActive ServicePrivatelinkAwscreateStateType = "active" + ServicePrivatelinkAwscreateStateTypeCreating ServicePrivatelinkAwscreateStateType = "creating" ServicePrivatelinkAwscreateStateTypeDeleting ServicePrivatelinkAwscreateStateType = "deleting" ) func ServicePrivatelinkAwscreateStateTypeChoices() []string { - return []string{"creating", "active", "deleting"} + return []string{"active", "creating", "deleting"} } // ServicePrivatelinkAwsdeleteOut ServicePrivatelinkAWSDeleteResponse @@ -317,13 +317,13 @@ type ServicePrivatelinkAwsdeleteOut struct { type ServicePrivatelinkAwsdeleteStateType string const ( - ServicePrivatelinkAwsdeleteStateTypeCreating ServicePrivatelinkAwsdeleteStateType = "creating" ServicePrivatelinkAwsdeleteStateTypeActive ServicePrivatelinkAwsdeleteStateType = "active" + ServicePrivatelinkAwsdeleteStateTypeCreating ServicePrivatelinkAwsdeleteStateType = "creating" ServicePrivatelinkAwsdeleteStateTypeDeleting ServicePrivatelinkAwsdeleteStateType = "deleting" ) func ServicePrivatelinkAwsdeleteStateTypeChoices() []string { - return []string{"creating", "active", "deleting"} + return []string{"active", "creating", "deleting"} } // ServicePrivatelinkAwsgetOut ServicePrivatelinkAWSGetResponse @@ -336,13 +336,13 @@ type ServicePrivatelinkAwsgetOut struct { type ServicePrivatelinkAwsgetStateType string const ( - ServicePrivatelinkAwsgetStateTypeCreating ServicePrivatelinkAwsgetStateType = "creating" ServicePrivatelinkAwsgetStateTypeActive ServicePrivatelinkAwsgetStateType = "active" + ServicePrivatelinkAwsgetStateTypeCreating ServicePrivatelinkAwsgetStateType = "creating" ServicePrivatelinkAwsgetStateTypeDeleting ServicePrivatelinkAwsgetStateType = "deleting" ) func ServicePrivatelinkAwsgetStateTypeChoices() []string { - return []string{"creating", "active", "deleting"} + return []string{"active", "creating", "deleting"} } // ServicePrivatelinkAwsupdateIn ServicePrivatelinkAWSUpdateRequestBody @@ -360,13 +360,13 @@ type ServicePrivatelinkAwsupdateOut struct { type ServicePrivatelinkAwsupdateStateType string const ( - ServicePrivatelinkAwsupdateStateTypeCreating ServicePrivatelinkAwsupdateStateType = "creating" ServicePrivatelinkAwsupdateStateTypeActive ServicePrivatelinkAwsupdateStateType = "active" + ServicePrivatelinkAwsupdateStateTypeCreating ServicePrivatelinkAwsupdateStateType = "creating" ServicePrivatelinkAwsupdateStateTypeDeleting ServicePrivatelinkAwsupdateStateType = "deleting" ) func ServicePrivatelinkAwsupdateStateTypeChoices() []string { - return []string{"creating", "active", "deleting"} + return []string{"active", "creating", "deleting"} } // ServicePrivatelinkAzureConnectionApprovalOut ServicePrivatelinkAzureConnectionApprovalResponse @@ -379,14 +379,14 @@ type ServicePrivatelinkAzureConnectionApprovalOut struct { type ServicePrivatelinkAzureConnectionApprovalStateType string const ( + ServicePrivatelinkAzureConnectionApprovalStateTypeActive ServicePrivatelinkAzureConnectionApprovalStateType = "active" + ServicePrivatelinkAzureConnectionApprovalStateTypeConnected ServicePrivatelinkAzureConnectionApprovalStateType = "connected" ServicePrivatelinkAzureConnectionApprovalStateTypePendingUserApproval ServicePrivatelinkAzureConnectionApprovalStateType = "pending-user-approval" ServicePrivatelinkAzureConnectionApprovalStateTypeUserApproved ServicePrivatelinkAzureConnectionApprovalStateType = "user-approved" - ServicePrivatelinkAzureConnectionApprovalStateTypeConnected ServicePrivatelinkAzureConnectionApprovalStateType = "connected" - ServicePrivatelinkAzureConnectionApprovalStateTypeActive ServicePrivatelinkAzureConnectionApprovalStateType = "active" ) func ServicePrivatelinkAzureConnectionApprovalStateTypeChoices() []string { - return []string{"pending-user-approval", "user-approved", "connected", "active"} + return []string{"active", "connected", "pending-user-approval", "user-approved"} } type ServicePrivatelinkAzureConnectionListOut struct { @@ -398,14 +398,14 @@ type ServicePrivatelinkAzureConnectionListOut struct { type ServicePrivatelinkAzureConnectionStateType string const ( + ServicePrivatelinkAzureConnectionStateTypeActive ServicePrivatelinkAzureConnectionStateType = "active" + ServicePrivatelinkAzureConnectionStateTypeConnected ServicePrivatelinkAzureConnectionStateType = "connected" ServicePrivatelinkAzureConnectionStateTypePendingUserApproval ServicePrivatelinkAzureConnectionStateType = "pending-user-approval" ServicePrivatelinkAzureConnectionStateTypeUserApproved ServicePrivatelinkAzureConnectionStateType = "user-approved" - ServicePrivatelinkAzureConnectionStateTypeConnected ServicePrivatelinkAzureConnectionStateType = "connected" - ServicePrivatelinkAzureConnectionStateTypeActive ServicePrivatelinkAzureConnectionStateType = "active" ) func ServicePrivatelinkAzureConnectionStateTypeChoices() []string { - return []string{"pending-user-approval", "user-approved", "connected", "active"} + return []string{"active", "connected", "pending-user-approval", "user-approved"} } // ServicePrivatelinkAzureConnectionUpdateIn ServicePrivatelinkAzureConnectionUpdateRequestBody @@ -452,13 +452,13 @@ type ServicePrivatelinkAzureGetOut struct { type ServicePrivatelinkAzureStateType string const ( - ServicePrivatelinkAzureStateTypeCreating ServicePrivatelinkAzureStateType = "creating" ServicePrivatelinkAzureStateTypeActive ServicePrivatelinkAzureStateType = "active" + ServicePrivatelinkAzureStateTypeCreating ServicePrivatelinkAzureStateType = "creating" ServicePrivatelinkAzureStateTypeDeleting ServicePrivatelinkAzureStateType = "deleting" ) func ServicePrivatelinkAzureStateTypeChoices() []string { - return []string{"creating", "active", "deleting"} + return []string{"active", "creating", "deleting"} } // ServicePrivatelinkAzureUpdateIn ServicePrivatelinkAzureUpdateRequestBody diff --git a/handler/projectbilling/projectbilling.go b/handler/projectbilling/projectbilling.go index bce0c02..b3e1de6 100644 --- a/handler/projectbilling/projectbilling.go +++ b/handler/projectbilling/projectbilling.go @@ -197,7 +197,9 @@ const ( InvoiceStateTypeAccrual InvoiceStateType = "accrual" InvoiceStateTypeConsolidated InvoiceStateType = "consolidated" InvoiceStateTypeDue InvoiceStateType = "due" + InvoiceStateTypeDueOnlyProjectChargesCalculated InvoiceStateType = "due_only_project_charges_calculated" InvoiceStateTypeEstimate InvoiceStateType = "estimate" + InvoiceStateTypeEstimateOnlyProjectChargesCalculated InvoiceStateType = "estimate_only_project_charges_calculated" InvoiceStateTypeFailedCreditCardCharge InvoiceStateType = "failed_credit_card_charge" InvoiceStateTypeFailedNoCreditCard InvoiceStateType = "failed_no_credit_card" InvoiceStateTypeMailed InvoiceStateType = "mailed" @@ -206,12 +208,10 @@ const ( InvoiceStateTypePartnerMetering InvoiceStateType = "partner_metering" InvoiceStateTypeUncollectible InvoiceStateType = "uncollectible" InvoiceStateTypeWaived InvoiceStateType = "waived" - InvoiceStateTypeDueOnlyProjectChargesCalculated InvoiceStateType = "due_only_project_charges_calculated" - InvoiceStateTypeEstimateOnlyProjectChargesCalculated InvoiceStateType = "estimate_only_project_charges_calculated" ) func InvoiceStateTypeChoices() []string { - return []string{"accrual", "consolidated", "due", "estimate", "failed_credit_card_charge", "failed_no_credit_card", "mailed", "no_payment_expected", "paid", "partner_metering", "uncollectible", "waived", "due_only_project_charges_calculated", "estimate_only_project_charges_calculated"} + return []string{"accrual", "consolidated", "due", "due_only_project_charges_calculated", "estimate", "estimate_only_project_charges_calculated", "failed_credit_card_charge", "failed_no_credit_card", "mailed", "no_payment_expected", "paid", "partner_metering", "uncollectible", "waived"} } // ProjectCreditsClaimIn ProjectCreditsClaimRequestBody diff --git a/handler/service/service.go b/handler/service/service.go index 09c89eb..59ec9e4 100644 --- a/handler/service/service.go +++ b/handler/service/service.go @@ -884,13 +884,13 @@ type AlloydbomniOut struct { type AuthenticationType string const ( - AuthenticationTypeNull AuthenticationType = "null" AuthenticationTypeCachingSha2Password AuthenticationType = "caching_sha2_password" AuthenticationTypeMysqlNativePassword AuthenticationType = "mysql_native_password" + AuthenticationTypeNull AuthenticationType = "null" ) func AuthenticationTypeChoices() []string { - return []string{"null", "caching_sha2_password", "mysql_native_password"} + return []string{"caching_sha2_password", "mysql_native_password", "null"} } // BackupConfigOut Backup configuration for this service plan @@ -1043,17 +1043,17 @@ type DbOut struct { type DowType string const ( - DowTypeMonday DowType = "monday" - DowTypeTuesday DowType = "tuesday" - DowTypeWednesday DowType = "wednesday" - DowTypeThursday DowType = "thursday" DowTypeFriday DowType = "friday" + DowTypeMonday DowType = "monday" DowTypeSaturday DowType = "saturday" DowTypeSunday DowType = "sunday" + DowTypeThursday DowType = "thursday" + DowTypeTuesday DowType = "tuesday" + DowTypeWednesday DowType = "wednesday" ) func DowTypeChoices() []string { - return []string{"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"} + return []string{"friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday"} } // DragonflyOut Service type information @@ -1281,12 +1281,12 @@ type KafkaOut struct { type KafkaSslCaType string const ( - KafkaSslCaTypeProjectCa KafkaSslCaType = "project_ca" KafkaSslCaTypeLetsencrypt KafkaSslCaType = "letsencrypt" + KafkaSslCaTypeProjectCa KafkaSslCaType = "project_ca" ) func KafkaSslCaTypeChoices() []string { - return []string{"project_ca", "letsencrypt"} + return []string{"letsencrypt", "project_ca"} } type LevelType string @@ -1303,15 +1303,15 @@ func LevelTypeChoices() []string { type LikelyErrorCauseType string const ( - LikelyErrorCauseTypeNull LikelyErrorCauseType = "null" LikelyErrorCauseTypeDestination LikelyErrorCauseType = "destination" LikelyErrorCauseTypeIntegration LikelyErrorCauseType = "integration" + LikelyErrorCauseTypeNull LikelyErrorCauseType = "null" LikelyErrorCauseTypeSource LikelyErrorCauseType = "source" LikelyErrorCauseTypeUnknown LikelyErrorCauseType = "unknown" ) func LikelyErrorCauseTypeChoices() []string { - return []string{"null", "destination", "integration", "source", "unknown"} + return []string{"destination", "integration", "null", "source", "unknown"} } // ListProjectServiceTypesOut Service plans by service type @@ -1367,18 +1367,18 @@ type LogOut struct { type MaintenanceDowType string const ( - MaintenanceDowTypeMonday MaintenanceDowType = "monday" - MaintenanceDowTypeTuesday MaintenanceDowType = "tuesday" - MaintenanceDowTypeWednesday MaintenanceDowType = "wednesday" - MaintenanceDowTypeThursday MaintenanceDowType = "thursday" MaintenanceDowTypeFriday MaintenanceDowType = "friday" + MaintenanceDowTypeMonday MaintenanceDowType = "monday" + MaintenanceDowTypeNever MaintenanceDowType = "never" MaintenanceDowTypeSaturday MaintenanceDowType = "saturday" MaintenanceDowTypeSunday MaintenanceDowType = "sunday" - MaintenanceDowTypeNever MaintenanceDowType = "never" + MaintenanceDowTypeThursday MaintenanceDowType = "thursday" + MaintenanceDowTypeTuesday MaintenanceDowType = "tuesday" + MaintenanceDowTypeWednesday MaintenanceDowType = "wednesday" ) func MaintenanceDowTypeChoices() []string { - return []string{"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "never"} + return []string{"friday", "monday", "never", "saturday", "sunday", "thursday", "tuesday", "wednesday"} } // MaintenanceIn Automatic maintenance settings @@ -1396,12 +1396,12 @@ type MaintenanceOut struct { type MasterLinkStatusType string const ( - MasterLinkStatusTypeUp MasterLinkStatusType = "up" MasterLinkStatusTypeDown MasterLinkStatusType = "down" + MasterLinkStatusTypeUp MasterLinkStatusType = "up" ) func MasterLinkStatusTypeChoices() []string { - return []string{"up", "down"} + return []string{"down", "up"} } // MetadataOut Notification metadata @@ -1570,15 +1570,15 @@ func PatternTypeChoices() []string { type PeriodType string const ( - PeriodTypeHour PeriodType = "hour" PeriodTypeDay PeriodType = "day" - PeriodTypeWeek PeriodType = "week" + PeriodTypeHour PeriodType = "hour" PeriodTypeMonth PeriodType = "month" + PeriodTypeWeek PeriodType = "week" PeriodTypeYear PeriodType = "year" ) func PeriodTypeChoices() []string { - return []string{"hour", "day", "week", "month", "year"} + return []string{"day", "hour", "month", "week", "year"} } type PermissionType string @@ -1613,14 +1613,14 @@ type PgParamOut struct { type PhaseType string const ( - PhaseTypePrepare PhaseType = "prepare" PhaseTypeBasebackup PhaseType = "basebackup" - PhaseTypeStream PhaseType = "stream" PhaseTypeFinalize PhaseType = "finalize" + PhaseTypePrepare PhaseType = "prepare" + PhaseTypeStream PhaseType = "stream" ) func PhaseTypeChoices() []string { - return []string{"prepare", "basebackup", "stream", "finalize"} + return []string{"basebackup", "finalize", "prepare", "stream"} } type PitrAdditionalRegionOut struct { @@ -1639,12 +1639,12 @@ type PoolModeType string const ( PoolModeTypeSession PoolModeType = "session" - PoolModeTypeTransaction PoolModeType = "transaction" PoolModeTypeStatement PoolModeType = "statement" + PoolModeTypeTransaction PoolModeType = "transaction" ) func PoolModeTypeChoices() []string { - return []string{"session", "transaction", "statement"} + return []string{"session", "statement", "transaction"} } // PrimaryRegionOut Point-in-time-recovery metadata related to the primary backup location of the service. @@ -1767,25 +1767,25 @@ type RoleType string const ( RoleTypeMaster RoleType = "master" - RoleTypeStandby RoleType = "standby" RoleTypeReadReplica RoleType = "read-replica" + RoleTypeStandby RoleType = "standby" ) func RoleTypeChoices() []string { - return []string{"master", "standby", "read-replica"} + return []string{"master", "read-replica", "standby"} } type RouteType string const ( RouteTypeDynamic RouteType = "dynamic" - RouteTypePublic RouteType = "public" RouteTypePrivate RouteType = "private" RouteTypePrivatelink RouteType = "privatelink" + RouteTypePublic RouteType = "public" ) func RouteTypeChoices() []string { - return []string{"dynamic", "public", "private", "privatelink"} + return []string{"dynamic", "private", "privatelink", "public"} } type SchemaRegistryAclOut struct { @@ -2452,12 +2452,12 @@ type ShardOut struct { type SortOrderType string const ( - SortOrderTypeDesc SortOrderType = "desc" SortOrderTypeAsc SortOrderType = "asc" + SortOrderTypeDesc SortOrderType = "desc" ) func SortOrderTypeChoices() []string { - return []string{"desc", "asc"} + return []string{"asc", "desc"} } // StateOut Service integration state @@ -2484,14 +2484,14 @@ func TargetVersionTypeChoices() []string { type TaskType string const ( - TaskTypeUpgradeCheck TaskType = "upgrade_check" - TaskTypeMigrationCheck TaskType = "migration_check" - TaskTypeDatasetImport TaskType = "dataset_import" TaskTypeCreateUserBackup TaskType = "create_user_backup" + TaskTypeDatasetImport TaskType = "dataset_import" + TaskTypeMigrationCheck TaskType = "migration_check" + TaskTypeUpgradeCheck TaskType = "upgrade_check" ) func TaskTypeChoices() []string { - return []string{"upgrade_check", "migration_check", "dataset_import", "create_user_backup"} + return []string{"create_user_backup", "dataset_import", "migration_check", "upgrade_check"} } type TechEmailIn struct { diff --git a/handler/staticip/staticip.go b/handler/staticip/staticip.go index c8328c0..a8e3cbc 100644 --- a/handler/staticip/staticip.go +++ b/handler/staticip/staticip.go @@ -168,16 +168,16 @@ type ProjectStaticIpassociateOut struct { type ProjectStaticIpassociateStateType string const ( - ProjectStaticIpassociateStateTypeCreating ProjectStaticIpassociateStateType = "creating" - ProjectStaticIpassociateStateTypeCreated ProjectStaticIpassociateStateType = "created" - ProjectStaticIpassociateStateTypeAvailable ProjectStaticIpassociateStateType = "available" ProjectStaticIpassociateStateTypeAssigned ProjectStaticIpassociateStateType = "assigned" - ProjectStaticIpassociateStateTypeDeleting ProjectStaticIpassociateStateType = "deleting" + ProjectStaticIpassociateStateTypeAvailable ProjectStaticIpassociateStateType = "available" + ProjectStaticIpassociateStateTypeCreated ProjectStaticIpassociateStateType = "created" + ProjectStaticIpassociateStateTypeCreating ProjectStaticIpassociateStateType = "creating" ProjectStaticIpassociateStateTypeDeleted ProjectStaticIpassociateStateType = "deleted" + ProjectStaticIpassociateStateTypeDeleting ProjectStaticIpassociateStateType = "deleting" ) func ProjectStaticIpassociateStateTypeChoices() []string { - return []string{"creating", "created", "available", "assigned", "deleting", "deleted"} + return []string{"assigned", "available", "created", "creating", "deleted", "deleting"} } // ProjectStaticIpdissociateOut ProjectStaticIPDissociateResponse @@ -192,16 +192,16 @@ type ProjectStaticIpdissociateOut struct { type ProjectStaticIpdissociateStateType string const ( - ProjectStaticIpdissociateStateTypeCreating ProjectStaticIpdissociateStateType = "creating" - ProjectStaticIpdissociateStateTypeCreated ProjectStaticIpdissociateStateType = "created" - ProjectStaticIpdissociateStateTypeAvailable ProjectStaticIpdissociateStateType = "available" ProjectStaticIpdissociateStateTypeAssigned ProjectStaticIpdissociateStateType = "assigned" - ProjectStaticIpdissociateStateTypeDeleting ProjectStaticIpdissociateStateType = "deleting" + ProjectStaticIpdissociateStateTypeAvailable ProjectStaticIpdissociateStateType = "available" + ProjectStaticIpdissociateStateTypeCreated ProjectStaticIpdissociateStateType = "created" + ProjectStaticIpdissociateStateTypeCreating ProjectStaticIpdissociateStateType = "creating" ProjectStaticIpdissociateStateTypeDeleted ProjectStaticIpdissociateStateType = "deleted" + ProjectStaticIpdissociateStateTypeDeleting ProjectStaticIpdissociateStateType = "deleting" ) func ProjectStaticIpdissociateStateTypeChoices() []string { - return []string{"creating", "created", "available", "assigned", "deleting", "deleted"} + return []string{"assigned", "available", "created", "creating", "deleted", "deleting"} } // ProjectStaticIppatchIn ProjectStaticIPPatchRequestBody @@ -221,16 +221,16 @@ type ProjectStaticIppatchOut struct { type ProjectStaticIppatchStateType string const ( - ProjectStaticIppatchStateTypeCreating ProjectStaticIppatchStateType = "creating" - ProjectStaticIppatchStateTypeCreated ProjectStaticIppatchStateType = "created" - ProjectStaticIppatchStateTypeAvailable ProjectStaticIppatchStateType = "available" ProjectStaticIppatchStateTypeAssigned ProjectStaticIppatchStateType = "assigned" - ProjectStaticIppatchStateTypeDeleting ProjectStaticIppatchStateType = "deleting" + ProjectStaticIppatchStateTypeAvailable ProjectStaticIppatchStateType = "available" + ProjectStaticIppatchStateTypeCreated ProjectStaticIppatchStateType = "created" + ProjectStaticIppatchStateTypeCreating ProjectStaticIppatchStateType = "creating" ProjectStaticIppatchStateTypeDeleted ProjectStaticIppatchStateType = "deleted" + ProjectStaticIppatchStateTypeDeleting ProjectStaticIppatchStateType = "deleting" ) func ProjectStaticIppatchStateTypeChoices() []string { - return []string{"creating", "created", "available", "assigned", "deleting", "deleted"} + return []string{"assigned", "available", "created", "creating", "deleted", "deleting"} } type StaticIpAddressAvailabilityOut struct { @@ -248,16 +248,16 @@ type StaticIpOut struct { type StaticIpStateType string const ( - StaticIpStateTypeCreating StaticIpStateType = "creating" - StaticIpStateTypeCreated StaticIpStateType = "created" - StaticIpStateTypeAvailable StaticIpStateType = "available" StaticIpStateTypeAssigned StaticIpStateType = "assigned" - StaticIpStateTypeDeleting StaticIpStateType = "deleting" + StaticIpStateTypeAvailable StaticIpStateType = "available" + StaticIpStateTypeCreated StaticIpStateType = "created" + StaticIpStateTypeCreating StaticIpStateType = "creating" StaticIpStateTypeDeleted StaticIpStateType = "deleted" + StaticIpStateTypeDeleting StaticIpStateType = "deleting" ) func StaticIpStateTypeChoices() []string { - return []string{"creating", "created", "available", "assigned", "deleting", "deleted"} + return []string{"assigned", "available", "created", "creating", "deleted", "deleting"} } // StaticIpcreateIn StaticIPCreateRequestBody @@ -278,16 +278,16 @@ type StaticIpcreateOut struct { type StaticIpcreateStateType string const ( - StaticIpcreateStateTypeCreating StaticIpcreateStateType = "creating" - StaticIpcreateStateTypeCreated StaticIpcreateStateType = "created" - StaticIpcreateStateTypeAvailable StaticIpcreateStateType = "available" StaticIpcreateStateTypeAssigned StaticIpcreateStateType = "assigned" - StaticIpcreateStateTypeDeleting StaticIpcreateStateType = "deleting" + StaticIpcreateStateTypeAvailable StaticIpcreateStateType = "available" + StaticIpcreateStateTypeCreated StaticIpcreateStateType = "created" + StaticIpcreateStateTypeCreating StaticIpcreateStateType = "creating" StaticIpcreateStateTypeDeleted StaticIpcreateStateType = "deleted" + StaticIpcreateStateTypeDeleting StaticIpcreateStateType = "deleting" ) func StaticIpcreateStateTypeChoices() []string { - return []string{"creating", "created", "available", "assigned", "deleting", "deleted"} + return []string{"assigned", "available", "created", "creating", "deleted", "deleting"} } // projectStaticIpavailabilityListOut ProjectStaticIPAvailabilityListResponse diff --git a/handler/user/user.go b/handler/user/user.go index f62fdb6..aac868b 100644 --- a/handler/user/user.go +++ b/handler/user/user.go @@ -613,12 +613,12 @@ type InvitationOut struct { type MethodType string const ( - MethodTypePost MethodType = "POST" MethodTypeGet MethodType = "GET" + MethodTypePost MethodType = "POST" ) func MethodTypeChoices() []string { - return []string{"POST", "GET"} + return []string{"GET", "POST"} } // ProjectMembershipOut Project membership and type of membership