diff --git a/handler/accountauthentication/accountauthentication.go b/handler/accountauthentication/accountauthentication.go index 023e259..81f2bc1 100644 --- a/handler/accountauthentication/accountauthentication.go +++ b/handler/accountauthentication/accountauthentication.go @@ -159,6 +159,7 @@ type AccountAuthenticationMethodCreateOut struct { SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` // SAMLFieldMapping SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` // Set to 'true' to enable IdP initiated login SamlIdpUrl *string `json:"saml_idp_url,omitempty"` // Saml Idp Url + SamlJoinGroups *bool `json:"saml_join_groups,omitempty"` // SAML join groups enabled SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` // Saml Metadata Url SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` // Set to 'false' to disable RequestedAuthnContext SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` // SAMLSignatureAlgorithm @@ -198,6 +199,7 @@ type AccountAuthenticationMethodGetOut struct { SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` // SAMLFieldMapping SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` // Set to 'true' to enable IdP initiated login SamlIdpUrl *string `json:"saml_idp_url,omitempty"` // Saml Idp Url + SamlJoinGroups *bool `json:"saml_join_groups,omitempty"` // SAML join groups enabled SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` // Saml Metadata Url SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` // Set to 'false' to disable RequestedAuthnContext SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` // SAMLSignatureAlgorithm @@ -259,6 +261,7 @@ type AccountAuthenticationMethodUpdateOut struct { SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` // SAMLFieldMapping SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` // Set to 'true' to enable IdP initiated login SamlIdpUrl *string `json:"saml_idp_url,omitempty"` // Saml Idp Url + SamlJoinGroups *bool `json:"saml_join_groups,omitempty"` // SAML join groups enabled SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` // Saml Metadata Url SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` // Set to 'false' to disable RequestedAuthnContext SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` // SAMLSignatureAlgorithm @@ -296,6 +299,7 @@ type AuthenticationMethodOut struct { SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` // SAMLFieldMapping SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` // Set to 'true' to enable IdP initiated login SamlIdpUrl *string `json:"saml_idp_url,omitempty"` // Saml Idp Url + SamlJoinGroups *bool `json:"saml_join_groups,omitempty"` // SAML join groups enabled SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` // Saml Metadata Url SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` // Set to 'false' to disable RequestedAuthnContext SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` // SAMLSignatureAlgorithm diff --git a/handler/billinggroup/billinggroup.go b/handler/billinggroup/billinggroup.go index 33b3d98..1f6c0ca 100644 --- a/handler/billinggroup/billinggroup.go +++ b/handler/billinggroup/billinggroup.go @@ -600,6 +600,7 @@ type ServiceType string const ( ServiceTypeAlertmanager ServiceType = "alertmanager" + ServiceTypeAlloydbomni ServiceType = "alloydbomni" ServiceTypeCassandra ServiceType = "cassandra" ServiceTypeClickhouse ServiceType = "clickhouse" ServiceTypeDragonfly ServiceType = "dragonfly" @@ -632,7 +633,7 @@ const ( ) func ServiceTypeChoices() []string { - return []string{"alertmanager", "cassandra", "clickhouse", "dragonfly", "elasticsearch", "flink", "grafana", "influxdb", "kafka", "kafka_connect", "kafka_mirrormaker", "m3aggregator", "m3db", "mysql", "opensearch", "parca", "pg", "redis", "stresstester", "sw", "thanos", "thanoscompactor", "thanosquery", "thanosreceiver", "thanosruler", "thanosstore", "valkey", "vector", "vmalert", "warpstream"} + return []string{"alertmanager", "alloydbomni", "cassandra", "clickhouse", "dragonfly", "elasticsearch", "flink", "grafana", "influxdb", "kafka", "kafka_connect", "kafka_mirrormaker", "m3aggregator", "m3db", "mysql", "opensearch", "parca", "pg", "redis", "stresstester", "sw", "thanos", "thanoscompactor", "thanosquery", "thanosreceiver", "thanosruler", "thanosstore", "valkey", "vector", "vmalert", "warpstream"} } // billingGroupCreateOut BillingGroupCreateResponse diff --git a/handler/project/project.go b/handler/project/project.go index 81b9600..fb58754 100644 --- a/handler/project/project.go +++ b/handler/project/project.go @@ -436,6 +436,14 @@ type AlertOut struct { ServiceType *string `json:"service_type,omitempty"` // Service type code Severity string `json:"severity"` // Severity of the event } + +// AlloydbomniOut Service type information +type AlloydbomniOut struct { + DefaultVersion *string `json:"default_version,omitempty"` // Default version of the service if no explicit version is defined + Description string `json:"description"` // Single line description of the service + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` // Latest available version of the service + UserConfigSchema map[string]any `json:"user_config_schema"` // JSON-Schema for the 'user_config' properties +} type AnyType string const ( @@ -849,6 +857,7 @@ type ProjectServiceTypesListElasticsearchOut struct { // ProjectServiceTypesListOut ProjectServiceTypesListResponse type ProjectServiceTypesListOut struct { + Alloydbomni *AlloydbomniOut `json:"alloydbomni,omitempty"` // Service type information Cassandra *CassandraOut `json:"cassandra,omitempty"` // Service type information Clickhouse *ClickhouseOut `json:"clickhouse,omitempty"` // Service type information Dragonfly *DragonflyOut `json:"dragonfly,omitempty"` // Service type information diff --git a/handler/service/service.go b/handler/service/service.go index 82550d7..b71d128 100644 --- a/handler/service/service.go +++ b/handler/service/service.go @@ -887,6 +887,15 @@ type AlertOut struct { ServiceType *string `json:"service_type,omitempty"` // Service type code Severity string `json:"severity"` // Severity of the event } + +// AlloydbomniOut Service type information +type AlloydbomniOut struct { + DefaultVersion *string `json:"default_version,omitempty"` // Default version of the service if no explicit version is defined + Description string `json:"description"` // Single line description of the service + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` // Latest available version of the service + ServicePlans []ServicePlanOut `json:"service_plans"` // List of plans available for this type of service + UserConfigSchema map[string]any `json:"user_config_schema"` // JSON-Schema for the 'user_config' properties +} type AuthenticationType string const ( @@ -1285,6 +1294,7 @@ func LikelyErrorCauseTypeChoices() []string { // ListProjectServiceTypesOut Service plans by service type type ListProjectServiceTypesOut struct { + Alloydbomni *AlloydbomniOut `json:"alloydbomni,omitempty"` // Service type information Cassandra *CassandraOut `json:"cassandra,omitempty"` // Service type information Clickhouse *ClickhouseOut `json:"clickhouse,omitempty"` // Service type information Dragonfly *DragonflyOut `json:"dragonfly,omitempty"` // Service type information @@ -1306,6 +1316,7 @@ type ListProjectServiceTypesOut struct { // ListPublicServiceTypesOut Service plans by service type type ListPublicServiceTypesOut struct { + Alloydbomni *AlloydbomniOut `json:"alloydbomni,omitempty"` // Service type information Cassandra *CassandraOut `json:"cassandra,omitempty"` // Service type information Clickhouse *ClickhouseOut `json:"clickhouse,omitempty"` // Service type information Dragonfly *DragonflyOut `json:"dragonfly,omitempty"` // Service type information @@ -1730,7 +1741,7 @@ type ServiceCancelQueryIn struct { type ServiceCreateIn struct { Cloud *string `json:"cloud,omitempty"` // Target cloud CopyTags *bool `json:"copy_tags,omitempty"` // If this is a forked service, copy tags from the source service. If request contains additional tags, the tags copied from source are updated with them. - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage GroupName *string `json:"group_name,omitempty"` // Service group name (DEPRECATED: do not use) Maintenance *MaintenanceIn `json:"maintenance,omitempty"` // Automatic maintenance settings Plan string `json:"plan"` // Subscription plan @@ -1756,7 +1767,7 @@ type ServiceCreateOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -1809,7 +1820,7 @@ type ServiceGetOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2030,7 +2041,7 @@ type ServiceOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2118,7 +2129,7 @@ type ServiceTaskGetOut struct { // ServiceUpdateIn ServiceUpdateRequestBody type ServiceUpdateIn struct { Cloud *string `json:"cloud,omitempty"` // Target cloud - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage GroupName *string `json:"group_name,omitempty"` // Service group name (DEPRECATED: do not use) Karapace *bool `json:"karapace,omitempty"` // Switch the service to use Karapace for schema registry and REST proxy Maintenance *MaintenanceIn `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2142,7 +2153,7 @@ type ServiceUpdateOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2210,7 +2221,7 @@ type ServiceUserCredentialsModifyOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2250,7 +2261,7 @@ type ServiceUserCredentialsResetOut struct { ConnectionPools []ConnectionPoolOut `json:"connection_pools,omitempty"` // PostgreSQL PGBouncer connection pools CreateTime time.Time `json:"create_time"` // Service creation timestamp (ISO 8601) Databases []string `json:"databases,omitempty"` // List of service's user database names - DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage + DiskSpaceMb *int `json:"disk_space_mb,omitempty"` // Megabytes of disk space for data storage Features map[string]any `json:"features,omitempty"` // Feature flags GroupList []string `json:"group_list"` // List of service groups the service belongs to. This field is deprecated. It is always set to single element with value 'default' Maintenance *MaintenanceOut `json:"maintenance,omitempty"` // Automatic maintenance settings @@ -2420,12 +2431,13 @@ type UpdateOut struct { type UsageType string const ( - UsageTypePrimary UsageType = "primary" - UsageTypeReplica UsageType = "replica" + UsageTypeDisasterRecovery UsageType = "disaster_recovery" + UsageTypePrimary UsageType = "primary" + UsageTypeReplica UsageType = "replica" ) func UsageTypeChoices() []string { - return []string{"primary", "replica"} + return []string{"disaster_recovery", "primary", "replica"} } type UserOut struct {