From 120a16c56c0f6482ef79b49cb7725a9d5d9c51b5 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Mon, 18 Mar 2024 12:32:32 +0100 Subject: [PATCH] refactor: use string pointers --- generator/models.go | 2 +- handler/account/account.go | 56 ++-- .../accountauthentication.go | 146 +++++----- handler/accountteam/accountteam.go | 6 +- handler/billinggroup/billinggroup.go | 92 +++--- handler/clickhouse/clickhouse.go | 12 +- handler/cloud/cloud.go | 6 +- handler/flink/flink.go | 18 +- handler/flinkapplication/flinkapplication.go | 36 +-- .../flinkapplicationdeployment.go | 56 ++-- .../flinkapplicationversion.go | 40 +-- handler/flinkjob/flinkjob.go | 6 +- handler/kafka/kafka.go | 18 +- handler/kafkaconnect/kafkaconnect.go | 14 +- handler/kafkamirrormaker/kafkamirrormaker.go | 23 +- .../kafkaschemaregistry.go | 2 +- handler/kafkatopic/kafkatopic.go | 18 +- handler/mysql/mysql.go | 22 +- handler/opensearch/opensearch.go | 6 +- handler/organization/organization.go | 32 +-- handler/organizationuser/organizationuser.go | 34 +-- handler/postgresql/postgresql.go | 20 +- handler/privatelink/privatelink.go | 40 +-- handler/project/project.go | 132 ++++----- handler/projectbilling/projectbilling.go | 12 +- handler/service/service.go | 264 +++++++++--------- .../serviceintegration/serviceintegration.go | 55 ++-- handler/serviceuser/serviceuser.go | 74 ++--- handler/user/user.go | 123 ++++---- handler/usergroup/usergroup.go | 18 +- handler/vpc/vpc.go | 48 ++-- 31 files changed, 725 insertions(+), 706 deletions(-) diff --git a/generator/models.go b/generator/models.go index 8c63121..c28504b 100644 --- a/generator/models.go +++ b/generator/models.go @@ -348,7 +348,7 @@ func getType(s *Schema) *jen.Statement { if s.isScalar() { scalar := getScalarType(s) - if !s.required && s.Type != SchemaTypeString { + if !s.required { return jen.Op("*").Add(scalar) } diff --git a/handler/account/account.go b/handler/account/account.go index 7b906dc..3036b7a 100644 --- a/handler/account/account.go +++ b/handler/account/account.go @@ -285,14 +285,14 @@ type AccountAttachPaymentMethodOut struct { ExpYear int `json:"exp_year"` Last4 string `json:"last4"` Name string `json:"name"` - OrganizationId string `json:"organization_id,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` Projects []string `json:"projects"` } type AccountBillingGroupOut struct { AccountId string `json:"account_id"` AccountName string `json:"account_name"` AddressLines []string `json:"address_lines"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency"` BillingEmails []BillingEmailOut `json:"billing_emails"` BillingExtraText string `json:"billing_extra_text"` @@ -311,9 +311,9 @@ type AccountBillingGroupOut struct { ZipCode string `json:"zip_code"` } type AccountCreateIn struct { - AccountName string `json:"account_name"` - ParentAccountId string `json:"parent_account_id,omitempty"` - PrimaryBillingGroupId string `json:"primary_billing_group_id,omitempty"` + AccountName string `json:"account_name"` + ParentAccountId *string `json:"parent_account_id,omitempty"` + PrimaryBillingGroupId *string `json:"primary_billing_group_id,omitempty"` } type AccountCreateOut struct { AccessSource AccessSourceType `json:"access_source,omitempty"` @@ -325,10 +325,10 @@ type AccountCreateOut struct { IsAccountMember *bool `json:"is_account_member,omitempty"` IsAccountOwner bool `json:"is_account_owner"` OrganizationId string `json:"organization_id"` - ParentAccountId string `json:"parent_account_id,omitempty"` + ParentAccountId *string `json:"parent_account_id,omitempty"` PrimaryBillingGroupId string `json:"primary_billing_group_id"` RootAccountId string `json:"root_account_id"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` UpdateTime time.Time `json:"update_time"` } type AccountGetOut struct { @@ -341,10 +341,10 @@ type AccountGetOut struct { IsAccountMember *bool `json:"is_account_member,omitempty"` IsAccountOwner bool `json:"is_account_owner"` OrganizationId string `json:"organization_id"` - ParentAccountId string `json:"parent_account_id,omitempty"` + ParentAccountId *string `json:"parent_account_id,omitempty"` PrimaryBillingGroupId string `json:"primary_billing_group_id"` RootAccountId string `json:"root_account_id"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` UpdateTime time.Time `json:"update_time"` } type AccountMoveIn struct { @@ -360,10 +360,10 @@ type AccountMoveOut struct { IsAccountMember *bool `json:"is_account_member,omitempty"` IsAccountOwner bool `json:"is_account_owner"` OrganizationId string `json:"organization_id"` - ParentAccountId string `json:"parent_account_id,omitempty"` + ParentAccountId *string `json:"parent_account_id,omitempty"` PrimaryBillingGroupId string `json:"primary_billing_group_id"` RootAccountId string `json:"root_account_id"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` UpdateTime time.Time `json:"update_time"` } type AccountOut struct { @@ -376,10 +376,10 @@ type AccountOut struct { IsAccountMember *bool `json:"is_account_member,omitempty"` IsAccountOwner bool `json:"is_account_owner"` OrganizationId string `json:"organization_id"` - ParentAccountId string `json:"parent_account_id,omitempty"` + ParentAccountId *string `json:"parent_account_id,omitempty"` PrimaryBillingGroupId string `json:"primary_billing_group_id"` RootAccountId string `json:"root_account_id"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` UpdateTime time.Time `json:"update_time"` } type AccountProjectsListOut struct { @@ -387,8 +387,8 @@ type AccountProjectsListOut struct { TotalProjectCount *int `json:"total_project_count,omitempty"` } type AccountUpdateIn struct { - AccountName string `json:"account_name,omitempty"` - PrimaryBillingGroupId string `json:"primary_billing_group_id,omitempty"` + AccountName *string `json:"account_name,omitempty"` + PrimaryBillingGroupId *string `json:"primary_billing_group_id,omitempty"` } type AccountUpdateOut struct { AccessSource AccessSourceType `json:"access_source,omitempty"` @@ -400,16 +400,16 @@ type AccountUpdateOut struct { IsAccountMember *bool `json:"is_account_member,omitempty"` IsAccountOwner bool `json:"is_account_owner"` OrganizationId string `json:"organization_id"` - ParentAccountId string `json:"parent_account_id,omitempty"` + ParentAccountId *string `json:"parent_account_id,omitempty"` PrimaryBillingGroupId string `json:"primary_billing_group_id"` RootAccountId string `json:"root_account_id"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` UpdateTime time.Time `json:"update_time"` } type AccountUsersSearchIn struct { Limit *int `json:"limit,omitempty"` OrderBy OrderByType `json:"order_by,omitempty"` - Query string `json:"query,omitempty"` + Query *string `json:"query,omitempty"` } type BillingCurrencyType string @@ -518,35 +518,35 @@ func PaymentMethodTypeChoices() []string { type ProjectOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type TechEmailOut struct { Email string `json:"email"` @@ -557,7 +557,7 @@ type UserOut struct { UserId string `json:"user_id"` } type UserProjectOut struct { - AccessType string `json:"access_type,omitempty"` + AccessType *string `json:"access_type,omitempty"` AccountId string `json:"account_id"` CreateTime time.Time `json:"create_time"` MemberType MemberType `json:"member_type"` diff --git a/handler/accountauthentication/accountauthentication.go b/handler/accountauthentication/accountauthentication.go index 28c7fd8..9a4a0ba 100644 --- a/handler/accountauthentication/accountauthentication.go +++ b/handler/accountauthentication/accountauthentication.go @@ -111,17 +111,17 @@ type AccountAuthenticationMethodCreateIn struct { AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodName string `json:"authentication_method_name"` AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"` - AutoJoinTeamId string `json:"auto_join_team_id,omitempty"` - AutoJoinUserGroupId string `json:"auto_join_user_group_id,omitempty"` + AutoJoinTeamId *string `json:"auto_join_team_id,omitempty"` + AutoJoinUserGroupId *string `json:"auto_join_user_group_id,omitempty"` LinkedDomains *[]LinkedDomainIn `json:"linked_domains,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingIn `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` @@ -133,34 +133,34 @@ type AccountAuthenticationMethodCreateOut struct { AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodEnabled bool `json:"authentication_method_enabled"` AuthenticationMethodId string `json:"authentication_method_id"` - AuthenticationMethodName string `json:"authentication_method_name,omitempty"` + AuthenticationMethodName *string `json:"authentication_method_name,omitempty"` AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"` AutoJoinTeamId string `json:"auto_join_team_id"` AutoJoinUserGroupId string `json:"auto_join_user_group_id"` CreateTime time.Time `json:"create_time"` DeleteTime time.Time `json:"delete_time"` - OrganizationId string `json:"organization_id,omitempty"` - SamlAcsUrl string `json:"saml_acs_url,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + SamlAcsUrl *string `json:"saml_acs_url,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` SamlCert SamlCertType `json:"saml_cert,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` - SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"` - SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"` - SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"` - SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` + SamlCertificateIssuer *string `json:"saml_certificate_issuer,omitempty"` + SamlCertificateNotValidAfter *string `json:"saml_certificate_not_valid_after,omitempty"` + SamlCertificateNotValidBefore *string `json:"saml_certificate_not_valid_before,omitempty"` + SamlCertificateSubject *string `json:"saml_certificate_subject,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` - SamlMetadataUrl string `json:"saml_metadata_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` + SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` - SamlSpCertificate string `json:"saml_sp_certificate,omitempty"` + SamlSpCertificate *string `json:"saml_sp_certificate,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` ScimEnabled *bool `json:"scim_enabled,omitempty"` - ScimUrl string `json:"scim_url,omitempty"` + ScimUrl *string `json:"scim_url,omitempty"` State AuthenticationMethodStateType `json:"state"` UpdateTime time.Time `json:"update_time"` } @@ -170,34 +170,34 @@ type AccountAuthenticationMethodGetOut struct { AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodEnabled bool `json:"authentication_method_enabled"` AuthenticationMethodId string `json:"authentication_method_id"` - AuthenticationMethodName string `json:"authentication_method_name,omitempty"` + AuthenticationMethodName *string `json:"authentication_method_name,omitempty"` AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"` AutoJoinTeamId string `json:"auto_join_team_id"` AutoJoinUserGroupId string `json:"auto_join_user_group_id"` CreateTime time.Time `json:"create_time"` DeleteTime time.Time `json:"delete_time"` - OrganizationId string `json:"organization_id,omitempty"` - SamlAcsUrl string `json:"saml_acs_url,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + SamlAcsUrl *string `json:"saml_acs_url,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` SamlCert SamlCertType `json:"saml_cert,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` - SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"` - SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"` - SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"` - SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` + SamlCertificateIssuer *string `json:"saml_certificate_issuer,omitempty"` + SamlCertificateNotValidAfter *string `json:"saml_certificate_not_valid_after,omitempty"` + SamlCertificateNotValidBefore *string `json:"saml_certificate_not_valid_before,omitempty"` + SamlCertificateSubject *string `json:"saml_certificate_subject,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` - SamlMetadataUrl string `json:"saml_metadata_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` + SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` - SamlSpCertificate string `json:"saml_sp_certificate,omitempty"` + SamlSpCertificate *string `json:"saml_sp_certificate,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` ScimEnabled *bool `json:"scim_enabled,omitempty"` - ScimUrl string `json:"scim_url,omitempty"` + ScimUrl *string `json:"scim_url,omitempty"` State AuthenticationMethodStateType `json:"state"` UpdateTime time.Time `json:"update_time"` } @@ -205,17 +205,17 @@ type AccountAuthenticationMethodUpdateIn struct { AuthTokenExtendWhenUsed *bool `json:"auth_token_extend_when_used,omitempty"` AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodEnabled *bool `json:"authentication_method_enabled,omitempty"` - AuthenticationMethodName string `json:"authentication_method_name,omitempty"` - AutoJoinTeamId string `json:"auto_join_team_id,omitempty"` - AutoJoinUserGroupId string `json:"auto_join_user_group_id,omitempty"` + AuthenticationMethodName *string `json:"authentication_method_name,omitempty"` + AutoJoinTeamId *string `json:"auto_join_team_id,omitempty"` + AutoJoinUserGroupId *string `json:"auto_join_user_group_id,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingIn `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` @@ -227,34 +227,34 @@ type AccountAuthenticationMethodUpdateOut struct { AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodEnabled bool `json:"authentication_method_enabled"` AuthenticationMethodId string `json:"authentication_method_id"` - AuthenticationMethodName string `json:"authentication_method_name,omitempty"` + AuthenticationMethodName *string `json:"authentication_method_name,omitempty"` AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"` AutoJoinTeamId string `json:"auto_join_team_id"` AutoJoinUserGroupId string `json:"auto_join_user_group_id"` CreateTime time.Time `json:"create_time"` DeleteTime time.Time `json:"delete_time"` - OrganizationId string `json:"organization_id,omitempty"` - SamlAcsUrl string `json:"saml_acs_url,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + SamlAcsUrl *string `json:"saml_acs_url,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` SamlCert SamlCertType `json:"saml_cert,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` - SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"` - SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"` - SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"` - SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` + SamlCertificateIssuer *string `json:"saml_certificate_issuer,omitempty"` + SamlCertificateNotValidAfter *string `json:"saml_certificate_not_valid_after,omitempty"` + SamlCertificateNotValidBefore *string `json:"saml_certificate_not_valid_before,omitempty"` + SamlCertificateSubject *string `json:"saml_certificate_subject,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` - SamlMetadataUrl string `json:"saml_metadata_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` + SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` - SamlSpCertificate string `json:"saml_sp_certificate,omitempty"` + SamlSpCertificate *string `json:"saml_sp_certificate,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` ScimEnabled *bool `json:"scim_enabled,omitempty"` - ScimUrl string `json:"scim_url,omitempty"` + ScimUrl *string `json:"scim_url,omitempty"` State AuthenticationMethodStateType `json:"state"` UpdateTime time.Time `json:"update_time"` } @@ -264,34 +264,34 @@ type AuthenticationMethodOut struct { AuthTokenMaxAgeSeconds *int `json:"auth_token_max_age_seconds,omitempty"` AuthenticationMethodEnabled bool `json:"authentication_method_enabled"` AuthenticationMethodId string `json:"authentication_method_id"` - AuthenticationMethodName string `json:"authentication_method_name,omitempty"` + AuthenticationMethodName *string `json:"authentication_method_name,omitempty"` AuthenticationMethodType AuthenticationMethodType `json:"authentication_method_type"` AutoJoinTeamId string `json:"auto_join_team_id"` AutoJoinUserGroupId string `json:"auto_join_user_group_id"` CreateTime time.Time `json:"create_time"` DeleteTime time.Time `json:"delete_time"` - OrganizationId string `json:"organization_id,omitempty"` - SamlAcsUrl string `json:"saml_acs_url,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + SamlAcsUrl *string `json:"saml_acs_url,omitempty"` SamlAssertionSignedEnabled *bool `json:"saml_assertion_signed_enabled,omitempty"` SamlAuthnRequestsSignedEnabled *bool `json:"saml_authn_requests_signed_enabled,omitempty"` SamlCert SamlCertType `json:"saml_cert,omitempty"` - SamlCertificate string `json:"saml_certificate,omitempty"` - SamlCertificateIssuer string `json:"saml_certificate_issuer,omitempty"` - SamlCertificateNotValidAfter string `json:"saml_certificate_not_valid_after,omitempty"` - SamlCertificateNotValidBefore string `json:"saml_certificate_not_valid_before,omitempty"` - SamlCertificateSubject string `json:"saml_certificate_subject,omitempty"` + SamlCertificate *string `json:"saml_certificate,omitempty"` + SamlCertificateIssuer *string `json:"saml_certificate_issuer,omitempty"` + SamlCertificateNotValidAfter *string `json:"saml_certificate_not_valid_after,omitempty"` + SamlCertificateNotValidBefore *string `json:"saml_certificate_not_valid_before,omitempty"` + SamlCertificateSubject *string `json:"saml_certificate_subject,omitempty"` SamlDigestAlgorithm SamlDigestAlgorithmType `json:"saml_digest_algorithm,omitempty"` - SamlEntityId string `json:"saml_entity_id,omitempty"` + SamlEntityId *string `json:"saml_entity_id,omitempty"` SamlFieldMapping *SamlFieldMappingOut `json:"saml_field_mapping,omitempty"` SamlIdpLoginAllowed *bool `json:"saml_idp_login_allowed,omitempty"` - SamlIdpUrl string `json:"saml_idp_url,omitempty"` - SamlMetadataUrl string `json:"saml_metadata_url,omitempty"` + SamlIdpUrl *string `json:"saml_idp_url,omitempty"` + SamlMetadataUrl *string `json:"saml_metadata_url,omitempty"` SamlRequestedAuthnContextEnabled *bool `json:"saml_requested_authn_context_enabled,omitempty"` SamlSignatureAlgorithm SamlSignatureAlgorithmType `json:"saml_signature_algorithm,omitempty"` - SamlSpCertificate string `json:"saml_sp_certificate,omitempty"` + SamlSpCertificate *string `json:"saml_sp_certificate,omitempty"` SamlVariant SamlVariantType `json:"saml_variant,omitempty"` ScimEnabled *bool `json:"scim_enabled,omitempty"` - ScimUrl string `json:"scim_url,omitempty"` + ScimUrl *string `json:"scim_url,omitempty"` State AuthenticationMethodStateType `json:"state"` UpdateTime time.Time `json:"update_time"` } @@ -345,18 +345,18 @@ func SamlDigestAlgorithmTypeChoices() []string { } type SamlFieldMappingIn struct { - Email string `json:"email,omitempty"` - FirstName string `json:"first_name,omitempty"` - Identity string `json:"identity,omitempty"` - LastName string `json:"last_name,omitempty"` - RealName string `json:"real_name,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + Identity *string `json:"identity,omitempty"` + LastName *string `json:"last_name,omitempty"` + RealName *string `json:"real_name,omitempty"` } type SamlFieldMappingOut struct { - Email string `json:"email,omitempty"` - FirstName string `json:"first_name,omitempty"` - Identity string `json:"identity,omitempty"` - LastName string `json:"last_name,omitempty"` - RealName string `json:"real_name,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + Identity *string `json:"identity,omitempty"` + LastName *string `json:"last_name,omitempty"` + RealName *string `json:"real_name,omitempty"` } type SamlSignatureAlgorithmType string diff --git a/handler/accountteam/accountteam.go b/handler/accountteam/accountteam.go index 100efa2..ca20b00 100644 --- a/handler/accountteam/accountteam.go +++ b/handler/accountteam/accountteam.go @@ -136,7 +136,7 @@ type AccountInviteOut struct { UserEmail string `json:"user_email"` } type AccountTeamGetOut struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` TeamId string `json:"team_id"` TeamName string `json:"team_name"` @@ -149,14 +149,14 @@ type AccountTeamUpdateIn struct { TeamName string `json:"team_name"` } type AccountTeamUpdateOut struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` TeamId string `json:"team_id"` TeamName string `json:"team_name"` UpdateTime *time.Time `json:"update_time,omitempty"` } type TeamOut struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` TeamId string `json:"team_id"` TeamName string `json:"team_name"` diff --git a/handler/billinggroup/billinggroup.go b/handler/billinggroup/billinggroup.go index 5b9decb..f6ed054 100644 --- a/handler/billinggroup/billinggroup.go +++ b/handler/billinggroup/billinggroup.go @@ -262,26 +262,26 @@ type BillingEmailOut struct { Email string `json:"email"` } type BillingGroupCreateIn struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AddressLines *[]string `json:"address_lines,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails *[]BillingEmailIn `json:"billing_emails,omitempty"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupName string `json:"billing_group_name"` - CardId string `json:"card_id,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` - CopyFromBillingGroup string `json:"copy_from_billing_group,omitempty"` - CountryCode string `json:"country_code,omitempty"` - State string `json:"state,omitempty"` - VatId string `json:"vat_id,omitempty"` - ZipCode string `json:"zip_code,omitempty"` + CardId *string `json:"card_id,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` + CopyFromBillingGroup *string `json:"copy_from_billing_group,omitempty"` + CountryCode *string `json:"country_code,omitempty"` + State *string `json:"state,omitempty"` + VatId *string `json:"vat_id,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type BillingGroupCreateOut struct { AccountId string `json:"account_id"` AccountName string `json:"account_name"` AddressLines []string `json:"address_lines"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency"` BillingEmails []BillingEmailOut `json:"billing_emails"` BillingExtraText string `json:"billing_extra_text"` @@ -303,18 +303,18 @@ type BillingGroupCreditsClaimIn struct { Code string `json:"code"` } type BillingGroupCreditsClaimOut struct { - Code string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` ExpireTime *time.Time `json:"expire_time,omitempty"` - RemainingValue string `json:"remaining_value,omitempty"` + RemainingValue *string `json:"remaining_value,omitempty"` StartTime *time.Time `json:"start_time,omitempty"` Type CreditType `json:"type,omitempty"` - Value string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` } type BillingGroupGetOut struct { AccountId string `json:"account_id"` AccountName string `json:"account_name"` AddressLines []string `json:"address_lines"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency"` BillingEmails []BillingEmailOut `json:"billing_emails"` BillingExtraText string `json:"billing_extra_text"` @@ -336,7 +336,7 @@ type BillingGroupOut struct { AccountId string `json:"account_id"` AccountName string `json:"account_name"` AddressLines []string `json:"address_lines"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency"` BillingEmails []BillingEmailOut `json:"billing_emails"` BillingExtraText string `json:"billing_extra_text"` @@ -369,25 +369,25 @@ func BillingGroupStateTypeChoices() []string { } type BillingGroupUpdateIn struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AddressLines *[]string `json:"address_lines,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails *[]BillingEmailIn `json:"billing_emails,omitempty"` - BillingExtraText string `json:"billing_extra_text,omitempty"` - BillingGroupName string `json:"billing_group_name,omitempty"` - CardId string `json:"card_id,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` - CountryCode string `json:"country_code,omitempty"` - State string `json:"state,omitempty"` - VatId string `json:"vat_id,omitempty"` - ZipCode string `json:"zip_code,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` + BillingGroupName *string `json:"billing_group_name,omitempty"` + CardId *string `json:"card_id,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` + CountryCode *string `json:"country_code,omitempty"` + State *string `json:"state,omitempty"` + VatId *string `json:"vat_id,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type BillingGroupUpdateOut struct { AccountId string `json:"account_id"` AccountName string `json:"account_name"` AddressLines []string `json:"address_lines"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency"` BillingEmails []BillingEmailOut `json:"billing_emails"` BillingExtraText string `json:"billing_extra_text"` @@ -417,12 +417,12 @@ type CardInfoOut struct { UserEmail string `json:"user_email"` } type CreditOut struct { - Code string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` ExpireTime *time.Time `json:"expire_time,omitempty"` - RemainingValue string `json:"remaining_value,omitempty"` + RemainingValue *string `json:"remaining_value,omitempty"` StartTime *time.Time `json:"start_time,omitempty"` Type CreditType `json:"type,omitempty"` - Value string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` } type CreditType string @@ -468,14 +468,14 @@ func CurrencyTypeChoices() []string { } type EventOut struct { - Actor string `json:"actor,omitempty"` - BillingGroupId string `json:"billing_group_id,omitempty"` + Actor *string `json:"actor,omitempty"` + BillingGroupId *string `json:"billing_group_id,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` - EventDesc string `json:"event_desc,omitempty"` - EventType string `json:"event_type,omitempty"` + EventDesc *string `json:"event_desc,omitempty"` + EventType *string `json:"event_type,omitempty"` LogEntryId *int `json:"log_entry_id,omitempty"` - ProjectId string `json:"project_id,omitempty"` - ProjectName string `json:"project_name,omitempty"` + ProjectId *string `json:"project_id,omitempty"` + ProjectName *string `json:"project_name,omitempty"` } type InvoiceOut struct { BillingGroupId string `json:"billing_group_id"` @@ -513,21 +513,21 @@ func InvoiceStateTypeChoices() []string { } type LineOut struct { - CloudName string `json:"cloud_name,omitempty"` - CommitmentName string `json:"commitment_name,omitempty"` + CloudName *string `json:"cloud_name,omitempty"` + CommitmentName *string `json:"commitment_name,omitempty"` Description string `json:"description"` - LinePreDiscountLocal string `json:"line_pre_discount_local,omitempty"` - LineTotalLocal string `json:"line_total_local,omitempty"` + LinePreDiscountLocal *string `json:"line_pre_discount_local,omitempty"` + LineTotalLocal *string `json:"line_total_local,omitempty"` LineTotalUsd string `json:"line_total_usd"` LineType LineType `json:"line_type"` - LocalCurrency string `json:"local_currency,omitempty"` - ProjectName string `json:"project_name,omitempty"` - ServiceName string `json:"service_name,omitempty"` - ServicePlan string `json:"service_plan,omitempty"` + LocalCurrency *string `json:"local_currency,omitempty"` + ProjectName *string `json:"project_name,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + ServicePlan *string `json:"service_plan,omitempty"` ServiceType ServiceType `json:"service_type,omitempty"` Tags map[string]string `json:"tags,omitempty"` - TimestampBegin string `json:"timestamp_begin,omitempty"` - TimestampEnd string `json:"timestamp_end,omitempty"` + TimestampBegin *string `json:"timestamp_begin,omitempty"` + TimestampEnd *string `json:"timestamp_end,omitempty"` } type LineType string diff --git a/handler/clickhouse/clickhouse.go b/handler/clickhouse/clickhouse.go index 62ffed3..0375eff 100644 --- a/handler/clickhouse/clickhouse.go +++ b/handler/clickhouse/clickhouse.go @@ -80,18 +80,18 @@ func (h *ClickHouseHandler) ServiceClickHouseTieredStorageSummary(ctx context.Co } type HourlyOut struct { - EstimatedCost string `json:"estimated_cost,omitempty"` - HourStart string `json:"hour_start"` - PeakStoredBytes int `json:"peak_stored_bytes"` + EstimatedCost *string `json:"estimated_cost,omitempty"` + HourStart string `json:"hour_start"` + PeakStoredBytes int `json:"peak_stored_bytes"` } type QueryOut struct { Calls *int `json:"calls,omitempty"` - Database string `json:"database,omitempty"` + Database *string `json:"database,omitempty"` MaxTime *int `json:"max_time,omitempty"` MeanTime *int `json:"mean_time,omitempty"` MinTime *int `json:"min_time,omitempty"` P95Time *int `json:"p95_time,omitempty"` - Query string `json:"query,omitempty"` + Query *string `json:"query,omitempty"` Rows *float64 `json:"rows,omitempty"` StddevTime *int `json:"stddev_time,omitempty"` TotalTime *int `json:"total_time,omitempty"` @@ -102,7 +102,7 @@ type ServiceClickHouseDatabaseCreateIn struct { type ServiceClickHouseTieredStorageSummaryOut struct { CurrentCost string `json:"current_cost"` ForecastedCost string `json:"forecasted_cost"` - ForecastedRate string `json:"forecasted_rate,omitempty"` + ForecastedRate *string `json:"forecasted_rate,omitempty"` StorageUsageHistory StorageUsageHistoryOut `json:"storage_usage_history"` TotalStorageUsage int `json:"total_storage_usage"` } diff --git a/handler/cloud/cloud.go b/handler/cloud/cloud.go index ae37b37..6c03c66 100644 --- a/handler/cloud/cloud.go +++ b/handler/cloud/cloud.go @@ -60,13 +60,13 @@ func (h *CloudHandler) ListProjectClouds(ctx context.Context, project string) ([ } type CloudOut struct { - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` GeoLatitude *float64 `json:"geo_latitude,omitempty"` GeoLongitude *float64 `json:"geo_longitude,omitempty"` GeoRegion string `json:"geo_region"` - Provider string `json:"provider,omitempty"` - ProviderDescription string `json:"provider_description,omitempty"` + Provider *string `json:"provider,omitempty"` + ProviderDescription *string `json:"provider_description,omitempty"` } type listCloudsOut struct { Clouds []CloudOut `json:"clouds"` diff --git a/handler/flink/flink.go b/handler/flink/flink.go index 5055ef2..278e76e 100644 --- a/handler/flink/flink.go +++ b/handler/flink/flink.go @@ -42,13 +42,13 @@ func (h *FlinkHandler) ServiceFlinkOverview(ctx context.Context, project string, } type ServiceFlinkOverviewOut struct { - FlinkCommit string `json:"flink-commit,omitempty"` - FlinkVersion string `json:"flink-version,omitempty"` - JobsCancelled *int `json:"jobs-cancelled,omitempty"` - JobsFailed *int `json:"jobs-failed,omitempty"` - JobsFinished *int `json:"jobs-finished,omitempty"` - JobsRunning *int `json:"jobs-running,omitempty"` - SlotsAvailable *int `json:"slots-available,omitempty"` - SlotsTotal *int `json:"slots-total,omitempty"` - Taskmanagers *int `json:"taskmanagers,omitempty"` + FlinkCommit *string `json:"flink-commit,omitempty"` + FlinkVersion *string `json:"flink-version,omitempty"` + JobsCancelled *int `json:"jobs-cancelled,omitempty"` + JobsFailed *int `json:"jobs-failed,omitempty"` + JobsFinished *int `json:"jobs-finished,omitempty"` + JobsRunning *int `json:"jobs-running,omitempty"` + SlotsAvailable *int `json:"slots-available,omitempty"` + SlotsTotal *int `json:"slots-total,omitempty"` + Taskmanagers *int `json:"taskmanagers,omitempty"` } diff --git a/handler/flinkapplication/flinkapplication.go b/handler/flinkapplication/flinkapplication.go index 058c523..0200920 100644 --- a/handler/flinkapplication/flinkapplication.go +++ b/handler/flinkapplication/flinkapplication.go @@ -116,11 +116,11 @@ func (h *FlinkApplicationHandler) ServiceFlinkUpdateApplication(ctx context.Cont type ApplicationOut struct { CreatedAt *time.Time `json:"created_at,omitempty"` - CreatedBy string `json:"created_by,omitempty"` + CreatedBy *string `json:"created_by,omitempty"` Id string `json:"id"` Name string `json:"name"` UpdatedAt *time.Time `json:"updated_at,omitempty"` - UpdatedBy string `json:"updated_by,omitempty"` + UpdatedBy *string `json:"updated_by,omitempty"` } type ApplicationVersionIn struct { Sinks []SinkIn `json:"sinks"` @@ -137,23 +137,23 @@ type ApplicationVersionOut struct { Version int `json:"version"` } type ColumnOut struct { - DataType string `json:"data_type"` - Extras string `json:"extras,omitempty"` - Key string `json:"key,omitempty"` - Name string `json:"name"` - Nullable bool `json:"nullable"` - Watermark string `json:"watermark,omitempty"` + DataType string `json:"data_type"` + Extras *string `json:"extras,omitempty"` + Key *string `json:"key,omitempty"` + Name string `json:"name"` + Nullable bool `json:"nullable"` + Watermark *string `json:"watermark,omitempty"` } type CurrentDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status CurrentDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } @@ -231,25 +231,25 @@ type ServiceFlinkUpdateApplicationOut struct { UpdatedBy string `json:"updated_by"` } type SinkIn struct { - CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + CreateTable string `json:"create_table"` + IntegrationId *string `json:"integration_id,omitempty"` } type SinkOut struct { Columns []ColumnOut `json:"columns"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` Options map[string]any `json:"options"` TableId string `json:"table_id"` TableName string `json:"table_name"` } type SourceIn struct { - CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + CreateTable string `json:"create_table"` + IntegrationId *string `json:"integration_id,omitempty"` } type SourceOut struct { Columns []ColumnOut `json:"columns"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` Options map[string]any `json:"options"` TableId string `json:"table_id"` TableName string `json:"table_name"` diff --git a/handler/flinkapplicationdeployment/flinkapplicationdeployment.go b/handler/flinkapplicationdeployment/flinkapplicationdeployment.go index 1e45ad5..3f7e467 100644 --- a/handler/flinkapplicationdeployment/flinkapplicationdeployment.go +++ b/handler/flinkapplicationdeployment/flinkapplicationdeployment.go @@ -135,13 +135,13 @@ func (h *FlinkApplicationDeploymentHandler) ServiceFlinkStopApplicationDeploymen type DeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status DeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } @@ -200,71 +200,71 @@ func ServiceFlinkApplicationDeploymentStatusTypeChoices() []string { type ServiceFlinkCancelApplicationDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status ServiceFlinkApplicationDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } type ServiceFlinkCreateApplicationDeploymentIn struct { - Parallelism *int `json:"parallelism,omitempty"` - RestartEnabled *bool `json:"restart_enabled,omitempty"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` - VersionId string `json:"version_id"` + Parallelism *int `json:"parallelism,omitempty"` + RestartEnabled *bool `json:"restart_enabled,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` + VersionId string `json:"version_id"` } type ServiceFlinkCreateApplicationDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status ServiceFlinkApplicationDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } type ServiceFlinkDeleteApplicationDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status ServiceFlinkApplicationDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } type ServiceFlinkGetApplicationDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status ServiceFlinkApplicationDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } type ServiceFlinkStopApplicationDeploymentOut struct { CreatedAt time.Time `json:"created_at"` CreatedBy string `json:"created_by"` - ErrorMsg string `json:"error_msg,omitempty"` + ErrorMsg *string `json:"error_msg,omitempty"` Id string `json:"id"` - JobId string `json:"job_id,omitempty"` - LastSavepoint string `json:"last_savepoint,omitempty"` + JobId *string `json:"job_id,omitempty"` + LastSavepoint *string `json:"last_savepoint,omitempty"` Parallelism int `json:"parallelism"` RestartEnabled bool `json:"restart_enabled"` - StartingSavepoint string `json:"starting_savepoint,omitempty"` + StartingSavepoint *string `json:"starting_savepoint,omitempty"` Status ServiceFlinkApplicationDeploymentStatusType `json:"status"` VersionId string `json:"version_id"` } diff --git a/handler/flinkapplicationversion/flinkapplicationversion.go b/handler/flinkapplicationversion/flinkapplicationversion.go index f4a52dc..c446ab5 100644 --- a/handler/flinkapplicationversion/flinkapplicationversion.go +++ b/handler/flinkapplicationversion/flinkapplicationversion.go @@ -97,12 +97,12 @@ func (h *FlinkApplicationVersionHandler) ServiceFlinkValidateApplicationVersion( } type ColumnOut struct { - DataType string `json:"data_type"` - Extras string `json:"extras,omitempty"` - Key string `json:"key,omitempty"` - Name string `json:"name"` - Nullable bool `json:"nullable"` - Watermark string `json:"watermark,omitempty"` + DataType string `json:"data_type"` + Extras *string `json:"extras,omitempty"` + Key *string `json:"key,omitempty"` + Name string `json:"name"` + Nullable bool `json:"nullable"` + Watermark *string `json:"watermark,omitempty"` } type PositionOut struct { CharacterNumber int `json:"character_number"` @@ -145,22 +145,22 @@ type ServiceFlinkGetApplicationVersionOut struct { type ServiceFlinkValidateApplicationVersionIn struct { Sinks []SinkIn `json:"sinks"` Sources []SourceIn `json:"sources"` - Statement string `json:"statement,omitempty"` + Statement *string `json:"statement,omitempty"` } type ServiceFlinkValidateApplicationVersionOut struct { Sinks []SinkOutAlt `json:"sinks"` Sources []SourceOutAlt `json:"sources"` - Statement string `json:"statement,omitempty"` + Statement *string `json:"statement,omitempty"` StatementError *StatementErrorOut `json:"statement_error,omitempty"` } type SinkIn struct { - CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + CreateTable string `json:"create_table"` + IntegrationId *string `json:"integration_id,omitempty"` } type SinkOut struct { Columns []ColumnOut `json:"columns"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` Options map[string]any `json:"options"` TableId string `json:"table_id"` TableName string `json:"table_name"` @@ -168,20 +168,20 @@ type SinkOut struct { type SinkOutAlt struct { Columns []ColumnOut `json:"columns,omitempty"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` - Message string `json:"message,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` + Message *string `json:"message,omitempty"` Options map[string]any `json:"options,omitempty"` Position *PositionOut `json:"position,omitempty"` - TableName string `json:"table_name,omitempty"` + TableName *string `json:"table_name,omitempty"` } type SourceIn struct { - CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + CreateTable string `json:"create_table"` + IntegrationId *string `json:"integration_id,omitempty"` } type SourceOut struct { Columns []ColumnOut `json:"columns"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` Options map[string]any `json:"options"` TableId string `json:"table_id"` TableName string `json:"table_name"` @@ -189,11 +189,11 @@ type SourceOut struct { type SourceOutAlt struct { Columns []ColumnOut `json:"columns,omitempty"` CreateTable string `json:"create_table"` - IntegrationId string `json:"integration_id,omitempty"` - Message string `json:"message,omitempty"` + IntegrationId *string `json:"integration_id,omitempty"` + Message *string `json:"message,omitempty"` Options map[string]any `json:"options,omitempty"` Position *PositionOut `json:"position,omitempty"` - TableName string `json:"table_name,omitempty"` + TableName *string `json:"table_name,omitempty"` } type StatementErrorOut struct { Message string `json:"message"` diff --git a/handler/flinkjob/flinkjob.go b/handler/flinkjob/flinkjob.go index faa9a8e..eab785a 100644 --- a/handler/flinkjob/flinkjob.go +++ b/handler/flinkjob/flinkjob.go @@ -60,7 +60,7 @@ func (h *FlinkJobHandler) ServiceFlinkJobsList(ctx context.Context, project stri } type JobOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Status JobStatusType `json:"status,omitempty"` } type JobStatusType string @@ -87,9 +87,9 @@ type ServiceFlinkJobDetailsOut struct { Duration *int `json:"duration,omitempty"` EndTime *int `json:"end-time,omitempty"` IsStoppable *bool `json:"isStoppable,omitempty"` - Jid string `json:"jid,omitempty"` + Jid *string `json:"jid,omitempty"` MaxParallelism *int `json:"maxParallelism,omitempty"` - Name string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Now *int `json:"now,omitempty"` Plan map[string]any `json:"plan,omitempty"` StartTime *int `json:"start-time,omitempty"` diff --git a/handler/kafka/kafka.go b/handler/kafka/kafka.go index 7195b1c..79c956a 100644 --- a/handler/kafka/kafka.go +++ b/handler/kafka/kafka.go @@ -188,15 +188,15 @@ func (h *KafkaHandler) ServiceKafkaTieredStorageSummary(ctx context.Context, pro } type AclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionType `json:"permission"` Topic string `json:"topic"` Username string `json:"username"` } type HourlyOut struct { - EstimatedCost string `json:"estimated_cost,omitempty"` - HourStart string `json:"hour_start"` - PeakStoredBytes int `json:"peak_stored_bytes"` + EstimatedCost *string `json:"estimated_cost,omitempty"` + HourStart string `json:"hour_start"` + PeakStoredBytes int `json:"peak_stored_bytes"` } type PermissionType string @@ -212,7 +212,7 @@ func PermissionTypeChoices() []string { } type QuotaOut struct { - ClientId string `json:"client-id,omitempty"` + ClientId *string `json:"client-id,omitempty"` ConsumerByteRate float64 `json:"consumer_byte_rate"` ProducerByteRate float64 `json:"producer_byte_rate"` RequestPercentage float64 `json:"request_percentage"` @@ -224,14 +224,14 @@ type ServiceKafkaAclAddIn struct { Username string `json:"username"` } type ServiceKafkaQuotaCreateIn struct { - ClientId string `json:"client-id,omitempty"` + ClientId *string `json:"client-id,omitempty"` ConsumerByteRate *float64 `json:"consumer_byte_rate,omitempty"` ProducerByteRate *float64 `json:"producer_byte_rate,omitempty"` RequestPercentage *float64 `json:"request_percentage,omitempty"` - User string `json:"user,omitempty"` + User *string `json:"user,omitempty"` } type ServiceKafkaQuotaDescribeOut struct { - ClientId string `json:"client-id,omitempty"` + ClientId *string `json:"client-id,omitempty"` ConsumerByteRate float64 `json:"consumer_byte_rate"` ProducerByteRate float64 `json:"producer_byte_rate"` RequestPercentage float64 `json:"request_percentage"` @@ -240,7 +240,7 @@ type ServiceKafkaQuotaDescribeOut struct { type ServiceKafkaTieredStorageSummaryOut struct { CurrentCost string `json:"current_cost"` ForecastedCost string `json:"forecasted_cost"` - ForecastedRate string `json:"forecasted_rate,omitempty"` + ForecastedRate *string `json:"forecasted_rate,omitempty"` StorageUsageHistory StorageUsageHistoryOut `json:"storage_usage_history"` TotalStorageUsage int `json:"total_storage_usage"` } diff --git a/handler/kafkaconnect/kafkaconnect.go b/handler/kafkaconnect/kafkaconnect.go index f01569b..2bafc76 100644 --- a/handler/kafkaconnect/kafkaconnect.go +++ b/handler/kafkaconnect/kafkaconnect.go @@ -182,8 +182,8 @@ func (h *KafkaConnectHandler) ServiceKafkaConnectResumeConnector(ctx context.Con } type ConfigOut struct { - ConnectorClass string `json:"connector.class,omitempty"` - Name string `json:"name"` + ConnectorClass *string `json:"connector.class,omitempty"` + Name string `json:"name"` } type ConfigurationSchemaOut struct { DefaultValue string `json:"default_value"` @@ -238,7 +238,7 @@ type PluginOut struct { Class string `json:"class"` DocUrl string `json:"docURL"` Preview *bool `json:"preview,omitempty"` - PreviewInfo string `json:"preview_info,omitempty"` + PreviewInfo *string `json:"preview_info,omitempty"` Title string `json:"title"` Type PluginType `json:"type"` Version string `json:"version"` @@ -269,8 +269,8 @@ func ServiceKafkaConnectConnectorStateTypeChoices() []string { } type ServiceKafkaConnectCreateConnectorIn struct { - ConnectorClass string `json:"connector.class,omitempty"` - Name string `json:"name"` + ConnectorClass *string `json:"connector.class,omitempty"` + Name string `json:"name"` } type ServiceKafkaConnectCreateConnectorOut struct { Config ConfigOut `json:"config"` @@ -279,8 +279,8 @@ type ServiceKafkaConnectCreateConnectorOut struct { Tasks []TaskOut `json:"tasks"` } type ServiceKafkaConnectEditConnectorIn struct { - ConnectorClass string `json:"connector.class,omitempty"` - Name string `json:"name"` + ConnectorClass *string `json:"connector.class,omitempty"` + Name string `json:"name"` } type ServiceKafkaConnectEditConnectorOut struct { Config ConfigOut `json:"config"` diff --git a/handler/kafkamirrormaker/kafkamirrormaker.go b/handler/kafkamirrormaker/kafkamirrormaker.go index fb3f7b8..4dc7bdf 100644 --- a/handler/kafkamirrormaker/kafkamirrormaker.go +++ b/handler/kafkamirrormaker/kafkamirrormaker.go @@ -109,19 +109,20 @@ func OffsetSyncsTopicLocationTypeChoices() []string { } type ReplicationFlowOut struct { - ConfigPropertiesExclude string `json:"config_properties_exclude,omitempty"` + ConfigPropertiesExclude *string `json:"config_properties_exclude,omitempty"` EmitBackwardHeartbeatsEnabled *bool `json:"emit_backward_heartbeats_enabled,omitempty"` EmitHeartbeatsEnabled *bool `json:"emit_heartbeats_enabled,omitempty"` Enabled bool `json:"enabled"` OffsetLagMax *int `json:"offset_lag_max,omitempty"` OffsetSyncsTopicLocation OffsetSyncsTopicLocationType `json:"offset_syncs_topic_location,omitempty"` ReplicationPolicyClass ReplicationPolicyClassType `json:"replication_policy_class,omitempty"` + ReplicationProgress *float64 `json:"replication_progress,omitempty"` SourceCluster string `json:"source_cluster"` SyncGroupOffsetsEnabled *bool `json:"sync_group_offsets_enabled,omitempty"` SyncGroupOffsetsIntervalSeconds *int `json:"sync_group_offsets_interval_seconds,omitempty"` TargetCluster string `json:"target_cluster"` Topics []string `json:"topics,omitempty"` - TopicsBlacklist string `json:"topics.blacklist,omitempty"` + TopicsBlacklist *string `json:"topics.blacklist,omitempty"` } type ReplicationPolicyClassType string @@ -135,7 +136,7 @@ func ReplicationPolicyClassTypeChoices() []string { } type ServiceKafkaMirrorMakerCreateReplicationFlowIn struct { - ConfigPropertiesExclude string `json:"config_properties_exclude,omitempty"` + ConfigPropertiesExclude *string `json:"config_properties_exclude,omitempty"` EmitBackwardHeartbeatsEnabled *bool `json:"emit_backward_heartbeats_enabled,omitempty"` EmitHeartbeatsEnabled *bool `json:"emit_heartbeats_enabled,omitempty"` Enabled bool `json:"enabled"` @@ -147,25 +148,26 @@ type ServiceKafkaMirrorMakerCreateReplicationFlowIn struct { SyncGroupOffsetsIntervalSeconds *int `json:"sync_group_offsets_interval_seconds,omitempty"` TargetCluster string `json:"target_cluster"` Topics *[]string `json:"topics,omitempty"` - TopicsBlacklist string `json:"topics.blacklist,omitempty"` + TopicsBlacklist *string `json:"topics.blacklist,omitempty"` } type ServiceKafkaMirrorMakerGetReplicationFlowOut struct { - ConfigPropertiesExclude string `json:"config_properties_exclude,omitempty"` + ConfigPropertiesExclude *string `json:"config_properties_exclude,omitempty"` EmitBackwardHeartbeatsEnabled *bool `json:"emit_backward_heartbeats_enabled,omitempty"` EmitHeartbeatsEnabled *bool `json:"emit_heartbeats_enabled,omitempty"` Enabled bool `json:"enabled"` OffsetLagMax *int `json:"offset_lag_max,omitempty"` OffsetSyncsTopicLocation OffsetSyncsTopicLocationType `json:"offset_syncs_topic_location,omitempty"` ReplicationPolicyClass ReplicationPolicyClassType `json:"replication_policy_class,omitempty"` + ReplicationProgress *float64 `json:"replication_progress,omitempty"` SourceCluster string `json:"source_cluster"` SyncGroupOffsetsEnabled *bool `json:"sync_group_offsets_enabled,omitempty"` SyncGroupOffsetsIntervalSeconds *int `json:"sync_group_offsets_interval_seconds,omitempty"` TargetCluster string `json:"target_cluster"` Topics []string `json:"topics,omitempty"` - TopicsBlacklist string `json:"topics.blacklist,omitempty"` + TopicsBlacklist *string `json:"topics.blacklist,omitempty"` } type ServiceKafkaMirrorMakerPatchReplicationFlowIn struct { - ConfigPropertiesExclude string `json:"config_properties_exclude,omitempty"` + ConfigPropertiesExclude *string `json:"config_properties_exclude,omitempty"` EmitBackwardHeartbeatsEnabled *bool `json:"emit_backward_heartbeats_enabled,omitempty"` EmitHeartbeatsEnabled *bool `json:"emit_heartbeats_enabled,omitempty"` Enabled *bool `json:"enabled,omitempty"` @@ -175,22 +177,23 @@ type ServiceKafkaMirrorMakerPatchReplicationFlowIn struct { SyncGroupOffsetsEnabled *bool `json:"sync_group_offsets_enabled,omitempty"` SyncGroupOffsetsIntervalSeconds *int `json:"sync_group_offsets_interval_seconds,omitempty"` Topics *[]string `json:"topics,omitempty"` - TopicsBlacklist string `json:"topics.blacklist,omitempty"` + TopicsBlacklist *string `json:"topics.blacklist,omitempty"` } type ServiceKafkaMirrorMakerPatchReplicationFlowOut struct { - ConfigPropertiesExclude string `json:"config_properties_exclude,omitempty"` + ConfigPropertiesExclude *string `json:"config_properties_exclude,omitempty"` EmitBackwardHeartbeatsEnabled *bool `json:"emit_backward_heartbeats_enabled,omitempty"` EmitHeartbeatsEnabled *bool `json:"emit_heartbeats_enabled,omitempty"` Enabled bool `json:"enabled"` OffsetLagMax *int `json:"offset_lag_max,omitempty"` OffsetSyncsTopicLocation OffsetSyncsTopicLocationType `json:"offset_syncs_topic_location,omitempty"` ReplicationPolicyClass ReplicationPolicyClassType `json:"replication_policy_class,omitempty"` + ReplicationProgress *float64 `json:"replication_progress,omitempty"` SourceCluster string `json:"source_cluster"` SyncGroupOffsetsEnabled *bool `json:"sync_group_offsets_enabled,omitempty"` SyncGroupOffsetsIntervalSeconds *int `json:"sync_group_offsets_interval_seconds,omitempty"` TargetCluster string `json:"target_cluster"` Topics []string `json:"topics,omitempty"` - TopicsBlacklist string `json:"topics.blacklist,omitempty"` + TopicsBlacklist *string `json:"topics.blacklist,omitempty"` } type serviceKafkaMirrorMakerGetReplicationFlowOut struct { ReplicationFlow ServiceKafkaMirrorMakerGetReplicationFlowOut `json:"replication_flow"` diff --git a/handler/kafkaschemaregistry/kafkaschemaregistry.go b/handler/kafkaschemaregistry/kafkaschemaregistry.go index 487827e..f32e610 100644 --- a/handler/kafkaschemaregistry/kafkaschemaregistry.go +++ b/handler/kafkaschemaregistry/kafkaschemaregistry.go @@ -262,7 +262,7 @@ func (h *KafkaSchemaRegistryHandler) ServiceSchemaRegistrySubjects(ctx context.C } type AclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionType `json:"permission"` Resource string `json:"resource"` Username string `json:"username"` diff --git a/handler/kafkatopic/kafkatopic.go b/handler/kafkatopic/kafkatopic.go index 1ba5e54..be50366 100644 --- a/handler/kafkatopic/kafkatopic.go +++ b/handler/kafkatopic/kafkatopic.go @@ -128,7 +128,7 @@ func (h *KafkaTopicHandler) ServiceKafkaTopicUpdate(ctx context.Context, project type CleanupPolicyOut struct { Source SourceType `json:"source,omitempty"` Synonyms []SynonymOut `json:"synonyms,omitempty"` - Value string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` } type CleanupPolicyType string @@ -391,7 +391,7 @@ type MessageOut struct { Key map[string]any `json:"key,omitempty"` Offset *int `json:"offset,omitempty"` Partition *int `json:"partition,omitempty"` - Topic string `json:"topic,omitempty"` + Topic *string `json:"topic,omitempty"` Value map[string]any `json:"value,omitempty"` } type MessageTimestampDifferenceMaxMsOut struct { @@ -442,10 +442,10 @@ type MinInsyncReplicasOut struct { Value *int `json:"value,omitempty"` } type OffsetOut struct { - Error string `json:"error,omitempty"` - ErrorCode *int `json:"error_code,omitempty"` - Offset *int `json:"offset,omitempty"` - Partition *int `json:"partition,omitempty"` + Error *string `json:"error,omitempty"` + ErrorCode *int `json:"error_code,omitempty"` + Offset *int `json:"offset,omitempty"` + Partition *int `json:"partition,omitempty"` } type PartitionOut struct { ConsumerGroups []ConsumerGroupOut `json:"consumer_groups"` @@ -532,10 +532,10 @@ type ServiceKafkaTopicMessageListIn struct { } type ServiceKafkaTopicMessageProduceIn struct { Format FormatType `json:"format"` - KeySchema string `json:"key_schema,omitempty"` + KeySchema *string `json:"key_schema,omitempty"` KeySchemaId *int `json:"key_schema_id,omitempty"` Records []RecordIn `json:"records"` - ValueSchema string `json:"value_schema,omitempty"` + ValueSchema *string `json:"value_schema,omitempty"` ValueSchemaId *int `json:"value_schema_id,omitempty"` } type ServiceKafkaTopicMessageProduceOut struct { @@ -569,7 +569,7 @@ func SourceTypeChoices() []string { } type SynonymOut struct { - Name string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Source SourceType `json:"source,omitempty"` Value *bool `json:"value,omitempty"` } diff --git a/handler/mysql/mysql.go b/handler/mysql/mysql.go index f93c67b..46f7fec 100644 --- a/handler/mysql/mysql.go +++ b/handler/mysql/mysql.go @@ -42,26 +42,26 @@ func (h *MySQLHandler) MySQLServiceQueryStatistics(ctx context.Context, project } type MySqlserviceQueryStatisticsIn struct { - Limit *int `json:"limit,omitempty"` - Offset *int `json:"offset,omitempty"` - OrderBy string `json:"order_by,omitempty"` + Limit *int `json:"limit,omitempty"` + Offset *int `json:"offset,omitempty"` + OrderBy *string `json:"order_by,omitempty"` } type QueryOut struct { AvgTimerWait *float64 `json:"avg_timer_wait,omitempty"` CountStar *float64 `json:"count_star,omitempty"` - Digest string `json:"digest,omitempty"` - DigestText string `json:"digest_text,omitempty"` - FirstSeen string `json:"first_seen,omitempty"` - LastSeen string `json:"last_seen,omitempty"` + Digest *string `json:"digest,omitempty"` + DigestText *string `json:"digest_text,omitempty"` + FirstSeen *string `json:"first_seen,omitempty"` + LastSeen *string `json:"last_seen,omitempty"` MaxTimerWait *float64 `json:"max_timer_wait,omitempty"` MinTimerWait *float64 `json:"min_timer_wait,omitempty"` Quantile95 *float64 `json:"quantile_95,omitempty"` Quantile99 *float64 `json:"quantile_99,omitempty"` Quantile999 *float64 `json:"quantile_999,omitempty"` - QuerySampleSeen string `json:"query_sample_seen,omitempty"` - QuerySampleText string `json:"query_sample_text,omitempty"` - QuerySampleTimerWait string `json:"query_sample_timer_wait,omitempty"` - SchemaName string `json:"schema_name,omitempty"` + QuerySampleSeen *string `json:"query_sample_seen,omitempty"` + QuerySampleText *string `json:"query_sample_text,omitempty"` + QuerySampleTimerWait *string `json:"query_sample_timer_wait,omitempty"` + SchemaName *string `json:"schema_name,omitempty"` SumCreatedTmpDiskTables *float64 `json:"sum_created_tmp_disk_tables,omitempty"` SumCreatedTmpTables *float64 `json:"sum_created_tmp_tables,omitempty"` SumErrors *float64 `json:"sum_errors,omitempty"` diff --git a/handler/opensearch/opensearch.go b/handler/opensearch/opensearch.go index 0608ef4..333dd77 100644 --- a/handler/opensearch/opensearch.go +++ b/handler/opensearch/opensearch.go @@ -230,9 +230,9 @@ func PermissionTypeChoices() []string { } type ReplicationOut struct { - LeaderIndex string `json:"leader_index,omitempty"` - LeaderProject string `json:"leader_project,omitempty"` - LeaderService string `json:"leader_service,omitempty"` + LeaderIndex *string `json:"leader_index,omitempty"` + LeaderProject *string `json:"leader_project,omitempty"` + LeaderService *string `json:"leader_service,omitempty"` } type RuleIn struct { Index string `json:"index"` diff --git a/handler/organization/organization.go b/handler/organization/organization.go index eb87d46..7780093 100644 --- a/handler/organization/organization.go +++ b/handler/organization/organization.go @@ -213,7 +213,7 @@ type OrganizationAuthenticationConfigUpdateOut struct { type OrganizationGetOut struct { AccountId string `json:"account_id"` CreateTime time.Time `json:"create_time"` - DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"` + DefaultGovernanceUserGroupId *string `json:"default_governance_user_group_id,omitempty"` OrganizationId string `json:"organization_id"` OrganizationName string `json:"organization_name"` Tier TierType `json:"tier"` @@ -222,7 +222,7 @@ type OrganizationGetOut struct { type OrganizationOut struct { AccountId string `json:"account_id"` CreateTime time.Time `json:"create_time"` - DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"` + DefaultGovernanceUserGroupId *string `json:"default_governance_user_group_id,omitempty"` OrganizationId string `json:"organization_id"` OrganizationName string `json:"organization_name"` Tier TierType `json:"tier"` @@ -233,15 +233,15 @@ type OrganizationProjectsListOut struct { TotalProjectCount *int `json:"total_project_count,omitempty"` } type OrganizationUpdateIn struct { - DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"` + DefaultGovernanceUserGroupId *string `json:"default_governance_user_group_id,omitempty"` KafkaGovernanceEnabled *bool `json:"kafka_governance_enabled,omitempty"` - Name string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Tier TierType `json:"tier,omitempty"` } type OrganizationUpdateOut struct { AccountId string `json:"account_id"` CreateTime time.Time `json:"create_time"` - DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"` + DefaultGovernanceUserGroupId *string `json:"default_governance_user_group_id,omitempty"` OrganizationId string `json:"organization_id"` OrganizationName string `json:"organization_name"` Tier TierType `json:"tier"` @@ -249,35 +249,35 @@ type OrganizationUpdateOut struct { } type ProjectOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type TechEmailOut struct { Email string `json:"email"` @@ -295,13 +295,13 @@ func TierTypeChoices() []string { type UserOrganizationCreateIn struct { OrganizationName string `json:"organization_name"` - PrimaryBillingGroupId string `json:"primary_billing_group_id,omitempty"` + PrimaryBillingGroupId *string `json:"primary_billing_group_id,omitempty"` Tier TierType `json:"tier"` } type UserOrganizationCreateOut struct { AccountId string `json:"account_id"` CreateTime time.Time `json:"create_time"` - DefaultGovernanceUserGroupId string `json:"default_governance_user_group_id,omitempty"` + DefaultGovernanceUserGroupId *string `json:"default_governance_user_group_id,omitempty"` OrganizationId string `json:"organization_id"` OrganizationName string `json:"organization_name"` Tier TierType `json:"tier"` diff --git a/handler/organizationuser/organizationuser.go b/handler/organizationuser/organizationuser.go index 6ce66e0..84a2371 100644 --- a/handler/organizationuser/organizationuser.go +++ b/handler/organizationuser/organizationuser.go @@ -205,14 +205,14 @@ func ActionTypeChoices() []string { type AuthenticationMethodOut struct { IsEnabled2Fa *bool `json:"is_enabled_2fa,omitempty"` LastUsedTime *time.Time `json:"last_used_time,omitempty"` - LocalProviderId string `json:"local_provider_id,omitempty"` - MethodId string `json:"method_id,omitempty"` - Name string `json:"name,omitempty"` - OrganizationId string `json:"organization_id,omitempty"` + LocalProviderId *string `json:"local_provider_id,omitempty"` + MethodId *string `json:"method_id,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` RemoteProviderId string `json:"remote_provider_id"` - Type string `json:"type,omitempty"` - UserEmail string `json:"user_email,omitempty"` - UserId string `json:"user_id,omitempty"` + Type *string `json:"type,omitempty"` + UserEmail *string `json:"user_email,omitempty"` + UserId *string `json:"user_id,omitempty"` } type InvitationOut struct { CreateTime time.Time `json:"create_time"` @@ -246,12 +246,12 @@ func OrganizationUserStateTypeChoices() []string { } type OrganizationUserUpdateIn struct { - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` - Department string `json:"department,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` + Department *string `json:"department,omitempty"` IsSuperAdmin *bool `json:"is_super_admin,omitempty"` - JobTitle string `json:"job_title,omitempty"` - RealName string `json:"real_name,omitempty"` + JobTitle *string `json:"job_title,omitempty"` + RealName *string `json:"real_name,omitempty"` State OrganizationUserStateType `json:"state,omitempty"` } type OrganizationUserUpdateOut struct { @@ -269,14 +269,14 @@ type TokenOut struct { TokenPrefix string `json:"token_prefix"` } type UserInfoOut struct { - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` CreateTime time.Time `json:"create_time"` - Department string `json:"department,omitempty"` + Department *string `json:"department,omitempty"` IsApplicationUser bool `json:"is_application_user"` - JobTitle string `json:"job_title,omitempty"` + JobTitle *string `json:"job_title,omitempty"` ManagedByScim bool `json:"managed_by_scim"` - ManagingOrganizationId string `json:"managing_organization_id,omitempty"` + ManagingOrganizationId *string `json:"managing_organization_id,omitempty"` RealName string `json:"real_name"` State string `json:"state"` UserEmail string `json:"user_email"` diff --git a/handler/postgresql/postgresql.go b/handler/postgresql/postgresql.go index 4440994..5f47cb2 100644 --- a/handler/postgresql/postgresql.go +++ b/handler/postgresql/postgresql.go @@ -116,9 +116,9 @@ type PgOut struct { Version string `json:"version"` } type PgserviceQueryStatisticsIn struct { - Limit *int `json:"limit,omitempty"` - Offset *int `json:"offset,omitempty"` - OrderBy string `json:"order_by,omitempty"` + Limit *int `json:"limit,omitempty"` + Offset *int `json:"offset,omitempty"` + OrderBy *string `json:"order_by,omitempty"` } type PoolModeType string @@ -136,7 +136,7 @@ type QueryOut struct { BlkReadTime *float64 `json:"blk_read_time,omitempty"` BlkWriteTime *float64 `json:"blk_write_time,omitempty"` Calls *float64 `json:"calls,omitempty"` - DatabaseName string `json:"database_name,omitempty"` + DatabaseName *string `json:"database_name,omitempty"` LocalBlksDirtied *float64 `json:"local_blks_dirtied,omitempty"` LocalBlksHit *float64 `json:"local_blks_hit,omitempty"` LocalBlksRead *float64 `json:"local_blks_read,omitempty"` @@ -150,7 +150,7 @@ type QueryOut struct { MinExecTime *float64 `json:"min_exec_time,omitempty"` MinPlanTime *float64 `json:"min_plan_time,omitempty"` MinTime *float64 `json:"min_time,omitempty"` - Query string `json:"query,omitempty"` + Query *string `json:"query,omitempty"` Queryid *float64 `json:"queryid,omitempty"` Rows *float64 `json:"rows,omitempty"` SharedBlksDirtied *float64 `json:"shared_blks_dirtied,omitempty"` @@ -165,8 +165,8 @@ type QueryOut struct { TotalExecTime *float64 `json:"total_exec_time,omitempty"` TotalPlanTime *float64 `json:"total_plan_time,omitempty"` TotalTime *float64 `json:"total_time,omitempty"` - UserName string `json:"user_name,omitempty"` - WalBytes string `json:"wal_bytes,omitempty"` + UserName *string `json:"user_name,omitempty"` + WalBytes *string `json:"wal_bytes,omitempty"` WalFpi *float64 `json:"wal_fpi,omitempty"` WalRecords *float64 `json:"wal_records,omitempty"` } @@ -175,13 +175,13 @@ type ServicePgbouncerCreateIn struct { PoolMode PoolModeType `json:"pool_mode,omitempty"` PoolName string `json:"pool_name"` PoolSize *int `json:"pool_size,omitempty"` - Username string `json:"username,omitempty"` + Username *string `json:"username,omitempty"` } type ServicePgbouncerUpdateIn struct { - Database string `json:"database,omitempty"` + Database *string `json:"database,omitempty"` PoolMode PoolModeType `json:"pool_mode,omitempty"` PoolSize *int `json:"pool_size,omitempty"` - Username string `json:"username,omitempty"` + Username *string `json:"username,omitempty"` } type pgAvailableExtensionsOut struct { Pg []PgOut `json:"pg,omitempty"` diff --git a/handler/privatelink/privatelink.go b/handler/privatelink/privatelink.go index 6af0012..0206da3 100644 --- a/handler/privatelink/privatelink.go +++ b/handler/privatelink/privatelink.go @@ -259,13 +259,13 @@ func (h *PrivatelinkHandler) ServicePrivatelinkAzureUpdate(ctx context.Context, type ConnectionOut struct { DnsName string `json:"dns_name"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` State ConnectionStateType `json:"state"` VpcEndpointId string `json:"vpc_endpoint_id"` } type ConnectionOutAlt struct { PrivateEndpointId string `json:"private_endpoint_id"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` State ConnectionStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` } @@ -290,8 +290,8 @@ type ServicePrivatelinkAwscreateIn struct { Principals []string `json:"principals"` } type ServicePrivatelinkAwscreateOut struct { - AwsServiceId string `json:"aws_service_id,omitempty"` - AwsServiceName string `json:"aws_service_name,omitempty"` + AwsServiceId *string `json:"aws_service_id,omitempty"` + AwsServiceName *string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwscreateStateType `json:"state"` } @@ -308,8 +308,8 @@ func ServicePrivatelinkAwscreateStateTypeChoices() []string { } type ServicePrivatelinkAwsdeleteOut struct { - AwsServiceId string `json:"aws_service_id,omitempty"` - AwsServiceName string `json:"aws_service_name,omitempty"` + AwsServiceId *string `json:"aws_service_id,omitempty"` + AwsServiceName *string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsdeleteStateType `json:"state"` } @@ -326,8 +326,8 @@ func ServicePrivatelinkAwsdeleteStateTypeChoices() []string { } type ServicePrivatelinkAwsgetOut struct { - AwsServiceId string `json:"aws_service_id,omitempty"` - AwsServiceName string `json:"aws_service_name,omitempty"` + AwsServiceId *string `json:"aws_service_id,omitempty"` + AwsServiceName *string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsgetStateType `json:"state"` } @@ -347,8 +347,8 @@ type ServicePrivatelinkAwsupdateIn struct { Principals []string `json:"principals"` } type ServicePrivatelinkAwsupdateOut struct { - AwsServiceId string `json:"aws_service_id,omitempty"` - AwsServiceName string `json:"aws_service_name,omitempty"` + AwsServiceId *string `json:"aws_service_id,omitempty"` + AwsServiceName *string `json:"aws_service_name,omitempty"` Principals []string `json:"principals"` State ServicePrivatelinkAwsupdateStateType `json:"state"` } @@ -366,7 +366,7 @@ func ServicePrivatelinkAwsupdateStateTypeChoices() []string { type ServicePrivatelinkAzureConnectionApprovalOut struct { PrivateEndpointId string `json:"private_endpoint_id"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` State ServicePrivatelinkAzureConnectionApprovalStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` } @@ -401,7 +401,7 @@ type ServicePrivatelinkAzureConnectionUpdateIn struct { } type ServicePrivatelinkAzureConnectionUpdateOut struct { PrivateEndpointId string `json:"private_endpoint_id"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` State ServicePrivatelinkAzureConnectionStateType `json:"state"` UserIpAddress string `json:"user_ip_address"` } @@ -409,20 +409,20 @@ type ServicePrivatelinkAzureCreateIn struct { UserSubscriptionIds []string `json:"user_subscription_ids"` } type ServicePrivatelinkAzureCreateOut struct { - AzureServiceAlias string `json:"azure_service_alias,omitempty"` - AzureServiceId string `json:"azure_service_id,omitempty"` + AzureServiceAlias *string `json:"azure_service_alias,omitempty"` + AzureServiceId *string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` } type ServicePrivatelinkAzureDeleteOut struct { - AzureServiceAlias string `json:"azure_service_alias,omitempty"` - AzureServiceId string `json:"azure_service_id,omitempty"` + AzureServiceAlias *string `json:"azure_service_alias,omitempty"` + AzureServiceId *string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` } type ServicePrivatelinkAzureGetOut struct { - AzureServiceAlias string `json:"azure_service_alias,omitempty"` - AzureServiceId string `json:"azure_service_id,omitempty"` + AzureServiceAlias *string `json:"azure_service_alias,omitempty"` + AzureServiceId *string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` } @@ -442,8 +442,8 @@ type ServicePrivatelinkAzureUpdateIn struct { UserSubscriptionIds []string `json:"user_subscription_ids"` } type ServicePrivatelinkAzureUpdateOut struct { - AzureServiceAlias string `json:"azure_service_alias,omitempty"` - AzureServiceId string `json:"azure_service_id,omitempty"` + AzureServiceAlias *string `json:"azure_service_alias,omitempty"` + AzureServiceId *string `json:"azure_service_id,omitempty"` State ServicePrivatelinkAzureStateType `json:"state"` UserSubscriptionIds []string `json:"user_subscription_ids"` } diff --git a/handler/project/project.go b/handler/project/project.go index c900862..b77f007 100644 --- a/handler/project/project.go +++ b/handler/project/project.go @@ -331,10 +331,10 @@ func (h *ProjectHandler) ProjectUserUpdate(ctx context.Context, project string, type AlertOut struct { CreateTime time.Time `json:"create_time"` Event string `json:"event"` - NodeName string `json:"node_name,omitempty"` + NodeName *string `json:"node_name,omitempty"` ProjectName string `json:"project_name"` - ServiceName string `json:"service_name,omitempty"` - ServiceType string `json:"service_type,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + ServiceType *string `json:"service_type,omitempty"` Severity string `json:"severity"` } type AnyType string @@ -433,92 +433,92 @@ type PrivatelinkAvailabilityOut struct { PriceUsd string `json:"price_usd"` } type ProjectCreateIn struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AddAccountOwnersAdminAccess *bool `json:"add_account_owners_admin_access,omitempty"` AddressLines *[]string `json:"address_lines,omitempty"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails *[]BillingEmailIn `json:"billing_emails,omitempty"` - BillingExtraText string `json:"billing_extra_text,omitempty"` - BillingGroupId string `json:"billing_group_id,omitempty"` - CardId string `json:"card_id,omitempty"` - City string `json:"city,omitempty"` - Cloud string `json:"cloud,omitempty"` - Company string `json:"company,omitempty"` - CopyFromProject string `json:"copy_from_project,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` + BillingGroupId *string `json:"billing_group_id,omitempty"` + CardId *string `json:"card_id,omitempty"` + City *string `json:"city,omitempty"` + Cloud *string `json:"cloud,omitempty"` + Company *string `json:"company,omitempty"` + CopyFromProject *string `json:"copy_from_project,omitempty"` CopyTags *bool `json:"copy_tags,omitempty"` - CountryCode string `json:"country_code,omitempty"` + CountryCode *string `json:"country_code,omitempty"` Project string `json:"project"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags *map[string]string `json:"tags,omitempty"` TechEmails *[]TechEmailIn `json:"tech_emails,omitempty"` UseSourceProjectBillingGroup *bool `json:"use_source_project_billing_group,omitempty"` - VatId string `json:"vat_id,omitempty"` - ZipCode string `json:"zip_code,omitempty"` + VatId *string `json:"vat_id,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectCreateOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectGetOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectInviteAcceptOut struct { UserEmail string `json:"user_email"` @@ -540,35 +540,35 @@ type ProjectMembershipsOut struct { } type ProjectOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectTagsReplaceIn struct { Tags map[string]string `json:"tags"` @@ -577,57 +577,57 @@ type ProjectTagsUpdateIn struct { Tags map[string]string `json:"tags"` } type ProjectUpdateIn struct { - AccountId string `json:"account_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` AddAccountOwnersAdminAccess *bool `json:"add_account_owners_admin_access,omitempty"` AddressLines *[]string `json:"address_lines,omitempty"` - BillingAddress string `json:"billing_address,omitempty"` + BillingAddress *string `json:"billing_address,omitempty"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails *[]BillingEmailIn `json:"billing_emails,omitempty"` - BillingExtraText string `json:"billing_extra_text,omitempty"` - BillingGroupId string `json:"billing_group_id,omitempty"` - CardId string `json:"card_id,omitempty"` - City string `json:"city,omitempty"` - Cloud string `json:"cloud,omitempty"` - Company string `json:"company,omitempty"` - CountryCode string `json:"country_code,omitempty"` - ProjectName string `json:"project_name,omitempty"` - State string `json:"state,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` + BillingGroupId *string `json:"billing_group_id,omitempty"` + CardId *string `json:"card_id,omitempty"` + City *string `json:"city,omitempty"` + Cloud *string `json:"cloud,omitempty"` + Company *string `json:"company,omitempty"` + CountryCode *string `json:"country_code,omitempty"` + ProjectName *string `json:"project_name,omitempty"` + State *string `json:"state,omitempty"` Tags *map[string]string `json:"tags,omitempty"` TechEmails *[]TechEmailIn `json:"tech_emails,omitempty"` - VatId string `json:"vat_id,omitempty"` - ZipCode string `json:"zip_code,omitempty"` + VatId *string `json:"vat_id,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectUpdateOut struct { AccountId string `json:"account_id"` - AccountName string `json:"account_name,omitempty"` + AccountName *string `json:"account_name,omitempty"` AddressLines []string `json:"address_lines,omitempty"` - AvailableCredits string `json:"available_credits,omitempty"` + AvailableCredits *string `json:"available_credits,omitempty"` BillingAddress string `json:"billing_address"` BillingCurrency BillingCurrencyType `json:"billing_currency,omitempty"` BillingEmails []BillingEmailOut `json:"billing_emails"` - BillingExtraText string `json:"billing_extra_text,omitempty"` + BillingExtraText *string `json:"billing_extra_text,omitempty"` BillingGroupId string `json:"billing_group_id"` BillingGroupName string `json:"billing_group_name"` CardInfo *CardInfoOut `json:"card_info,omitempty"` - City string `json:"city,omitempty"` - Company string `json:"company,omitempty"` + City *string `json:"city,omitempty"` + Company *string `json:"company,omitempty"` Country string `json:"country"` CountryCode string `json:"country_code"` DefaultCloud string `json:"default_cloud"` EndOfLifeExtension *EndOfLifeExtensionOut `json:"end_of_life_extension,omitempty"` EstimatedBalance string `json:"estimated_balance"` - EstimatedBalanceLocal string `json:"estimated_balance_local,omitempty"` + EstimatedBalanceLocal *string `json:"estimated_balance_local,omitempty"` Features map[string]any `json:"features,omitempty"` OrganizationId string `json:"organization_id"` PaymentMethod string `json:"payment_method"` ProjectName string `json:"project_name"` - State string `json:"state,omitempty"` + State *string `json:"state,omitempty"` Tags map[string]string `json:"tags,omitempty"` TechEmails []TechEmailOut `json:"tech_emails,omitempty"` - TenantId string `json:"tenant_id,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` TrialExpirationTime *time.Time `json:"trial_expiration_time,omitempty"` VatId string `json:"vat_id"` - ZipCode string `json:"zip_code,omitempty"` + ZipCode *string `json:"zip_code,omitempty"` } type ProjectUserListOut struct { GroupUsers []GroupUserOut `json:"group_users"` @@ -648,7 +648,7 @@ type UserOut struct { BillingContact bool `json:"billing_contact"` CreateTime time.Time `json:"create_time"` MemberType MemberType `json:"member_type"` - RealName string `json:"real_name,omitempty"` + RealName *string `json:"real_name,omitempty"` TeamId string `json:"team_id"` TeamName string `json:"team_name"` UserEmail string `json:"user_email"` diff --git a/handler/projectbilling/projectbilling.go b/handler/projectbilling/projectbilling.go index a1ae982..80a3b26 100644 --- a/handler/projectbilling/projectbilling.go +++ b/handler/projectbilling/projectbilling.go @@ -90,12 +90,12 @@ func BillingGroupStateTypeChoices() []string { } type CreditOut struct { - Code string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` ExpireTime *time.Time `json:"expire_time,omitempty"` - RemainingValue string `json:"remaining_value,omitempty"` + RemainingValue *string `json:"remaining_value,omitempty"` StartTime *time.Time `json:"start_time,omitempty"` Type CreditType `json:"type,omitempty"` - Value string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` } type CreditType string @@ -179,12 +179,12 @@ type ProjectCreditsClaimIn struct { Code string `json:"code"` } type ProjectCreditsClaimOut struct { - Code string `json:"code,omitempty"` + Code *string `json:"code,omitempty"` ExpireTime *time.Time `json:"expire_time,omitempty"` - RemainingValue string `json:"remaining_value,omitempty"` + RemainingValue *string `json:"remaining_value,omitempty"` StartTime *time.Time `json:"start_time,omitempty"` Type CreditType `json:"type,omitempty"` - Value string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` } type projectCreditsClaimOut struct { Credit ProjectCreditsClaimOut `json:"credit"` diff --git a/handler/service/service.go b/handler/service/service.go index cc0ad4f..58f285a 100644 --- a/handler/service/service.go +++ b/handler/service/service.go @@ -93,7 +93,7 @@ type Handler interface { // ServiceEnableWrites temporarily enable writes for a service in read-only mode. Will only work if disk usage is lower than 99.0% // POST /project/{project}/service/{service_name}/enable-writes // https://api.aiven.io/doc/#tag/Service/operation/ServiceEnableWrites - ServiceEnableWrites(ctx context.Context, project string, serviceName string) (string, error) + ServiceEnableWrites(ctx context.Context, project string, serviceName string) (*string, error) // ServiceGet get service information // GET /project/{project}/service/{service_name} @@ -341,7 +341,7 @@ func (h *ServiceHandler) ServiceDelete(ctx context.Context, project string, serv _, err := h.doer.Do(ctx, "ServiceDelete", "DELETE", path, nil) return err } -func (h *ServiceHandler) ServiceEnableWrites(ctx context.Context, project string, serviceName string) (string, error) { +func (h *ServiceHandler) ServiceEnableWrites(ctx context.Context, project string, serviceName string) (*string, error) { path := fmt.Sprintf("/project/%s/service/%s/enable-writes", project, serviceName) b, err := h.doer.Do(ctx, "ServiceEnableWrites", "POST", path, nil) if err != nil { @@ -517,7 +517,7 @@ func (h *ServiceHandler) ServiceUpdate(ctx context.Context, project string, serv } type AccessControlOut struct { - M3Group string `json:"m3_group,omitempty"` + M3Group *string `json:"m3_group,omitempty"` PgAllowReplication *bool `json:"pg_allow_replication,omitempty"` RedisAclCategories []string `json:"redis_acl_categories,omitempty"` RedisAclChannels []string `json:"redis_acl_channels,omitempty"` @@ -525,31 +525,31 @@ type AccessControlOut struct { RedisAclKeys []string `json:"redis_acl_keys,omitempty"` } type AclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionType `json:"permission"` Topic string `json:"topic"` Username string `json:"username"` } type AdditionalRegionOut struct { - Cloud string `json:"cloud"` - PauseReason string `json:"pause_reason,omitempty"` - Paused *bool `json:"paused,omitempty"` - Region string `json:"region,omitempty"` + Cloud string `json:"cloud"` + PauseReason *string `json:"pause_reason,omitempty"` + Paused *bool `json:"paused,omitempty"` + Region *string `json:"region,omitempty"` } type AggregatorOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type AlertOut struct { CreateTime time.Time `json:"create_time"` Event string `json:"event"` - NodeName string `json:"node_name,omitempty"` + NodeName *string `json:"node_name,omitempty"` ProjectName string `json:"project_name"` - ServiceName string `json:"service_name,omitempty"` - ServiceType string `json:"service_type,omitempty"` + ServiceName *string `json:"service_name,omitempty"` + ServiceType *string `json:"service_type,omitempty"` Severity string `json:"severity"` } type AuthenticationType string @@ -578,19 +578,19 @@ type BackupOut struct { BackupName string `json:"backup_name"` BackupTime time.Time `json:"backup_time"` DataSize int `json:"data_size"` - StorageLocation string `json:"storage_location,omitempty"` + StorageLocation *string `json:"storage_location,omitempty"` } type CassandraOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type ClickhouseOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -598,9 +598,9 @@ type ComponentOut struct { Component string `json:"component"` Host string `json:"host"` KafkaAuthenticationMethod KafkaAuthenticationMethodType `json:"kafka_authentication_method,omitempty"` - Path string `json:"path,omitempty"` + Path *string `json:"path,omitempty"` Port int `json:"port"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` Route RouteType `json:"route"` Ssl *bool `json:"ssl,omitempty"` Usage UsageType `json:"usage"` @@ -611,7 +611,7 @@ type ConnectionPoolOut struct { PoolMode PoolModeType `json:"pool_mode"` PoolName string `json:"pool_name"` PoolSize int `json:"pool_size"` - Username string `json:"username,omitempty"` + Username *string `json:"username,omitempty"` } type DatabaseOut struct { DatabaseName string `json:"database_name"` @@ -630,9 +630,9 @@ func DatasetNameTypeChoices() []string { } type DbOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -669,31 +669,38 @@ func DowTypeAltChoices() []string { return []string{"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday", "never"} } +type DragonflyOut struct { + DefaultVersion *string `json:"default_version,omitempty"` + Description string `json:"description"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` + ServicePlans []ServicePlanOut `json:"service_plans"` + UserConfigSchema map[string]any `json:"user_config_schema"` +} type ElasticsearchOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type FlinkOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type GrafanaOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type InfluxdbOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -736,6 +743,7 @@ const ( IntegrationTypeFlink IntegrationType = "flink" IntegrationTypeFlinkExternalBigquery IntegrationType = "flink_external_bigquery" IntegrationTypeFlinkExternalKafka IntegrationType = "flink_external_kafka" + IntegrationTypeFlinkExternalPostgresql IntegrationType = "flink_external_postgresql" IntegrationTypeInternalConnectivity IntegrationType = "internal_connectivity" IntegrationTypeJolokia IntegrationType = "jolokia" IntegrationTypeKafkaConnect IntegrationType = "kafka_connect" @@ -761,7 +769,7 @@ const ( ) func IntegrationTypeChoices() []string { - return []string{"alertmanager", "autoscaler", "caching", "cassandra_cross_service_cluster", "clickhouse_credentials", "clickhouse_kafka", "clickhouse_postgresql", "dashboard", "datadog", "datasource", "external_aws_cloudwatch_logs", "external_aws_cloudwatch_metrics", "external_elasticsearch_logs", "external_google_cloud_logging", "external_opensearch_logs", "flink", "flink_external_bigquery", "flink_external_kafka", "internal_connectivity", "jolokia", "kafka_connect", "kafka_connect_postgresql", "kafka_logs", "kafka_mirrormaker", "logs", "m3aggregator", "m3coordinator", "metrics", "opensearch_cross_cluster_replication", "opensearch_cross_cluster_search", "prometheus", "read_replica", "rsyslog", "schema_registry_proxy", "stresstester", "thanoscompactor", "thanosquery", "thanosstore", "vector", "vmalert"} + return []string{"alertmanager", "autoscaler", "caching", "cassandra_cross_service_cluster", "clickhouse_credentials", "clickhouse_kafka", "clickhouse_postgresql", "dashboard", "datadog", "datasource", "external_aws_cloudwatch_logs", "external_aws_cloudwatch_metrics", "external_elasticsearch_logs", "external_google_cloud_logging", "external_opensearch_logs", "flink", "flink_external_bigquery", "flink_external_kafka", "flink_external_postgresql", "internal_connectivity", "jolokia", "kafka_connect", "kafka_connect_postgresql", "kafka_logs", "kafka_mirrormaker", "logs", "m3aggregator", "m3coordinator", "metrics", "opensearch_cross_cluster_replication", "opensearch_cross_cluster_search", "prometheus", "read_replica", "rsyslog", "schema_registry_proxy", "stresstester", "thanoscompactor", "thanosquery", "thanosstore", "vector", "vmalert"} } type KafkaAuthenticationMethodType string @@ -776,23 +784,23 @@ func KafkaAuthenticationMethodTypeChoices() []string { } type KafkaConnectOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type KafkaMirrormakerOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type KafkaOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -824,6 +832,7 @@ func LikelyErrorCauseTypeChoices() []string { type ListProjectServiceTypesOut struct { Cassandra *CassandraOut `json:"cassandra,omitempty"` Clickhouse *ClickhouseOut `json:"clickhouse,omitempty"` + Dragonfly *DragonflyOut `json:"dragonfly,omitempty"` Elasticsearch *ElasticsearchOut `json:"elasticsearch,omitempty"` Flink *FlinkOut `json:"flink,omitempty"` Grafana *GrafanaOut `json:"grafana,omitempty"` @@ -841,6 +850,7 @@ type ListProjectServiceTypesOut struct { type ListPublicServiceTypesOut struct { Cassandra *CassandraOut `json:"cassandra,omitempty"` Clickhouse *ClickhouseOut `json:"clickhouse,omitempty"` + Dragonfly *DragonflyOut `json:"dragonfly,omitempty"` Elasticsearch *ElasticsearchOut `json:"elasticsearch,omitempty"` Flink *FlinkOut `json:"flink,omitempty"` Grafana *GrafanaOut `json:"grafana,omitempty"` @@ -856,13 +866,13 @@ type ListPublicServiceTypesOut struct { Redis *RedisOut `json:"redis,omitempty"` } type LogOut struct { - Msg string `json:"msg"` - Time string `json:"time,omitempty"` - Unit string `json:"unit,omitempty"` + Msg string `json:"msg"` + Time *string `json:"time,omitempty"` + Unit *string `json:"unit,omitempty"` } type MaintenanceIn struct { Dow DowType `json:"dow,omitempty"` - Time string `json:"time,omitempty"` + Time *string `json:"time,omitempty"` } type MaintenanceOut struct { Dow DowTypeAlt `json:"dow"` @@ -881,11 +891,11 @@ func MasterLinkStatusTypeChoices() []string { } type MetadataOut struct { - EndOfLifeHelpArticleUrl string `json:"end_of_life_help_article_url,omitempty"` - EndOfLifePolicyUrl string `json:"end_of_life_policy_url,omitempty"` + EndOfLifeHelpArticleUrl *string `json:"end_of_life_help_article_url,omitempty"` + EndOfLifePolicyUrl *string `json:"end_of_life_policy_url,omitempty"` ServiceEndOfLifeTime *time.Time `json:"service_end_of_life_time,omitempty"` - UpgradeToServiceType string `json:"upgrade_to_service_type,omitempty"` - UpgradeToVersion string `json:"upgrade_to_version,omitempty"` + UpgradeToServiceType *string `json:"upgrade_to_service_type,omitempty"` + UpgradeToVersion *string `json:"upgrade_to_version,omitempty"` } type MethodType string @@ -913,15 +923,15 @@ func MethodTypeAltChoices() []string { } type MigrationCheckIn struct { - IgnoreDbs string `json:"ignore_dbs,omitempty"` + IgnoreDbs *string `json:"ignore_dbs,omitempty"` Method MethodTypeAlt `json:"method,omitempty"` - SourceProjectName string `json:"source_project_name,omitempty"` - SourceServiceName string `json:"source_service_name,omitempty"` - SourceServiceUri string `json:"source_service_uri,omitempty"` + SourceProjectName *string `json:"source_project_name,omitempty"` + SourceServiceName *string `json:"source_service_name,omitempty"` + SourceServiceUri *string `json:"source_service_uri,omitempty"` } type MigrationDetailOut struct { Dbname string `json:"dbname"` - Error string `json:"error,omitempty"` + Error *string `json:"error,omitempty"` Method MethodType `json:"method"` Status MigrationDetailStatusType `json:"status"` } @@ -939,7 +949,7 @@ func MigrationDetailStatusTypeChoices() []string { } type MigrationOut struct { - Error string `json:"error,omitempty"` + Error *string `json:"error,omitempty"` MasterLastIoSecondsAgo *int `json:"master_last_io_seconds_ago,omitempty"` MasterLinkStatus MasterLinkStatusType `json:"master_link_status,omitempty"` Method MethodType `json:"method"` @@ -959,9 +969,9 @@ func MigrationStatusTypeChoices() []string { } type MysqlOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -988,9 +998,9 @@ func NodeStateTypeChoices() []string { } type OpensearchOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -1033,9 +1043,9 @@ func PermissionTypeAltChoices() []string { } type PgOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } @@ -1074,7 +1084,7 @@ type ProgressUpdateOut struct { } type ProjectGetServiceLogsIn struct { Limit *int `json:"limit,omitempty"` - Offset string `json:"offset,omitempty"` + Offset *string `json:"offset,omitempty"` SortOrder SortOrderType `json:"sort_order,omitempty"` } type ProjectGetServiceLogsOut struct { @@ -1090,44 +1100,44 @@ type ProjectServiceTagsUpdateIn struct { } type QueryOut struct { ActiveChannelSubscriptions *int `json:"active_channel_subscriptions,omitempty"` - ActiveDatabase string `json:"active_database,omitempty"` + ActiveDatabase *string `json:"active_database,omitempty"` ActivePatternMatchingChannelSubscriptions *int `json:"active_pattern_matching_channel_subscriptions,omitempty"` - ApplicationName string `json:"application_name,omitempty"` - BackendStart string `json:"backend_start,omitempty"` - BackendType string `json:"backend_type,omitempty"` + ApplicationName *string `json:"application_name,omitempty"` + BackendStart *string `json:"backend_start,omitempty"` + BackendType *string `json:"backend_type,omitempty"` BackendXid *int `json:"backend_xid,omitempty"` BackendXmin *int `json:"backend_xmin,omitempty"` - ClientAddr string `json:"client_addr,omitempty"` - ClientHostname string `json:"client_hostname,omitempty"` + ClientAddr *string `json:"client_addr,omitempty"` + ClientHostname *string `json:"client_hostname,omitempty"` ClientPort *int `json:"client_port,omitempty"` ConnectionAgeSeconds *float64 `json:"connection_age_seconds,omitempty"` ConnectionIdleSeconds *float64 `json:"connection_idle_seconds,omitempty"` Datid *int `json:"datid,omitempty"` - Datname string `json:"datname,omitempty"` + Datname *string `json:"datname,omitempty"` Flags []string `json:"flags,omitempty"` - FlagsRaw string `json:"flags_raw,omitempty"` - Id string `json:"id,omitempty"` + FlagsRaw *string `json:"flags_raw,omitempty"` + Id *string `json:"id,omitempty"` LeaderPid *int `json:"leader_pid,omitempty"` MultiExecCommands *int `json:"multi_exec_commands,omitempty"` - Name string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` OutputBuffer *int `json:"output_buffer,omitempty"` OutputBufferMemory *int `json:"output_buffer_memory,omitempty"` OutputListLength *int `json:"output_list_length,omitempty"` Pid *int `json:"pid,omitempty"` - Query string `json:"query,omitempty"` + Query *string `json:"query,omitempty"` QueryBuffer *int `json:"query_buffer,omitempty"` QueryBufferFree *int `json:"query_buffer_free,omitempty"` QueryDuration *float64 `json:"query_duration,omitempty"` QueryId *int `json:"query_id,omitempty"` - QueryStart string `json:"query_start,omitempty"` - State string `json:"state,omitempty"` - StateChange string `json:"state_change,omitempty"` - Usename string `json:"usename,omitempty"` + QueryStart *string `json:"query_start,omitempty"` + State *string `json:"state,omitempty"` + StateChange *string `json:"state_change,omitempty"` + Usename *string `json:"usename,omitempty"` Usesysid *int `json:"usesysid,omitempty"` - WaitEvent string `json:"wait_event,omitempty"` - WaitEventType string `json:"wait_event_type,omitempty"` + WaitEvent *string `json:"wait_event,omitempty"` + WaitEventType *string `json:"wait_event_type,omitempty"` Waiting *bool `json:"waiting,omitempty"` - XactStart string `json:"xact_start,omitempty"` + XactStart *string `json:"xact_start,omitempty"` } type RecoveryModeType string @@ -1141,15 +1151,15 @@ func RecoveryModeTypeChoices() []string { } type RedisOut struct { - DefaultVersion string `json:"default_version,omitempty"` + DefaultVersion *string `json:"default_version,omitempty"` Description string `json:"description"` - LatestAvailableVersion string `json:"latest_available_version,omitempty"` + LatestAvailableVersion *string `json:"latest_available_version,omitempty"` ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } type ResultCodeOut struct { - Code string `json:"code"` - Dbname string `json:"dbname,omitempty"` + Code string `json:"code"` + Dbname *string `json:"dbname,omitempty"` } type RoleType string @@ -1177,7 +1187,7 @@ func RouteTypeChoices() []string { } type SchemaRegistryAclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionTypeAlt `json:"permission"` Resource string `json:"resource"` Username string `json:"username"` @@ -1190,13 +1200,13 @@ type ServiceCancelQueryIn struct { Terminate *bool `json:"terminate,omitempty"` } type ServiceCreateIn struct { - Cloud string `json:"cloud,omitempty"` + Cloud *string `json:"cloud,omitempty"` CopyTags *bool `json:"copy_tags,omitempty"` DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` - GroupName string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Maintenance *MaintenanceIn `json:"maintenance,omitempty"` Plan string `json:"plan"` - ProjectVpcId string `json:"project_vpc_id,omitempty"` + ProjectVpcId *string `json:"project_vpc_id,omitempty"` ServiceIntegrations *[]ServiceIntegrationIn `json:"service_integrations,omitempty"` ServiceName string `json:"service_name"` ServiceType string `json:"service_type"` @@ -1209,7 +1219,7 @@ type ServiceCreateIn struct { type ServiceCreateOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -1232,7 +1242,7 @@ type ServiceCreateOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -1245,9 +1255,9 @@ type ServiceCreateOut struct { Users []UserOut `json:"users,omitempty"` } type ServiceDatabaseCreateIn struct { - Database string `json:"database"` - LcCollate string `json:"lc_collate,omitempty"` - LcCtype string `json:"lc_ctype,omitempty"` + Database string `json:"database"` + LcCollate *string `json:"lc_collate,omitempty"` + LcCtype *string `json:"lc_ctype,omitempty"` } type ServiceGetMigrationStatusOut struct { Migration MigrationOut `json:"migration"` @@ -1256,7 +1266,7 @@ type ServiceGetMigrationStatusOut struct { type ServiceGetOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -1279,7 +1289,7 @@ type ServiceGetOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -1292,29 +1302,29 @@ type ServiceGetOut struct { Users []UserOut `json:"users,omitempty"` } type ServiceIntegrationIn struct { - DestEndpointId string `json:"dest_endpoint_id,omitempty"` - DestProject string `json:"dest_project,omitempty"` - DestService string `json:"dest_service,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` + DestProject *string `json:"dest_project,omitempty"` + DestService *string `json:"dest_service,omitempty"` IntegrationType IntegrationType `json:"integration_type"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` - SourceProject string `json:"source_project,omitempty"` - SourceService string `json:"source_service,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` + SourceProject *string `json:"source_project,omitempty"` + SourceService *string `json:"source_service,omitempty"` UserConfig *map[string]any `json:"user_config,omitempty"` } type ServiceIntegrationOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` @@ -1347,7 +1357,7 @@ func ServiceNotificationTypeChoices() []string { type ServiceOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -1370,7 +1380,7 @@ type ServiceOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -1392,9 +1402,9 @@ type ServicePlanOut struct { ShardCount *int `json:"shard_count,omitempty"` } type ServiceQueryActivityIn struct { - Limit *int `json:"limit,omitempty"` - Offset *int `json:"offset,omitempty"` - OrderBy string `json:"order_by,omitempty"` + Limit *int `json:"limit,omitempty"` + Offset *int `json:"offset,omitempty"` + OrderBy *string `json:"order_by,omitempty"` } type ServiceStateType string @@ -1432,14 +1442,14 @@ type ServiceTaskGetOut struct { TaskType string `json:"task_type"` } type ServiceUpdateIn struct { - Cloud string `json:"cloud,omitempty"` + Cloud *string `json:"cloud,omitempty"` DiskSpaceMb *float64 `json:"disk_space_mb,omitempty"` - GroupName string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Karapace *bool `json:"karapace,omitempty"` Maintenance *MaintenanceIn `json:"maintenance,omitempty"` - Plan string `json:"plan,omitempty"` + Plan *string `json:"plan,omitempty"` Powered *bool `json:"powered,omitempty"` - ProjectVpcId string `json:"project_vpc_id,omitempty"` + ProjectVpcId *string `json:"project_vpc_id,omitempty"` SchemaRegistryAuthz *bool `json:"schema_registry_authz,omitempty"` TechEmails *[]TechEmailIn `json:"tech_emails,omitempty"` TerminationProtection *bool `json:"termination_protection,omitempty"` @@ -1448,7 +1458,7 @@ type ServiceUpdateIn struct { type ServiceUpdateOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -1471,7 +1481,7 @@ type ServiceUpdateOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -1487,13 +1497,13 @@ type ServiceVersionOut struct { AivenEndOfLifeTime *time.Time `json:"aiven_end_of_life_time,omitempty"` AvailabilityEndTime *time.Time `json:"availability_end_time,omitempty"` AvailabilityStartTime *time.Time `json:"availability_start_time,omitempty"` - EndOfLifeHelpArticleUrl string `json:"end_of_life_help_article_url,omitempty"` - MajorVersion string `json:"major_version,omitempty"` - ServiceType string `json:"service_type,omitempty"` + EndOfLifeHelpArticleUrl *string `json:"end_of_life_help_article_url,omitempty"` + MajorVersion *string `json:"major_version,omitempty"` + ServiceType *string `json:"service_type,omitempty"` State ServiceVersionStateType `json:"state,omitempty"` TerminationTime *time.Time `json:"termination_time,omitempty"` - UpgradeToServiceType string `json:"upgrade_to_service_type,omitempty"` - UpgradeToVersion string `json:"upgrade_to_version,omitempty"` + UpgradeToServiceType *string `json:"upgrade_to_service_type,omitempty"` + UpgradeToVersion *string `json:"upgrade_to_version,omitempty"` UpstreamEndOfLifeTime *time.Time `json:"upstream_end_of_life_time,omitempty"` } type ServiceVersionStateType string @@ -1511,8 +1521,8 @@ func ServiceVersionStateTypeChoices() []string { } type ShardOut struct { - Name string `json:"name,omitempty"` - Position *int `json:"position,omitempty"` + Name *string `json:"name,omitempty"` + Position *int `json:"position,omitempty"` } type SortOrderType string @@ -1599,9 +1609,9 @@ func UnitTypeChoices() []string { } type UpdateOut struct { - Deadline string `json:"deadline,omitempty"` - Description string `json:"description,omitempty"` - StartAfter string `json:"start_after,omitempty"` + Deadline *string `json:"deadline,omitempty"` + Description *string `json:"description,omitempty"` + StartAfter *string `json:"start_after,omitempty"` StartAt *time.Time `json:"start_at,omitempty"` } type UsageType string @@ -1616,10 +1626,10 @@ func UsageTypeChoices() []string { } type UserOut struct { - AccessCert string `json:"access_cert,omitempty"` + AccessCert *string `json:"access_cert,omitempty"` AccessCertNotValidAfterTime *time.Time `json:"access_cert_not_valid_after_time,omitempty"` AccessControl *AccessControlOut `json:"access_control,omitempty"` - AccessKey string `json:"access_key,omitempty"` + AccessKey *string `json:"access_key,omitempty"` Authentication AuthenticationType `json:"authentication,omitempty"` ExpiringCertNotValidAfterTime *time.Time `json:"expiring_cert_not_valid_after_time,omitempty"` Password string `json:"password"` @@ -1657,7 +1667,7 @@ type serviceDatabaseListOut struct { Databases []DatabaseOut `json:"databases"` } type serviceEnableWritesOut struct { - Until string `json:"until,omitempty"` + Until *string `json:"until,omitempty"` } type serviceGetOut struct { Service ServiceGetOut `json:"service"` diff --git a/handler/serviceintegration/serviceintegration.go b/handler/serviceintegration/serviceintegration.go index 07c8643..1ee0dec 100644 --- a/handler/serviceintegration/serviceintegration.go +++ b/handler/serviceintegration/serviceintegration.go @@ -295,6 +295,7 @@ const ( IntegrationTypeFlink IntegrationType = "flink" IntegrationTypeFlinkExternalBigquery IntegrationType = "flink_external_bigquery" IntegrationTypeFlinkExternalKafka IntegrationType = "flink_external_kafka" + IntegrationTypeFlinkExternalPostgresql IntegrationType = "flink_external_postgresql" IntegrationTypeInternalConnectivity IntegrationType = "internal_connectivity" IntegrationTypeJolokia IntegrationType = "jolokia" IntegrationTypeKafkaConnect IntegrationType = "kafka_connect" @@ -320,7 +321,7 @@ const ( ) func IntegrationTypeChoices() []string { - return []string{"alertmanager", "autoscaler", "caching", "cassandra_cross_service_cluster", "clickhouse_credentials", "clickhouse_kafka", "clickhouse_postgresql", "dashboard", "datadog", "datasource", "external_aws_cloudwatch_logs", "external_aws_cloudwatch_metrics", "external_elasticsearch_logs", "external_google_cloud_logging", "external_opensearch_logs", "flink", "flink_external_bigquery", "flink_external_kafka", "internal_connectivity", "jolokia", "kafka_connect", "kafka_connect_postgresql", "kafka_logs", "kafka_mirrormaker", "logs", "m3aggregator", "m3coordinator", "metrics", "opensearch_cross_cluster_replication", "opensearch_cross_cluster_search", "prometheus", "read_replica", "rsyslog", "schema_registry_proxy", "stresstester", "thanoscompactor", "thanosquery", "thanosstore", "vector", "vmalert"} + return []string{"alertmanager", "autoscaler", "caching", "cassandra_cross_service_cluster", "clickhouse_credentials", "clickhouse_kafka", "clickhouse_postgresql", "dashboard", "datadog", "datasource", "external_aws_cloudwatch_logs", "external_aws_cloudwatch_metrics", "external_elasticsearch_logs", "external_google_cloud_logging", "external_opensearch_logs", "flink", "flink_external_bigquery", "flink_external_kafka", "flink_external_postgresql", "internal_connectivity", "jolokia", "kafka_connect", "kafka_connect_postgresql", "kafka_logs", "kafka_mirrormaker", "logs", "m3aggregator", "m3coordinator", "metrics", "opensearch_cross_cluster_replication", "opensearch_cross_cluster_search", "prometheus", "read_replica", "rsyslog", "schema_registry_proxy", "stresstester", "thanoscompactor", "thanosquery", "thanosstore", "vector", "vmalert"} } type IntegrationTypeOut struct { @@ -347,29 +348,29 @@ func LikelyErrorCauseTypeChoices() []string { } type ServiceIntegrationCreateIn struct { - DestEndpointId string `json:"dest_endpoint_id,omitempty"` - DestProject string `json:"dest_project,omitempty"` - DestService string `json:"dest_service,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` + DestProject *string `json:"dest_project,omitempty"` + DestService *string `json:"dest_service,omitempty"` IntegrationType IntegrationType `json:"integration_type"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` - SourceProject string `json:"source_project,omitempty"` - SourceService string `json:"source_service,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` + SourceProject *string `json:"source_project,omitempty"` + SourceService *string `json:"source_service,omitempty"` UserConfig *map[string]any `json:"user_config,omitempty"` } type ServiceIntegrationCreateOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` @@ -414,17 +415,17 @@ type ServiceIntegrationEndpointUpdateOut struct { type ServiceIntegrationGetOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` @@ -433,17 +434,17 @@ type ServiceIntegrationGetOut struct { type ServiceIntegrationOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` @@ -455,17 +456,17 @@ type ServiceIntegrationUpdateIn struct { type ServiceIntegrationUpdateOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` diff --git a/handler/serviceuser/serviceuser.go b/handler/serviceuser/serviceuser.go index c44d991..0fc4a26 100644 --- a/handler/serviceuser/serviceuser.go +++ b/handler/serviceuser/serviceuser.go @@ -107,7 +107,7 @@ func (h *ServiceUserHandler) ServiceUserGet(ctx context.Context, project string, } type AccessControlIn struct { - M3Group string `json:"m3_group,omitempty"` + M3Group *string `json:"m3_group,omitempty"` PgAllowReplication *bool `json:"pg_allow_replication,omitempty"` RedisAclCategories *[]string `json:"redis_acl_categories,omitempty"` RedisAclChannels *[]string `json:"redis_acl_channels,omitempty"` @@ -115,7 +115,7 @@ type AccessControlIn struct { RedisAclKeys *[]string `json:"redis_acl_keys,omitempty"` } type AccessControlOut struct { - M3Group string `json:"m3_group,omitempty"` + M3Group *string `json:"m3_group,omitempty"` PgAllowReplication *bool `json:"pg_allow_replication,omitempty"` RedisAclCategories []string `json:"redis_acl_categories,omitempty"` RedisAclChannels []string `json:"redis_acl_channels,omitempty"` @@ -123,16 +123,16 @@ type AccessControlOut struct { RedisAclKeys []string `json:"redis_acl_keys,omitempty"` } type AclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionType `json:"permission"` Topic string `json:"topic"` Username string `json:"username"` } type AdditionalRegionOut struct { - Cloud string `json:"cloud"` - PauseReason string `json:"pause_reason,omitempty"` - Paused *bool `json:"paused,omitempty"` - Region string `json:"region,omitempty"` + Cloud string `json:"cloud"` + PauseReason *string `json:"pause_reason,omitempty"` + Paused *bool `json:"paused,omitempty"` + Region *string `json:"region,omitempty"` } type AuthenticationType string @@ -151,15 +151,15 @@ type BackupOut struct { BackupName string `json:"backup_name"` BackupTime time.Time `json:"backup_time"` DataSize int `json:"data_size"` - StorageLocation string `json:"storage_location,omitempty"` + StorageLocation *string `json:"storage_location,omitempty"` } type ComponentOut struct { Component string `json:"component"` Host string `json:"host"` KafkaAuthenticationMethod KafkaAuthenticationMethodType `json:"kafka_authentication_method,omitempty"` - Path string `json:"path,omitempty"` + Path *string `json:"path,omitempty"` Port int `json:"port"` - PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` + PrivatelinkConnectionId *string `json:"privatelink_connection_id,omitempty"` Route RouteType `json:"route"` Ssl *bool `json:"ssl,omitempty"` Usage UsageType `json:"usage"` @@ -170,7 +170,7 @@ type ConnectionPoolOut struct { PoolMode PoolModeType `json:"pool_mode"` PoolName string `json:"pool_name"` PoolSize int `json:"pool_size"` - Username string `json:"username,omitempty"` + Username *string `json:"username,omitempty"` } type DowType string @@ -249,11 +249,11 @@ type MaintenanceOut struct { Updates []UpdateOut `json:"updates"` } type MetadataOut struct { - EndOfLifeHelpArticleUrl string `json:"end_of_life_help_article_url,omitempty"` - EndOfLifePolicyUrl string `json:"end_of_life_policy_url,omitempty"` + EndOfLifeHelpArticleUrl *string `json:"end_of_life_help_article_url,omitempty"` + EndOfLifePolicyUrl *string `json:"end_of_life_policy_url,omitempty"` ServiceEndOfLifeTime *time.Time `json:"service_end_of_life_time,omitempty"` - UpgradeToServiceType string `json:"upgrade_to_service_type,omitempty"` - UpgradeToVersion string `json:"upgrade_to_version,omitempty"` + UpgradeToServiceType *string `json:"upgrade_to_service_type,omitempty"` + UpgradeToVersion *string `json:"upgrade_to_version,omitempty"` } type NodeStateOut struct { Name string `json:"name"` @@ -372,7 +372,7 @@ func RouteTypeChoices() []string { } type SchemaRegistryAclOut struct { - Id string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` Permission PermissionTypeAlt `json:"permission"` Resource string `json:"resource"` Username string `json:"username"` @@ -380,17 +380,17 @@ type SchemaRegistryAclOut struct { type ServiceIntegrationOut struct { Active bool `json:"active"` Description string `json:"description"` - DestEndpoint string `json:"dest_endpoint,omitempty"` - DestEndpointId string `json:"dest_endpoint_id,omitempty"` + DestEndpoint *string `json:"dest_endpoint,omitempty"` + DestEndpointId *string `json:"dest_endpoint_id,omitempty"` DestProject string `json:"dest_project"` - DestService string `json:"dest_service,omitempty"` + DestService *string `json:"dest_service,omitempty"` DestServiceType string `json:"dest_service_type"` Enabled bool `json:"enabled"` IntegrationStatus *IntegrationStatusOut `json:"integration_status,omitempty"` IntegrationType string `json:"integration_type"` ServiceIntegrationId string `json:"service_integration_id"` - SourceEndpoint string `json:"source_endpoint,omitempty"` - SourceEndpointId string `json:"source_endpoint_id,omitempty"` + SourceEndpoint *string `json:"source_endpoint,omitempty"` + SourceEndpointId *string `json:"source_endpoint_id,omitempty"` SourceProject string `json:"source_project"` SourceService string `json:"source_service"` SourceServiceType string `json:"source_service_type"` @@ -432,10 +432,10 @@ type ServiceUserCreateIn struct { Username string `json:"username"` } type ServiceUserCreateOut struct { - AccessCert string `json:"access_cert,omitempty"` + AccessCert *string `json:"access_cert,omitempty"` AccessCertNotValidAfterTime *time.Time `json:"access_cert_not_valid_after_time,omitempty"` AccessControl *AccessControlOut `json:"access_control,omitempty"` - AccessKey string `json:"access_key,omitempty"` + AccessKey *string `json:"access_key,omitempty"` Authentication AuthenticationType `json:"authentication,omitempty"` ExpiringCertNotValidAfterTime *time.Time `json:"expiring_cert_not_valid_after_time,omitempty"` Password string `json:"password"` @@ -445,13 +445,13 @@ type ServiceUserCreateOut struct { type ServiceUserCredentialsModifyIn struct { AccessControl *AccessControlIn `json:"access_control,omitempty"` Authentication AuthenticationType `json:"authentication,omitempty"` - NewPassword string `json:"new_password,omitempty"` + NewPassword *string `json:"new_password,omitempty"` Operation OperationType `json:"operation"` } type ServiceUserCredentialsModifyOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -474,7 +474,7 @@ type ServiceUserCredentialsModifyOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -489,7 +489,7 @@ type ServiceUserCredentialsModifyOut struct { type ServiceUserCredentialsResetOut struct { Acl []AclOut `json:"acl,omitempty"` Backups []BackupOut `json:"backups,omitempty"` - CloudDescription string `json:"cloud_description,omitempty"` + CloudDescription *string `json:"cloud_description,omitempty"` CloudName string `json:"cloud_name"` Components []ComponentOut `json:"components,omitempty"` ConnectionInfo map[string]any `json:"connection_info,omitempty"` @@ -512,7 +512,7 @@ type ServiceUserCredentialsResetOut struct { ServiceName string `json:"service_name"` ServiceNotifications []ServiceNotificationOut `json:"service_notifications,omitempty"` ServiceType string `json:"service_type"` - ServiceTypeDescription string `json:"service_type_description,omitempty"` + ServiceTypeDescription *string `json:"service_type_description,omitempty"` ServiceUri string `json:"service_uri"` ServiceUriParams map[string]any `json:"service_uri_params,omitempty"` State ServiceStateType `json:"state"` @@ -525,10 +525,10 @@ type ServiceUserCredentialsResetOut struct { Users []UserOut `json:"users,omitempty"` } type ServiceUserGetOut struct { - AccessCert string `json:"access_cert,omitempty"` + AccessCert *string `json:"access_cert,omitempty"` AccessCertNotValidAfterTime *time.Time `json:"access_cert_not_valid_after_time,omitempty"` AccessControl *AccessControlOut `json:"access_control,omitempty"` - AccessKey string `json:"access_key,omitempty"` + AccessKey *string `json:"access_key,omitempty"` Authentication AuthenticationType `json:"authentication,omitempty"` ExpiringCertNotValidAfterTime *time.Time `json:"expiring_cert_not_valid_after_time,omitempty"` Password string `json:"password"` @@ -536,8 +536,8 @@ type ServiceUserGetOut struct { Username string `json:"username"` } type ShardOut struct { - Name string `json:"name,omitempty"` - Position *int `json:"position,omitempty"` + Name *string `json:"name,omitempty"` + Position *int `json:"position,omitempty"` } type StateOut struct { Errors []string `json:"errors"` @@ -584,9 +584,9 @@ func UnitTypeChoices() []string { } type UpdateOut struct { - Deadline string `json:"deadline,omitempty"` - Description string `json:"description,omitempty"` - StartAfter string `json:"start_after,omitempty"` + Deadline *string `json:"deadline,omitempty"` + Description *string `json:"description,omitempty"` + StartAfter *string `json:"start_after,omitempty"` StartAt *time.Time `json:"start_at,omitempty"` } type UsageType string @@ -601,10 +601,10 @@ func UsageTypeChoices() []string { } type UserOut struct { - AccessCert string `json:"access_cert,omitempty"` + AccessCert *string `json:"access_cert,omitempty"` AccessCertNotValidAfterTime *time.Time `json:"access_cert_not_valid_after_time,omitempty"` AccessControl *AccessControlOut `json:"access_control,omitempty"` - AccessKey string `json:"access_key,omitempty"` + AccessKey *string `json:"access_key,omitempty"` Authentication AuthenticationType `json:"authentication,omitempty"` ExpiringCertNotValidAfterTime *time.Time `json:"expiring_cert_not_valid_after_time,omitempty"` Password string `json:"password"` diff --git a/handler/user/user.go b/handler/user/user.go index d47487a..7153f28 100644 --- a/handler/user/user.go +++ b/handler/user/user.go @@ -438,14 +438,14 @@ type AccessTokenCreateOut struct { CreateTime time.Time `json:"create_time"` CreatedManually bool `json:"created_manually"` CurrentlyActive *bool `json:"currently_active,omitempty"` - Description string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` ExpiryTime *time.Time `json:"expiry_time,omitempty"` ExtendWhenUsed bool `json:"extend_when_used"` FullToken string `json:"full_token"` - LastIp string `json:"last_ip,omitempty"` + LastIp *string `json:"last_ip,omitempty"` LastUsedTime *time.Time `json:"last_used_time,omitempty"` - LastUserAgent string `json:"last_user_agent,omitempty"` - LastUserAgentHumanReadable string `json:"last_user_agent_human_readable,omitempty"` + LastUserAgent *string `json:"last_user_agent,omitempty"` + LastUserAgentHumanReadable *string `json:"last_user_agent_human_readable,omitempty"` MaxAgeSeconds float64 `json:"max_age_seconds"` Scopes []string `json:"scopes,omitempty"` TokenPrefix string `json:"token_prefix"` @@ -457,13 +457,13 @@ type AccessTokenUpdateOut struct { CreateTime time.Time `json:"create_time"` CreatedManually *bool `json:"created_manually,omitempty"` CurrentlyActive *bool `json:"currently_active,omitempty"` - Description string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` ExpiryTime *time.Time `json:"expiry_time,omitempty"` ExtendWhenUsed bool `json:"extend_when_used"` - LastIp string `json:"last_ip,omitempty"` + LastIp *string `json:"last_ip,omitempty"` LastUsedTime *time.Time `json:"last_used_time,omitempty"` - LastUserAgent string `json:"last_user_agent,omitempty"` - LastUserAgentHumanReadable string `json:"last_user_agent_human_readable,omitempty"` + LastUserAgent *string `json:"last_user_agent,omitempty"` + LastUserAgentHumanReadable *string `json:"last_user_agent_human_readable,omitempty"` MaxAgeSeconds float64 `json:"max_age_seconds"` Scopes []string `json:"scopes,omitempty"` TokenPrefix string `json:"token_prefix"` @@ -513,7 +513,7 @@ type AuthenticationMethodOut struct { DeleteTime time.Time `json:"delete_time"` LastUsedTime time.Time `json:"last_used_time"` MethodId string `json:"method_id"` - Name string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` PublicRemoteIdentity string `json:"public_remote_identity"` RemoteProviderId string `json:"remote_provider_id"` State AuthenticationMethodStateType `json:"state"` @@ -541,9 +541,9 @@ type CheckPasswordStrengthExistingUserOut struct { Score int `json:"score"` } type CheckPasswordStrengthNewUserIn struct { - Email string `json:"email,omitempty"` - Password string `json:"password"` - RealName string `json:"real_name,omitempty"` + Email *string `json:"email,omitempty"` + Password string `json:"password"` + RealName *string `json:"real_name,omitempty"` } type CheckPasswordStrengthNewUserOut struct { IsAcceptable *bool `json:"is_acceptable,omitempty"` @@ -581,13 +581,13 @@ type TokenOut struct { CreateTime time.Time `json:"create_time"` CreatedManually bool `json:"created_manually"` CurrentlyActive *bool `json:"currently_active,omitempty"` - Description string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` ExpiryTime *time.Time `json:"expiry_time,omitempty"` ExtendWhenUsed bool `json:"extend_when_used"` - LastIp string `json:"last_ip,omitempty"` + LastIp *string `json:"last_ip,omitempty"` LastUsedTime *time.Time `json:"last_used_time,omitempty"` - LastUserAgent string `json:"last_user_agent,omitempty"` - LastUserAgentHumanReadable string `json:"last_user_agent_human_readable,omitempty"` + LastUserAgent *string `json:"last_user_agent,omitempty"` + LastUserAgentHumanReadable *string `json:"last_user_agent_human_readable,omitempty"` MaxAgeSeconds float64 `json:"max_age_seconds"` Scopes []string `json:"scopes,omitempty"` TokenPrefix string `json:"token_prefix"` @@ -606,46 +606,46 @@ type TwoFactorAuthConfigureOtpOut struct { Token string `json:"token"` } type TwoFactorAuthConfigureOut struct { - Method string `json:"method"` - Qrcode string `json:"qrcode,omitempty"` - Uri string `json:"uri,omitempty"` + Method string `json:"method"` + Qrcode *string `json:"qrcode,omitempty"` + Uri *string `json:"uri,omitempty"` } type UserAccountInvitesAcceptIn struct { - AccountId string `json:"account_id"` - TeamId string `json:"team_id,omitempty"` + AccountId string `json:"account_id"` + TeamId *string `json:"team_id,omitempty"` } type UserAuthIn struct { - Email string `json:"email"` - Otp string `json:"otp,omitempty"` - Password string `json:"password"` + Email string `json:"email"` + Otp *string `json:"otp,omitempty"` + Password string `json:"password"` } type UserAuthLoginOptionsIn struct { - Email string `json:"email,omitempty"` + Email *string `json:"email,omitempty"` } type UserAuthLoginOptionsOut struct { None []map[string]any `json:"None,omitempty"` Action ActionType `json:"action"` Method MethodType `json:"method,omitempty"` - Name string `json:"name,omitempty"` - RedirectUrl string `json:"redirect_url,omitempty"` + Name *string `json:"name,omitempty"` + RedirectUrl *string `json:"redirect_url,omitempty"` } type UserAuthOut struct { - ReturnUrl string `json:"return_url,omitempty"` - State string `json:"state"` - Token string `json:"token"` - UserEmail string `json:"user_email"` + ReturnUrl *string `json:"return_url,omitempty"` + State string `json:"state"` + Token string `json:"token"` + UserEmail string `json:"user_email"` } type UserCreateIn struct { - Company string `json:"company,omitempty"` - CountryCode string `json:"country_code,omitempty"` - CreditCode string `json:"credit_code,omitempty"` + Company *string `json:"company,omitempty"` + CountryCode *string `json:"country_code,omitempty"` + CreditCode *string `json:"credit_code,omitempty"` Email string `json:"email"` EmailCommunicationCategories *[]string `json:"email_communication_categories,omitempty"` - Origin string `json:"origin,omitempty"` - Password string `json:"password,omitempty"` + Origin *string `json:"origin,omitempty"` + Password *string `json:"password,omitempty"` RealName string `json:"real_name"` - State string `json:"state,omitempty"` - Token string `json:"token,omitempty"` + State *string `json:"state,omitempty"` + Token *string `json:"token,omitempty"` } type UserCreateOut struct { State string `json:"state"` @@ -656,48 +656,49 @@ type UserCreateOut struct { type UserGroupOut struct { CreateTime time.Time `json:"create_time"` Description string `json:"description"` + ManagedByScim bool `json:"managed_by_scim"` UpdateTime time.Time `json:"update_time"` UserGroupId string `json:"user_group_id"` UserGroupName string `json:"user_group_name"` } type UserInfoOut struct { Auth []string `json:"auth"` - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` - Department string `json:"department,omitempty"` + Department *string `json:"department,omitempty"` Features map[string]any `json:"features,omitempty"` Intercom IntercomOut `json:"intercom"` Invitations []InvitationOut `json:"invitations"` - JobTitle string `json:"job_title,omitempty"` + JobTitle *string `json:"job_title,omitempty"` ManagedByScim *bool `json:"managed_by_scim,omitempty"` - ManagingOrganizationId string `json:"managing_organization_id,omitempty"` + ManagingOrganizationId *string `json:"managing_organization_id,omitempty"` ProjectMembership ProjectMembershipOut `json:"project_membership"` ProjectMemberships *ProjectMembershipsOut `json:"project_memberships,omitempty"` Projects []string `json:"projects"` RealName string `json:"real_name"` State string `json:"state"` - TokenValidityBegin string `json:"token_validity_begin,omitempty"` + TokenValidityBegin *string `json:"token_validity_begin,omitempty"` User string `json:"user"` UserId string `json:"user_id"` } type UserOut struct { Auth []string `json:"auth"` - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` - Department string `json:"department,omitempty"` + Department *string `json:"department,omitempty"` Features map[string]any `json:"features,omitempty"` Invitations []InvitationOut `json:"invitations"` - JobTitle string `json:"job_title,omitempty"` + JobTitle *string `json:"job_title,omitempty"` ManagedByScim *bool `json:"managed_by_scim,omitempty"` - ManagingOrganizationId string `json:"managing_organization_id,omitempty"` + ManagingOrganizationId *string `json:"managing_organization_id,omitempty"` ProjectMembership ProjectMembershipOut `json:"project_membership"` ProjectMemberships *ProjectMembershipsOut `json:"project_memberships,omitempty"` Projects []string `json:"projects"` RealName string `json:"real_name"` State string `json:"state"` - TokenValidityBegin string `json:"token_validity_begin,omitempty"` + TokenValidityBegin *string `json:"token_validity_begin,omitempty"` User string `json:"user"` UserId string `json:"user_id"` } @@ -712,30 +713,30 @@ type UserPasswordResetRequestIn struct { Email string `json:"email"` } type UserUpdateIn struct { - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` - Department string `json:"department,omitempty"` - JobTitle string `json:"job_title,omitempty"` - RealName string `json:"real_name"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` + Department *string `json:"department,omitempty"` + JobTitle *string `json:"job_title,omitempty"` + RealName string `json:"real_name"` } type UserUpdateOut struct { Auth []string `json:"auth"` - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` CreateTime *time.Time `json:"create_time,omitempty"` - Department string `json:"department,omitempty"` + Department *string `json:"department,omitempty"` Features map[string]any `json:"features,omitempty"` Intercom IntercomOut `json:"intercom"` Invitations []InvitationOut `json:"invitations"` - JobTitle string `json:"job_title,omitempty"` + JobTitle *string `json:"job_title,omitempty"` ManagedByScim *bool `json:"managed_by_scim,omitempty"` - ManagingOrganizationId string `json:"managing_organization_id,omitempty"` + ManagingOrganizationId *string `json:"managing_organization_id,omitempty"` ProjectMembership ProjectMembershipOut `json:"project_membership"` ProjectMemberships *ProjectMembershipsOut `json:"project_memberships,omitempty"` Projects []string `json:"projects"` RealName string `json:"real_name"` State string `json:"state"` - TokenValidityBegin string `json:"token_validity_begin,omitempty"` + TokenValidityBegin *string `json:"token_validity_begin,omitempty"` User string `json:"user"` UserId string `json:"user_id"` } diff --git a/handler/usergroup/usergroup.go b/handler/usergroup/usergroup.go index 7b1ffc4..4deae9b 100644 --- a/handler/usergroup/usergroup.go +++ b/handler/usergroup/usergroup.go @@ -157,6 +157,7 @@ type UserGroupCreateIn struct { type UserGroupCreateOut struct { CreateTime time.Time `json:"create_time"` Description string `json:"description"` + ManagedByScim bool `json:"managed_by_scim"` UpdateTime time.Time `json:"update_time"` UserGroupId string `json:"user_group_id"` UserGroupName string `json:"user_group_name"` @@ -164,6 +165,7 @@ type UserGroupCreateOut struct { type UserGroupGetOut struct { CreateTime time.Time `json:"create_time"` Description string `json:"description"` + ManagedByScim bool `json:"managed_by_scim"` UpdateTime time.Time `json:"update_time"` UserGroupId string `json:"user_group_id"` UserGroupName string `json:"user_group_name"` @@ -175,31 +177,33 @@ type UserGroupMembersUpdateIn struct { type UserGroupOut struct { CreateTime time.Time `json:"create_time"` Description string `json:"description"` + ManagedByScim bool `json:"managed_by_scim"` MemberCount int `json:"member_count"` UpdateTime time.Time `json:"update_time"` UserGroupId string `json:"user_group_id"` UserGroupName string `json:"user_group_name"` } type UserGroupUpdateIn struct { - Description string `json:"description,omitempty"` - UserGroupName string `json:"user_group_name,omitempty"` + Description *string `json:"description,omitempty"` + UserGroupName *string `json:"user_group_name,omitempty"` } type UserGroupUpdateOut struct { CreateTime time.Time `json:"create_time"` Description string `json:"description"` + ManagedByScim bool `json:"managed_by_scim"` UpdateTime time.Time `json:"update_time"` UserGroupId string `json:"user_group_id"` UserGroupName string `json:"user_group_name"` } type UserInfoOut struct { - City string `json:"city,omitempty"` - Country string `json:"country,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` CreateTime time.Time `json:"create_time"` - Department string `json:"department,omitempty"` + Department *string `json:"department,omitempty"` IsApplicationUser bool `json:"is_application_user"` - JobTitle string `json:"job_title,omitempty"` + JobTitle *string `json:"job_title,omitempty"` ManagedByScim bool `json:"managed_by_scim"` - ManagingOrganizationId string `json:"managing_organization_id,omitempty"` + ManagingOrganizationId *string `json:"managing_organization_id,omitempty"` RealName string `json:"real_name"` State string `json:"state"` UserEmail string `json:"user_email"` diff --git a/handler/vpc/vpc.go b/handler/vpc/vpc.go index 311abfc..75001aa 100644 --- a/handler/vpc/vpc.go +++ b/handler/vpc/vpc.go @@ -187,17 +187,17 @@ func (h *VpcHandler) VpcPeeringConnectionWithResourceGroupDelete(ctx context.Con } type AddIn struct { - Cidr string `json:"cidr"` - PeerCloudAccount string `json:"peer_cloud_account"` - PeerResourceGroup string `json:"peer_resource_group,omitempty"` - PeerVpc string `json:"peer_vpc"` + Cidr string `json:"cidr"` + PeerCloudAccount string `json:"peer_cloud_account"` + PeerResourceGroup *string `json:"peer_resource_group,omitempty"` + PeerVpc string `json:"peer_vpc"` } type PeeringConnectionIn struct { - PeerAzureAppId string `json:"peer_azure_app_id,omitempty"` - PeerAzureTenantId string `json:"peer_azure_tenant_id,omitempty"` + PeerAzureAppId *string `json:"peer_azure_app_id,omitempty"` + PeerAzureTenantId *string `json:"peer_azure_tenant_id,omitempty"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` - PeerResourceGroup string `json:"peer_resource_group,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` + PeerResourceGroup *string `json:"peer_resource_group,omitempty"` PeerVpc string `json:"peer_vpc"` UserPeerNetworkCidrs *[]string `json:"user_peer_network_cidrs,omitempty"` } @@ -206,7 +206,7 @@ type PeeringConnectionOut struct { PeerAzureAppId string `json:"peer_azure_app_id"` PeerAzureTenantId string `json:"peer_azure_tenant_id"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` PeerResourceGroup string `json:"peer_resource_group"` PeerVpc string `json:"peer_vpc"` State VpcPeeringConnectionStateType `json:"state"` @@ -230,7 +230,7 @@ type VpcCreateOut struct { CreateTime time.Time `json:"create_time"` NetworkCidr string `json:"network_cidr"` PeeringConnections []PeeringConnectionOut `json:"peering_connections"` - PendingBuildOnlyPeeringConnections string `json:"pending_build_only_peering_connections,omitempty"` + PendingBuildOnlyPeeringConnections *string `json:"pending_build_only_peering_connections,omitempty"` ProjectVpcId string `json:"project_vpc_id"` State VpcStateType `json:"state"` UpdateTime time.Time `json:"update_time"` @@ -240,7 +240,7 @@ type VpcDeleteOut struct { CreateTime time.Time `json:"create_time"` NetworkCidr string `json:"network_cidr"` PeeringConnections []PeeringConnectionOut `json:"peering_connections"` - PendingBuildOnlyPeeringConnections string `json:"pending_build_only_peering_connections,omitempty"` + PendingBuildOnlyPeeringConnections *string `json:"pending_build_only_peering_connections,omitempty"` ProjectVpcId string `json:"project_vpc_id"` State VpcStateType `json:"state"` UpdateTime time.Time `json:"update_time"` @@ -250,7 +250,7 @@ type VpcGetOut struct { CreateTime time.Time `json:"create_time"` NetworkCidr string `json:"network_cidr"` PeeringConnections []PeeringConnectionOut `json:"peering_connections"` - PendingBuildOnlyPeeringConnections string `json:"pending_build_only_peering_connections,omitempty"` + PendingBuildOnlyPeeringConnections *string `json:"pending_build_only_peering_connections,omitempty"` ProjectVpcId string `json:"project_vpc_id"` State VpcStateType `json:"state"` UpdateTime time.Time `json:"update_time"` @@ -264,11 +264,11 @@ type VpcOut struct { UpdateTime time.Time `json:"update_time"` } type VpcPeeringConnectionCreateIn struct { - PeerAzureAppId string `json:"peer_azure_app_id,omitempty"` - PeerAzureTenantId string `json:"peer_azure_tenant_id,omitempty"` + PeerAzureAppId *string `json:"peer_azure_app_id,omitempty"` + PeerAzureTenantId *string `json:"peer_azure_tenant_id,omitempty"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` - PeerResourceGroup string `json:"peer_resource_group,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` + PeerResourceGroup *string `json:"peer_resource_group,omitempty"` PeerVpc string `json:"peer_vpc"` UserPeerNetworkCidrs *[]string `json:"user_peer_network_cidrs,omitempty"` } @@ -277,7 +277,7 @@ type VpcPeeringConnectionCreateOut struct { PeerAzureAppId string `json:"peer_azure_app_id"` PeerAzureTenantId string `json:"peer_azure_tenant_id"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` PeerResourceGroup string `json:"peer_resource_group"` PeerVpc string `json:"peer_vpc"` State VpcPeeringConnectionStateType `json:"state"` @@ -291,7 +291,7 @@ type VpcPeeringConnectionDeleteOut struct { PeerAzureAppId string `json:"peer_azure_app_id"` PeerAzureTenantId string `json:"peer_azure_tenant_id"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` PeerResourceGroup string `json:"peer_resource_group"` PeerVpc string `json:"peer_vpc"` State VpcPeeringConnectionStateType `json:"state"` @@ -355,7 +355,7 @@ type VpcPeeringConnectionUpdateOut struct { CreateTime time.Time `json:"create_time"` NetworkCidr string `json:"network_cidr"` PeeringConnections []PeeringConnectionOut `json:"peering_connections"` - PendingBuildOnlyPeeringConnections string `json:"pending_build_only_peering_connections,omitempty"` + PendingBuildOnlyPeeringConnections *string `json:"pending_build_only_peering_connections,omitempty"` ProjectVpcId string `json:"project_vpc_id"` State VpcPeeringConnectionStateTypeAlt `json:"state"` UpdateTime time.Time `json:"update_time"` @@ -365,7 +365,7 @@ type VpcPeeringConnectionWithRegionDeleteOut struct { PeerAzureAppId string `json:"peer_azure_app_id"` PeerAzureTenantId string `json:"peer_azure_tenant_id"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` PeerResourceGroup string `json:"peer_resource_group"` PeerVpc string `json:"peer_vpc"` State VpcPeeringConnectionStateType `json:"state"` @@ -379,7 +379,7 @@ type VpcPeeringConnectionWithResourceGroupDeleteOut struct { PeerAzureAppId string `json:"peer_azure_app_id"` PeerAzureTenantId string `json:"peer_azure_tenant_id"` PeerCloudAccount string `json:"peer_cloud_account"` - PeerRegion string `json:"peer_region,omitempty"` + PeerRegion *string `json:"peer_region,omitempty"` PeerResourceGroup string `json:"peer_resource_group"` PeerVpc string `json:"peer_vpc"` State VpcPeeringConnectionStateType `json:"state"` @@ -402,9 +402,9 @@ func VpcStateTypeChoices() []string { } type WarningOut struct { - ConflictingAwsAccountId string `json:"conflicting_aws_account_id,omitempty"` - ConflictingAwsVpcId string `json:"conflicting_aws_vpc_id,omitempty"` - ConflictingAwsVpcPeeringConnectionId string `json:"conflicting_aws_vpc_peering_connection_id,omitempty"` + ConflictingAwsAccountId *string `json:"conflicting_aws_account_id,omitempty"` + ConflictingAwsVpcId *string `json:"conflicting_aws_vpc_id,omitempty"` + ConflictingAwsVpcPeeringConnectionId *string `json:"conflicting_aws_vpc_peering_connection_id,omitempty"` Message string `json:"message"` Type WarningType `json:"type"` }