From 0415dcd027c87ee399326bb3948ce631664777ef Mon Sep 17 00:00:00 2001 From: Thomas Rooney Date: Wed, 8 Nov 2023 10:32:38 +0000 Subject: [PATCH] chore: prefer non-conflicting union type names in go sdk --- README.md | 2 - gen.yaml | 2 +- .../destination_awsdatalake_resource_sdk.go | 8 +- ...stination_azureblobstorage_resource_sdk.go | 6 +- .../destination_bigquery_resource_sdk.go | 12 +- ...ation_bigquerydenormalized_resource_sdk.go | 8 +- .../destination_clickhouse_resource_sdk.go | 6 +- .../destination_databricks_resource_sdk.go | 8 +- .../destination_devnull_resource_sdk.go | 2 +- .../destination_elasticsearch_resource_sdk.go | 4 +- .../destination_firebolt_resource_sdk.go | 4 +- .../provider/destination_gcs_resource_sdk.go | 42 +- .../destination_langchain_resource_sdk.go | 12 +- .../destination_milvus_resource_sdk.go | 22 +- .../destination_mongodb_resource_sdk.go | 22 +- .../destination_mssql_resource_sdk.go | 16 +- .../destination_mysql_resource_sdk.go | 12 +- .../destination_oracle_resource_sdk.go | 12 +- .../destination_pinecone_resource_sdk.go | 12 +- .../destination_postgres_resource_sdk.go | 24 +- .../destination_redis_resource_sdk.go | 20 +- .../destination_redshift_resource_sdk.go | 20 +- .../provider/destination_s3_resource_sdk.go | 56 +-- .../destination_s3glue_resource_sdk.go | 12 +- .../destination_snowflake_resource_sdk.go | 6 +- .../destination_vertica_resource_sdk.go | 12 +- .../provider/source_airtable_resource_sdk.go | 6 +- .../provider/source_alloydb_resource_sdk.go | 44 +-- .../provider/source_asana_resource_sdk.go | 4 +- .../provider/source_auth0_resource_sdk.go | 4 +- .../source_azureblobstorage_resource_sdk.go | 4 +- .../source_clickhouse_resource_sdk.go | 12 +- .../source_e2etestcloud_resource_sdk.go | 4 +- .../provider/source_fauna_resource_sdk.go | 4 +- .../source_filesecure_resource_sdk.go | 16 +- .../provider/source_github_resource_sdk.go | 6 +- .../provider/source_gitlab_resource_sdk.go | 6 +- ...rce_googleanalyticsdataapi_resource_sdk.go | 4 +- .../source_googleanalyticsv4_resource_sdk.go | 8 +- .../source_googledirectory_resource_sdk.go | 4 +- ...source_googlesearchconsole_resource_sdk.go | 8 +- .../source_googlesheets_resource_sdk.go | 8 +- .../provider/source_harvest_resource_sdk.go | 6 +- .../provider/source_hubspot_resource_sdk.go | 6 +- .../source_leverhiring_resource_sdk.go | 4 +- .../source_linkedinads_resource_sdk.go | 6 +- .../source_linkedinpages_resource_sdk.go | 8 +- .../provider/source_mailchimp_resource_sdk.go | 6 +- .../source_microsoftteams_resource_sdk.go | 4 +- .../provider/source_mixpanel_resource_sdk.go | 4 +- .../provider/source_monday_resource_sdk.go | 6 +- .../provider/source_mongodb_resource_sdk.go | 12 +- .../provider/source_mssql_resource_sdk.go | 24 +- .../provider/source_mysql_resource_sdk.go | 28 +- .../provider/source_notion_resource_sdk.go | 8 +- internal/provider/source_okta_resource_sdk.go | 8 +- .../provider/source_oracle_resource_sdk.go | 20 +- .../source_outbrainamplify_resource_sdk.go | 8 +- .../provider/source_pinterest_resource_sdk.go | 8 +- .../provider/source_postgres_resource_sdk.go | 44 +-- .../source_quickbooks_resource_sdk.go | 4 +- .../provider/source_retently_resource_sdk.go | 4 +- internal/provider/source_s3_resource_sdk.go | 22 +- .../provider/source_salesloft_resource_sdk.go | 4 +- internal/provider/source_sftp_resource_sdk.go | 8 +- .../provider/source_shopify_resource_sdk.go | 6 +- .../provider/source_slack_resource_sdk.go | 6 +- .../source_smartsheets_resource_sdk.go | 6 +- .../provider/source_snowflake_resource_sdk.go | 8 +- .../provider/source_square_resource_sdk.go | 6 +- .../source_surveysparrow_resource_sdk.go | 4 +- .../source_tiktokmarketing_resource_sdk.go | 6 +- .../source_trustpilot_resource_sdk.go | 8 +- .../provider/source_typeform_resource_sdk.go | 8 +- .../source_zendeskchat_resource_sdk.go | 8 +- .../source_zendesksunshine_resource_sdk.go | 8 +- .../source_zendesksupport_resource_sdk.go | 8 +- .../source_zendesktalk_resource_sdk.go | 8 +- .../models/shared/destinationawsdatalake.go | 96 ++--- .../shared/destinationawsdatalakeupdate.go | 8 +- .../shared/destinationazureblobstorage.go | 48 +-- .../destinationazureblobstorageupdate.go | 28 +- .../pkg/models/shared/destinationbigquery.go | 72 ++-- .../shared/destinationbigquerydenormalized.go | 72 ++-- .../destinationbigquerydenormalizedupdate.go | 28 +- .../shared/destinationbigqueryupdate.go | 72 ++-- .../models/shared/destinationclickhouse.go | 72 ++-- .../shared/destinationclickhouseupdate.go | 6 +- .../models/shared/destinationdatabricks.go | 72 ++-- .../shared/destinationdatabricksupdate.go | 32 +- .../pkg/models/shared/destinationdevnull.go | 24 +- .../models/shared/destinationelasticsearch.go | 48 +-- .../shared/destinationelasticsearchupdate.go | 4 +- .../pkg/models/shared/destinationfirebolt.go | 48 +-- .../shared/destinationfireboltupdate.go | 4 +- .../sdk/pkg/models/shared/destinationgcs.go | 360 +++++++++--------- .../pkg/models/shared/destinationgcsupdate.go | 164 ++++---- .../pkg/models/shared/destinationlangchain.go | 120 +++--- .../shared/destinationlangchainupdate.go | 32 +- .../pkg/models/shared/destinationmilvus.go | 168 ++++---- .../models/shared/destinationmilvusupdate.go | 108 +++--- .../pkg/models/shared/destinationmongodb.go | 192 +++++----- .../models/shared/destinationmongodbupdate.go | 80 ++-- .../sdk/pkg/models/shared/destinationmssql.go | 120 +++--- .../models/shared/destinationmssqlupdate.go | 76 ++-- .../sdk/pkg/models/shared/destinationmysql.go | 72 ++-- .../models/shared/destinationmysqlupdate.go | 72 ++-- .../pkg/models/shared/destinationoracle.go | 72 ++-- .../models/shared/destinationoracleupdate.go | 72 ++-- .../pkg/models/shared/destinationpinecone.go | 72 ++-- .../shared/destinationpineconeupdate.go | 72 ++-- .../pkg/models/shared/destinationpostgres.go | 216 +++++------ .../shared/destinationpostgresupdate.go | 84 ++-- .../sdk/pkg/models/shared/destinationredis.go | 120 +++--- .../models/shared/destinationredisupdate.go | 120 +++--- .../pkg/models/shared/destinationredshift.go | 168 ++++---- .../shared/destinationredshiftupdate.go | 88 ++--- .../sdk/pkg/models/shared/destinations3.go | 336 ++++++++-------- .../pkg/models/shared/destinations3glue.go | 72 ++-- .../models/shared/destinations3glueupdate.go | 72 ++-- .../pkg/models/shared/destinations3update.go | 336 ++++++++-------- .../pkg/models/shared/destinationsnowflake.go | 72 ++-- .../shared/destinationsnowflakeupdate.go | 6 +- .../pkg/models/shared/destinationvertica.go | 72 ++-- .../models/shared/destinationverticaupdate.go | 72 ++-- .../sdk/pkg/models/shared/sourceairtable.go | 48 +-- .../pkg/models/shared/sourceairtableupdate.go | 28 +- .../sdk/pkg/models/shared/sourcealloydb.go | 288 +++++++------- .../pkg/models/shared/sourcealloydbupdate.go | 248 ++++++------ internal/sdk/pkg/models/shared/sourceasana.go | 48 +-- .../pkg/models/shared/sourceasanaupdate.go | 4 +- internal/sdk/pkg/models/shared/sourceauth0.go | 48 +-- .../pkg/models/shared/sourceauth0update.go | 4 +- .../models/shared/sourceazureblobstorage.go | 24 +- .../shared/sourceazureblobstorageupdate.go | 24 +- .../sdk/pkg/models/shared/sourceclickhouse.go | 72 ++-- .../models/shared/sourceclickhouseupdate.go | 72 ++-- .../pkg/models/shared/sourcee2etestcloud.go | 48 +-- .../models/shared/sourcee2etestcloudupdate.go | 4 +- internal/sdk/pkg/models/shared/sourcefauna.go | 48 +-- .../sdk/pkg/models/shared/sourcefilesecure.go | 168 ++++---- .../models/shared/sourcefilesecureupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcegithub.go | 48 +-- .../pkg/models/shared/sourcegithubupdate.go | 28 +- .../sdk/pkg/models/shared/sourcegitlab.go | 48 +-- .../pkg/models/shared/sourcegitlabupdate.go | 28 +- .../shared/sourcegoogleanalyticsdataapi.go | 48 +-- .../sourcegoogleanalyticsdataapiupdate.go | 4 +- .../models/shared/sourcegoogleanalyticsv4.go | 48 +-- .../shared/sourcegoogleanalyticsv4update.go | 48 +-- .../models/shared/sourcegoogledirectory.go | 48 +-- .../shared/sourcegoogledirectoryupdate.go | 4 +- .../shared/sourcegooglesearchconsole.go | 48 +-- .../shared/sourcegooglesearchconsoleupdate.go | 48 +-- .../pkg/models/shared/sourcegooglesheets.go | 48 +-- .../models/shared/sourcegooglesheetsupdate.go | 48 +-- .../sdk/pkg/models/shared/sourceharvest.go | 48 +-- .../pkg/models/shared/sourceharvestupdate.go | 28 +- .../sdk/pkg/models/shared/sourcehubspot.go | 48 +-- .../pkg/models/shared/sourcehubspotupdate.go | 28 +- .../pkg/models/shared/sourceleverhiring.go | 48 +-- .../models/shared/sourceleverhiringupdate.go | 4 +- .../pkg/models/shared/sourcelinkedinads.go | 48 +-- .../models/shared/sourcelinkedinadsupdate.go | 28 +- .../pkg/models/shared/sourcelinkedinpages.go | 48 +-- .../shared/sourcelinkedinpagesupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcemailchimp.go | 48 +-- .../models/shared/sourcemailchimpupdate.go | 28 +- .../pkg/models/shared/sourcemicrosoftteams.go | 48 +-- .../shared/sourcemicrosoftteamsupdate.go | 4 +- .../sdk/pkg/models/shared/sourcemixpanel.go | 48 +-- .../pkg/models/shared/sourcemixpanelupdate.go | 4 +- .../sdk/pkg/models/shared/sourcemonday.go | 48 +-- .../pkg/models/shared/sourcemondayupdate.go | 28 +- .../sdk/pkg/models/shared/sourcemongodb.go | 72 ++-- .../pkg/models/shared/sourcemongodbupdate.go | 72 ++-- internal/sdk/pkg/models/shared/sourcemssql.go | 168 ++++---- .../pkg/models/shared/sourcemssqlupdate.go | 124 +++--- internal/sdk/pkg/models/shared/sourcemysql.go | 216 +++++------ .../pkg/models/shared/sourcemysqlupdate.go | 136 +++---- .../sdk/pkg/models/shared/sourcenotion.go | 48 +-- .../pkg/models/shared/sourcenotionupdate.go | 48 +-- internal/sdk/pkg/models/shared/sourceokta.go | 48 +-- .../sdk/pkg/models/shared/sourceoktaupdate.go | 48 +-- .../sdk/pkg/models/shared/sourceoracle.go | 168 ++++---- .../pkg/models/shared/sourceoracleupdate.go | 80 ++-- .../models/shared/sourceoutbrainamplify.go | 48 +-- .../shared/sourceoutbrainamplifyupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcepinterest.go | 48 +-- .../models/shared/sourcepinterestupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcepostgres.go | 288 +++++++------- .../pkg/models/shared/sourcepostgresupdate.go | 248 ++++++------ .../sdk/pkg/models/shared/sourcequickbooks.go | 24 +- .../models/shared/sourcequickbooksupdate.go | 24 +- .../sdk/pkg/models/shared/sourceretently.go | 48 +-- .../pkg/models/shared/sourceretentlyupdate.go | 4 +- internal/sdk/pkg/models/shared/sources3.go | 264 ++++++------- .../sdk/pkg/models/shared/sources3update.go | 14 +- .../sdk/pkg/models/shared/sourcesalesloft.go | 48 +-- .../models/shared/sourcesalesloftupdate.go | 4 +- internal/sdk/pkg/models/shared/sourcesftp.go | 48 +-- .../sdk/pkg/models/shared/sourcesftpupdate.go | 48 +-- .../sdk/pkg/models/shared/sourceshopify.go | 48 +-- .../pkg/models/shared/sourceshopifyupdate.go | 28 +- internal/sdk/pkg/models/shared/sourceslack.go | 48 +-- .../pkg/models/shared/sourceslackupdate.go | 28 +- .../pkg/models/shared/sourcesmartsheets.go | 48 +-- .../models/shared/sourcesmartsheetsupdate.go | 28 +- .../sdk/pkg/models/shared/sourcesnowflake.go | 48 +-- .../models/shared/sourcesnowflakeupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcesquare.go | 48 +-- .../pkg/models/shared/sourcesquareupdate.go | 28 +- .../pkg/models/shared/sourcesurveysparrow.go | 48 +-- .../shared/sourcesurveysparrowupdate.go | 4 +- .../models/shared/sourcetiktokmarketing.go | 48 +-- .../shared/sourcetiktokmarketingupdate.go | 28 +- .../sdk/pkg/models/shared/sourcetrustpilot.go | 48 +-- .../models/shared/sourcetrustpilotupdate.go | 48 +-- .../sdk/pkg/models/shared/sourcetypeform.go | 48 +-- .../pkg/models/shared/sourcetypeformupdate.go | 48 +-- .../pkg/models/shared/sourcezendeskchat.go | 48 +-- .../models/shared/sourcezendeskchatupdate.go | 48 +-- .../models/shared/sourcezendesksunshine.go | 48 +-- .../shared/sourcezendesksunshineupdate.go | 48 +-- .../pkg/models/shared/sourcezendesksupport.go | 48 +-- .../shared/sourcezendesksupportupdate.go | 48 +-- .../pkg/models/shared/sourcezendesktalk.go | 48 +-- .../models/shared/sourcezendesktalkupdate.go | 48 +-- 228 files changed, 5625 insertions(+), 5627 deletions(-) diff --git a/README.md b/README.md index c82c25547..44ceb36e6 100755 --- a/README.md +++ b/README.md @@ -60,8 +60,6 @@ TF_REATTACH_PROVIDERS=... terraform apply - - diff --git a/gen.yaml b/gen.yaml index b4f37c7f2..d9c3f0107 100755 --- a/gen.yaml +++ b/gen.yaml @@ -6,7 +6,7 @@ features: terraform: additionalProperties: 0.1.1 constsAndDefaults: 0.1.1 - core: 3.2.1 + core: 3.3.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 unions: 2.81.5 diff --git a/internal/provider/destination_awsdatalake_resource_sdk.go b/internal/provider/destination_awsdatalake_resource_sdk.go index 61d8b4e3d..f4d7d54d6 100644 --- a/internal/provider/destination_awsdatalake_resource_sdk.go +++ b/internal/provider/destination_awsdatalake_resource_sdk.go @@ -31,7 +31,7 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat } if destinationAwsDatalakeIAMRole != nil { credentials = shared.DestinationAwsDatalakeAuthenticationMode{ - IAMRole: destinationAwsDatalakeIAMRole, + DestinationAwsDatalakeIAMRole: destinationAwsDatalakeIAMRole, } } var destinationAwsDatalakeIAMUser *shared.DestinationAwsDatalakeIAMUser @@ -45,7 +45,7 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat } if destinationAwsDatalakeIAMUser != nil { credentials = shared.DestinationAwsDatalakeAuthenticationMode{ - IAMUser: destinationAwsDatalakeIAMUser, + DestinationAwsDatalakeIAMUser: destinationAwsDatalakeIAMUser, } } var format *shared.DestinationAwsDatalakeOutputFormatWildcard @@ -71,7 +71,7 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat } if destinationAwsDatalakeJSONLinesNewlineDelimitedJSON != nil { format = &shared.DestinationAwsDatalakeOutputFormatWildcard{ - JSONLinesNewlineDelimitedJSON: destinationAwsDatalakeJSONLinesNewlineDelimitedJSON, + DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON: destinationAwsDatalakeJSONLinesNewlineDelimitedJSON, } } var destinationAwsDatalakeParquetColumnarStorage *shared.DestinationAwsDatalakeParquetColumnarStorage @@ -95,7 +95,7 @@ func (r *DestinationAwsDatalakeResourceModel) ToCreateSDKType() *shared.Destinat } if destinationAwsDatalakeParquetColumnarStorage != nil { format = &shared.DestinationAwsDatalakeOutputFormatWildcard{ - ParquetColumnarStorage: destinationAwsDatalakeParquetColumnarStorage, + DestinationAwsDatalakeParquetColumnarStorage: destinationAwsDatalakeParquetColumnarStorage, } } } diff --git a/internal/provider/destination_azureblobstorage_resource_sdk.go b/internal/provider/destination_azureblobstorage_resource_sdk.go index a58354db8..d74015eb6 100644 --- a/internal/provider/destination_azureblobstorage_resource_sdk.go +++ b/internal/provider/destination_azureblobstorage_resource_sdk.go @@ -49,7 +49,7 @@ func (r *DestinationAzureBlobStorageResourceModel) ToCreateSDKType() *shared.Des } if destinationAzureBlobStorageCSVCommaSeparatedValues != nil { format = shared.DestinationAzureBlobStorageOutputFormat{ - CSVCommaSeparatedValues: destinationAzureBlobStorageCSVCommaSeparatedValues, + DestinationAzureBlobStorageCSVCommaSeparatedValues: destinationAzureBlobStorageCSVCommaSeparatedValues, } } var destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON *shared.DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON @@ -58,7 +58,7 @@ func (r *DestinationAzureBlobStorageResourceModel) ToCreateSDKType() *shared.Des } if destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationAzureBlobStorageOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON, + DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON: destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON, } } configuration := shared.DestinationAzureBlobStorage{ @@ -136,7 +136,7 @@ func (r *DestinationAzureBlobStorageResourceModel) ToUpdateSDKType() *shared.Des } if destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON != nil { format = shared.OutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, + DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON: destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, } } configuration := shared.DestinationAzureBlobStorageUpdate{ diff --git a/internal/provider/destination_bigquery_resource_sdk.go b/internal/provider/destination_bigquery_resource_sdk.go index e75627734..f5c8d8c81 100644 --- a/internal/provider/destination_bigquery_resource_sdk.go +++ b/internal/provider/destination_bigquery_resource_sdk.go @@ -30,7 +30,7 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination } if destinationBigqueryStandardInserts != nil { loadingMethod = &shared.DestinationBigqueryLoadingMethod{ - StandardInserts: destinationBigqueryStandardInserts, + DestinationBigqueryStandardInserts: destinationBigqueryStandardInserts, } } var destinationBigqueryGCSStaging *shared.DestinationBigqueryGCSStaging @@ -47,7 +47,7 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination } if destinationBigqueryHMACKey != nil { credential = shared.DestinationBigqueryCredential{ - HMACKey: destinationBigqueryHMACKey, + DestinationBigqueryHMACKey: destinationBigqueryHMACKey, } } fileBufferCount := new(int64) @@ -74,7 +74,7 @@ func (r *DestinationBigqueryResourceModel) ToCreateSDKType() *shared.Destination } if destinationBigqueryGCSStaging != nil { loadingMethod = &shared.DestinationBigqueryLoadingMethod{ - GCSStaging: destinationBigqueryGCSStaging, + DestinationBigqueryGCSStaging: destinationBigqueryGCSStaging, } } } @@ -139,7 +139,7 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination } if destinationBigqueryUpdateStandardInserts != nil { loadingMethod = &shared.DestinationBigqueryUpdateLoadingMethod{ - StandardInserts: destinationBigqueryUpdateStandardInserts, + DestinationBigqueryUpdateStandardInserts: destinationBigqueryUpdateStandardInserts, } } var destinationBigqueryUpdateGCSStaging *shared.DestinationBigqueryUpdateGCSStaging @@ -156,7 +156,7 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination } if destinationBigqueryUpdateHMACKey != nil { credential = shared.DestinationBigqueryUpdateCredential{ - HMACKey: destinationBigqueryUpdateHMACKey, + DestinationBigqueryUpdateHMACKey: destinationBigqueryUpdateHMACKey, } } fileBufferCount := new(int64) @@ -183,7 +183,7 @@ func (r *DestinationBigqueryResourceModel) ToUpdateSDKType() *shared.Destination } if destinationBigqueryUpdateGCSStaging != nil { loadingMethod = &shared.DestinationBigqueryUpdateLoadingMethod{ - GCSStaging: destinationBigqueryUpdateGCSStaging, + DestinationBigqueryUpdateGCSStaging: destinationBigqueryUpdateGCSStaging, } } } diff --git a/internal/provider/destination_bigquerydenormalized_resource_sdk.go b/internal/provider/destination_bigquerydenormalized_resource_sdk.go index bf783034d..f16598544 100644 --- a/internal/provider/destination_bigquerydenormalized_resource_sdk.go +++ b/internal/provider/destination_bigquerydenormalized_resource_sdk.go @@ -35,7 +35,7 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared } if destinationBigqueryDenormalizedStandardInserts != nil { loadingMethod = &shared.DestinationBigqueryDenormalizedLoadingMethod{ - StandardInserts: destinationBigqueryDenormalizedStandardInserts, + DestinationBigqueryDenormalizedStandardInserts: destinationBigqueryDenormalizedStandardInserts, } } var destinationBigqueryDenormalizedGCSStaging *shared.DestinationBigqueryDenormalizedGCSStaging @@ -52,7 +52,7 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared } if destinationBigqueryDenormalizedHMACKey != nil { credential = shared.DestinationBigqueryDenormalizedCredential{ - HMACKey: destinationBigqueryDenormalizedHMACKey, + DestinationBigqueryDenormalizedHMACKey: destinationBigqueryDenormalizedHMACKey, } } fileBufferCount := new(int64) @@ -79,7 +79,7 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToCreateSDKType() *shared } if destinationBigqueryDenormalizedGCSStaging != nil { loadingMethod = &shared.DestinationBigqueryDenormalizedLoadingMethod{ - GCSStaging: destinationBigqueryDenormalizedGCSStaging, + DestinationBigqueryDenormalizedGCSStaging: destinationBigqueryDenormalizedGCSStaging, } } } @@ -152,7 +152,7 @@ func (r *DestinationBigqueryDenormalizedResourceModel) ToUpdateSDKType() *shared } if destinationBigqueryDenormalizedUpdateHMACKey != nil { credential = shared.Credential{ - HMACKey: destinationBigqueryDenormalizedUpdateHMACKey, + DestinationBigqueryDenormalizedUpdateHMACKey: destinationBigqueryDenormalizedUpdateHMACKey, } } fileBufferCount := new(int64) diff --git a/internal/provider/destination_clickhouse_resource_sdk.go b/internal/provider/destination_clickhouse_resource_sdk.go index f390ea66c..b70df0280 100644 --- a/internal/provider/destination_clickhouse_resource_sdk.go +++ b/internal/provider/destination_clickhouse_resource_sdk.go @@ -36,7 +36,7 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati } if destinationClickhouseNoTunnel != nil { tunnelMethod = &shared.DestinationClickhouseSSHTunnelMethod{ - NoTunnel: destinationClickhouseNoTunnel, + DestinationClickhouseNoTunnel: destinationClickhouseNoTunnel, } } var destinationClickhouseSSHKeyAuthentication *shared.DestinationClickhouseSSHKeyAuthentication @@ -59,7 +59,7 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati } if destinationClickhouseSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationClickhouseSSHTunnelMethod{ - SSHKeyAuthentication: destinationClickhouseSSHKeyAuthentication, + DestinationClickhouseSSHKeyAuthentication: destinationClickhouseSSHKeyAuthentication, } } var destinationClickhousePasswordAuthentication *shared.DestinationClickhousePasswordAuthentication @@ -82,7 +82,7 @@ func (r *DestinationClickhouseResourceModel) ToCreateSDKType() *shared.Destinati } if destinationClickhousePasswordAuthentication != nil { tunnelMethod = &shared.DestinationClickhouseSSHTunnelMethod{ - PasswordAuthentication: destinationClickhousePasswordAuthentication, + DestinationClickhousePasswordAuthentication: destinationClickhousePasswordAuthentication, } } } diff --git a/internal/provider/destination_databricks_resource_sdk.go b/internal/provider/destination_databricks_resource_sdk.go index 6ba8e9fd9..ccd7b571d 100644 --- a/internal/provider/destination_databricks_resource_sdk.go +++ b/internal/provider/destination_databricks_resource_sdk.go @@ -21,7 +21,7 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati } if destinationDatabricksRecommendedManagedTables != nil { dataSource = shared.DestinationDatabricksDataSource{ - RecommendedManagedTables: destinationDatabricksRecommendedManagedTables, + DestinationDatabricksRecommendedManagedTables: destinationDatabricksRecommendedManagedTables, } } var destinationDatabricksAmazonS3 *shared.DestinationDatabricksAmazonS3 @@ -53,7 +53,7 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati } if destinationDatabricksAmazonS3 != nil { dataSource = shared.DestinationDatabricksDataSource{ - AmazonS3: destinationDatabricksAmazonS3, + DestinationDatabricksAmazonS3: destinationDatabricksAmazonS3, } } var destinationDatabricksAzureBlobStorage *shared.DestinationDatabricksAzureBlobStorage @@ -76,7 +76,7 @@ func (r *DestinationDatabricksResourceModel) ToCreateSDKType() *shared.Destinati } if destinationDatabricksAzureBlobStorage != nil { dataSource = shared.DestinationDatabricksDataSource{ - AzureBlobStorage: destinationDatabricksAzureBlobStorage, + DestinationDatabricksAzureBlobStorage: destinationDatabricksAzureBlobStorage, } } database := new(string) @@ -208,7 +208,7 @@ func (r *DestinationDatabricksResourceModel) ToUpdateSDKType() *shared.Destinati } if destinationDatabricksUpdateAzureBlobStorage != nil { dataSource = shared.DataSource{ - AzureBlobStorage: destinationDatabricksUpdateAzureBlobStorage, + DestinationDatabricksUpdateAzureBlobStorage: destinationDatabricksUpdateAzureBlobStorage, } } database := new(string) diff --git a/internal/provider/destination_devnull_resource_sdk.go b/internal/provider/destination_devnull_resource_sdk.go index ab5a1ab67..f314e2b6a 100644 --- a/internal/provider/destination_devnull_resource_sdk.go +++ b/internal/provider/destination_devnull_resource_sdk.go @@ -15,7 +15,7 @@ func (r *DestinationDevNullResourceModel) ToCreateSDKType() *shared.DestinationD } if destinationDevNullSilent != nil { testDestination = shared.DestinationDevNullTestDestination{ - Silent: destinationDevNullSilent, + DestinationDevNullSilent: destinationDevNullSilent, } } configuration := shared.DestinationDevNull{ diff --git a/internal/provider/destination_elasticsearch_resource_sdk.go b/internal/provider/destination_elasticsearch_resource_sdk.go index 49806eaec..fb63567d0 100644 --- a/internal/provider/destination_elasticsearch_resource_sdk.go +++ b/internal/provider/destination_elasticsearch_resource_sdk.go @@ -21,7 +21,7 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin } if destinationElasticsearchAPIKeySecret != nil { authenticationMethod = &shared.DestinationElasticsearchAuthenticationMethod{ - APIKeySecret: destinationElasticsearchAPIKeySecret, + DestinationElasticsearchAPIKeySecret: destinationElasticsearchAPIKeySecret, } } var destinationElasticsearchUsernamePassword *shared.DestinationElasticsearchUsernamePassword @@ -35,7 +35,7 @@ func (r *DestinationElasticsearchResourceModel) ToCreateSDKType() *shared.Destin } if destinationElasticsearchUsernamePassword != nil { authenticationMethod = &shared.DestinationElasticsearchAuthenticationMethod{ - UsernamePassword: destinationElasticsearchUsernamePassword, + DestinationElasticsearchUsernamePassword: destinationElasticsearchUsernamePassword, } } } diff --git a/internal/provider/destination_firebolt_resource_sdk.go b/internal/provider/destination_firebolt_resource_sdk.go index 3aa5ff803..e16e122ba 100644 --- a/internal/provider/destination_firebolt_resource_sdk.go +++ b/internal/provider/destination_firebolt_resource_sdk.go @@ -35,7 +35,7 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination } if destinationFireboltSQLInserts != nil { loadingMethod = &shared.DestinationFireboltLoadingMethod{ - SQLInserts: destinationFireboltSQLInserts, + DestinationFireboltSQLInserts: destinationFireboltSQLInserts, } } var destinationFireboltExternalTableViaS3 *shared.DestinationFireboltExternalTableViaS3 @@ -53,7 +53,7 @@ func (r *DestinationFireboltResourceModel) ToCreateSDKType() *shared.Destination } if destinationFireboltExternalTableViaS3 != nil { loadingMethod = &shared.DestinationFireboltLoadingMethod{ - ExternalTableViaS3: destinationFireboltExternalTableViaS3, + DestinationFireboltExternalTableViaS3: destinationFireboltExternalTableViaS3, } } } diff --git a/internal/provider/destination_gcs_resource_sdk.go b/internal/provider/destination_gcs_resource_sdk.go index 101f2ffef..d1f02fefb 100644 --- a/internal/provider/destination_gcs_resource_sdk.go +++ b/internal/provider/destination_gcs_resource_sdk.go @@ -27,7 +27,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsHMACKey != nil { credential = shared.DestinationGcsAuthentication{ - HMACKey: destinationGcsHMACKey, + DestinationGcsHMACKey: destinationGcsHMACKey, } } var format shared.DestinationGcsOutputFormat @@ -48,7 +48,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsNoCompression != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - NoCompression: destinationGcsNoCompression, + DestinationGcsNoCompression: destinationGcsNoCompression, } } var destinationGcsDeflate *shared.DestinationGcsDeflate @@ -72,7 +72,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsDeflate != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - Deflate: destinationGcsDeflate, + DestinationGcsDeflate: destinationGcsDeflate, } } var destinationGcsBzip2 *shared.DestinationGcsBzip2 @@ -89,7 +89,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsBzip2 != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - Bzip2: destinationGcsBzip2, + DestinationGcsBzip2: destinationGcsBzip2, } } var destinationGcsXz *shared.DestinationGcsXz @@ -113,7 +113,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsXz != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - Xz: destinationGcsXz, + DestinationGcsXz: destinationGcsXz, } } var destinationGcsZstandard *shared.DestinationGcsZstandard @@ -144,7 +144,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsZstandard != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - Zstandard: destinationGcsZstandard, + DestinationGcsZstandard: destinationGcsZstandard, } } var destinationGcsSnappy *shared.DestinationGcsSnappy @@ -161,7 +161,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsSnappy != nil { compressionCodec = shared.DestinationGcsCompressionCodec{ - Snappy: destinationGcsSnappy, + DestinationGcsSnappy: destinationGcsSnappy, } } formatType := new(shared.DestinationGcsFormatType) @@ -177,7 +177,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsAvroApacheAvro != nil { format = shared.DestinationGcsOutputFormat{ - AvroApacheAvro: destinationGcsAvroApacheAvro, + DestinationGcsAvroApacheAvro: destinationGcsAvroApacheAvro, } } var destinationGcsCSVCommaSeparatedValues *shared.DestinationGcsCSVCommaSeparatedValues @@ -198,7 +198,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsSchemasNoCompression != nil { compression = &shared.DestinationGcsCompression{ - NoCompression: destinationGcsSchemasNoCompression, + DestinationGcsSchemasNoCompression: destinationGcsSchemasNoCompression, } } var destinationGcsGZIP *shared.DestinationGcsGZIP @@ -215,7 +215,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsGZIP != nil { compression = &shared.DestinationGcsCompression{ - Gzip: destinationGcsGZIP, + DestinationGcsGZIP: destinationGcsGZIP, } } } @@ -239,7 +239,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsCSVCommaSeparatedValues != nil { format = shared.DestinationGcsOutputFormat{ - CSVCommaSeparatedValues: destinationGcsCSVCommaSeparatedValues, + DestinationGcsCSVCommaSeparatedValues: destinationGcsCSVCommaSeparatedValues, } } var destinationGcsJSONLinesNewlineDelimitedJSON *shared.DestinationGcsJSONLinesNewlineDelimitedJSON @@ -260,7 +260,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsSchemasFormatNoCompression != nil { compression1 = &shared.DestinationGcsSchemasCompression{ - NoCompression: destinationGcsSchemasFormatNoCompression, + DestinationGcsSchemasFormatNoCompression: destinationGcsSchemasFormatNoCompression, } } var destinationGcsSchemasGZIP *shared.DestinationGcsSchemasGZIP @@ -277,7 +277,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsSchemasGZIP != nil { compression1 = &shared.DestinationGcsSchemasCompression{ - Gzip: destinationGcsSchemasGZIP, + DestinationGcsSchemasGZIP: destinationGcsSchemasGZIP, } } } @@ -294,7 +294,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationGcsOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationGcsJSONLinesNewlineDelimitedJSON, + DestinationGcsJSONLinesNewlineDelimitedJSON: destinationGcsJSONLinesNewlineDelimitedJSON, } } var destinationGcsParquetColumnarStorage *shared.DestinationGcsParquetColumnarStorage @@ -353,7 +353,7 @@ func (r *DestinationGcsResourceModel) ToCreateSDKType() *shared.DestinationGcsCr } if destinationGcsParquetColumnarStorage != nil { format = shared.DestinationGcsOutputFormat{ - ParquetColumnarStorage: destinationGcsParquetColumnarStorage, + DestinationGcsParquetColumnarStorage: destinationGcsParquetColumnarStorage, } } gcsBucketName := r.Configuration.GcsBucketName.ValueString() @@ -577,7 +577,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateNoCompression != nil { compression = &shared.Compression{ - NoCompression: destinationGcsUpdateNoCompression, + DestinationGcsUpdateNoCompression: destinationGcsUpdateNoCompression, } } var gzip *shared.Gzip @@ -618,7 +618,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateCSVCommaSeparatedValues != nil { format = shared.DestinationGcsUpdateOutputFormat{ - CSVCommaSeparatedValues: destinationGcsUpdateCSVCommaSeparatedValues, + DestinationGcsUpdateCSVCommaSeparatedValues: destinationGcsUpdateCSVCommaSeparatedValues, } } var destinationGcsUpdateJSONLinesNewlineDelimitedJSON *shared.DestinationGcsUpdateJSONLinesNewlineDelimitedJSON @@ -639,7 +639,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateSchemasNoCompression != nil { compression1 = &shared.DestinationGcsUpdateCompression{ - NoCompression: destinationGcsUpdateSchemasNoCompression, + DestinationGcsUpdateSchemasNoCompression: destinationGcsUpdateSchemasNoCompression, } } var destinationGcsUpdateGZIP *shared.DestinationGcsUpdateGZIP @@ -656,7 +656,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateGZIP != nil { compression1 = &shared.DestinationGcsUpdateCompression{ - Gzip: destinationGcsUpdateGZIP, + DestinationGcsUpdateGZIP: destinationGcsUpdateGZIP, } } } @@ -673,7 +673,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationGcsUpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationGcsUpdateJSONLinesNewlineDelimitedJSON, + DestinationGcsUpdateJSONLinesNewlineDelimitedJSON: destinationGcsUpdateJSONLinesNewlineDelimitedJSON, } } var destinationGcsUpdateParquetColumnarStorage *shared.DestinationGcsUpdateParquetColumnarStorage @@ -732,7 +732,7 @@ func (r *DestinationGcsResourceModel) ToUpdateSDKType() *shared.DestinationGcsPu } if destinationGcsUpdateParquetColumnarStorage != nil { format = shared.DestinationGcsUpdateOutputFormat{ - ParquetColumnarStorage: destinationGcsUpdateParquetColumnarStorage, + DestinationGcsUpdateParquetColumnarStorage: destinationGcsUpdateParquetColumnarStorage, } } gcsBucketName := r.Configuration.GcsBucketName.ValueString() diff --git a/internal/provider/destination_langchain_resource_sdk.go b/internal/provider/destination_langchain_resource_sdk.go index 0004fd0d3..43d0a483f 100644 --- a/internal/provider/destination_langchain_resource_sdk.go +++ b/internal/provider/destination_langchain_resource_sdk.go @@ -18,7 +18,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationLangchainOpenAI != nil { embedding = shared.DestinationLangchainEmbedding{ - OpenAI: destinationLangchainOpenAI, + DestinationLangchainOpenAI: destinationLangchainOpenAI, } } var destinationLangchainFake *shared.DestinationLangchainFake @@ -27,7 +27,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationLangchainFake != nil { embedding = shared.DestinationLangchainEmbedding{ - Fake: destinationLangchainFake, + DestinationLangchainFake: destinationLangchainFake, } } var indexing shared.DestinationLangchainIndexing @@ -44,7 +44,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationLangchainPinecone != nil { indexing = shared.DestinationLangchainIndexing{ - Pinecone: destinationLangchainPinecone, + DestinationLangchainPinecone: destinationLangchainPinecone, } } var destinationLangchainDocArrayHnswSearch *shared.DestinationLangchainDocArrayHnswSearch @@ -56,7 +56,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationLangchainDocArrayHnswSearch != nil { indexing = shared.DestinationLangchainIndexing{ - DocArrayHnswSearch: destinationLangchainDocArrayHnswSearch, + DestinationLangchainDocArrayHnswSearch: destinationLangchainDocArrayHnswSearch, } } var destinationLangchainChromaLocalPersistance *shared.DestinationLangchainChromaLocalPersistance @@ -75,7 +75,7 @@ func (r *DestinationLangchainResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationLangchainChromaLocalPersistance != nil { indexing = shared.DestinationLangchainIndexing{ - ChromaLocalPersistance: destinationLangchainChromaLocalPersistance, + DestinationLangchainChromaLocalPersistance: destinationLangchainChromaLocalPersistance, } } chunkOverlap := new(int64) @@ -151,7 +151,7 @@ func (r *DestinationLangchainResourceModel) ToUpdateSDKType() *shared.Destinatio } if destinationLangchainUpdatePinecone != nil { indexing = shared.Indexing{ - Pinecone: destinationLangchainUpdatePinecone, + DestinationLangchainUpdatePinecone: destinationLangchainUpdatePinecone, } } var docArrayHnswSearch *shared.DocArrayHnswSearch diff --git a/internal/provider/destination_milvus_resource_sdk.go b/internal/provider/destination_milvus_resource_sdk.go index 66d6fbcf6..43e9fff88 100644 --- a/internal/provider/destination_milvus_resource_sdk.go +++ b/internal/provider/destination_milvus_resource_sdk.go @@ -18,7 +18,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusOpenAI != nil { embedding = shared.DestinationMilvusEmbedding{ - OpenAI: destinationMilvusOpenAI, + DestinationMilvusOpenAI: destinationMilvusOpenAI, } } var destinationMilvusCohere *shared.DestinationMilvusCohere @@ -30,7 +30,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusCohere != nil { embedding = shared.DestinationMilvusEmbedding{ - Cohere: destinationMilvusCohere, + DestinationMilvusCohere: destinationMilvusCohere, } } var destinationMilvusFake *shared.DestinationMilvusFake @@ -39,7 +39,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusFake != nil { embedding = shared.DestinationMilvusEmbedding{ - Fake: destinationMilvusFake, + DestinationMilvusFake: destinationMilvusFake, } } var destinationMilvusFromField *shared.DestinationMilvusFromField @@ -53,7 +53,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusFromField != nil { embedding = shared.DestinationMilvusEmbedding{ - FromField: destinationMilvusFromField, + DestinationMilvusFromField: destinationMilvusFromField, } } var auth shared.DestinationMilvusAuthentication @@ -66,7 +66,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusAPIToken != nil { auth = shared.DestinationMilvusAuthentication{ - APIToken: destinationMilvusAPIToken, + DestinationMilvusAPIToken: destinationMilvusAPIToken, } } var destinationMilvusUsernamePassword *shared.DestinationMilvusUsernamePassword @@ -80,7 +80,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusUsernamePassword != nil { auth = shared.DestinationMilvusAuthentication{ - UsernamePassword: destinationMilvusUsernamePassword, + DestinationMilvusUsernamePassword: destinationMilvusUsernamePassword, } } var destinationMilvusNoAuth *shared.DestinationMilvusNoAuth @@ -89,7 +89,7 @@ func (r *DestinationMilvusResourceModel) ToCreateSDKType() *shared.DestinationMi } if destinationMilvusNoAuth != nil { auth = shared.DestinationMilvusAuthentication{ - NoAuth: destinationMilvusNoAuth, + DestinationMilvusNoAuth: destinationMilvusNoAuth, } } collection := r.Configuration.Indexing.Collection.ValueString() @@ -172,7 +172,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi } if destinationMilvusUpdateOpenAI != nil { embedding = shared.DestinationMilvusUpdateEmbedding{ - OpenAI: destinationMilvusUpdateOpenAI, + DestinationMilvusUpdateOpenAI: destinationMilvusUpdateOpenAI, } } var cohere *shared.Cohere @@ -193,7 +193,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi } if destinationMilvusUpdateFake != nil { embedding = shared.DestinationMilvusUpdateEmbedding{ - Fake: destinationMilvusUpdateFake, + DestinationMilvusUpdateFake: destinationMilvusUpdateFake, } } var fromField *shared.FromField @@ -220,7 +220,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi } if destinationMilvusUpdateAPIToken != nil { auth = shared.DestinationMilvusUpdateAuthentication{ - APIToken: destinationMilvusUpdateAPIToken, + DestinationMilvusUpdateAPIToken: destinationMilvusUpdateAPIToken, } } var destinationMilvusUpdateUsernamePassword *shared.DestinationMilvusUpdateUsernamePassword @@ -234,7 +234,7 @@ func (r *DestinationMilvusResourceModel) ToUpdateSDKType() *shared.DestinationMi } if destinationMilvusUpdateUsernamePassword != nil { auth = shared.DestinationMilvusUpdateAuthentication{ - UsernamePassword: destinationMilvusUpdateUsernamePassword, + DestinationMilvusUpdateUsernamePassword: destinationMilvusUpdateUsernamePassword, } } var noAuth *shared.NoAuth diff --git a/internal/provider/destination_mongodb_resource_sdk.go b/internal/provider/destination_mongodb_resource_sdk.go index 387c93b96..30ec013a9 100644 --- a/internal/provider/destination_mongodb_resource_sdk.go +++ b/internal/provider/destination_mongodb_resource_sdk.go @@ -15,7 +15,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbNone != nil { authType = shared.DestinationMongodbAuthorizationType{ - None: destinationMongodbNone, + DestinationMongodbNone: destinationMongodbNone, } } var destinationMongodbLoginPassword *shared.DestinationMongodbLoginPassword @@ -29,7 +29,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbLoginPassword != nil { authType = shared.DestinationMongodbAuthorizationType{ - LoginPassword: destinationMongodbLoginPassword, + DestinationMongodbLoginPassword: destinationMongodbLoginPassword, } } database := r.Configuration.Database.ValueString() @@ -58,7 +58,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbStandaloneMongoDbInstance != nil { instanceType = &shared.DestinationMongodbMongoDbInstanceType{ - StandaloneMongoDbInstance: destinationMongodbStandaloneMongoDbInstance, + DestinationMongodbStandaloneMongoDbInstance: destinationMongodbStandaloneMongoDbInstance, } } var destinationMongodbReplicaSet *shared.DestinationMongodbReplicaSet @@ -84,7 +84,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbReplicaSet != nil { instanceType = &shared.DestinationMongodbMongoDbInstanceType{ - ReplicaSet: destinationMongodbReplicaSet, + DestinationMongodbReplicaSet: destinationMongodbReplicaSet, } } var destinationMongodbMongoDBAtlas *shared.DestinationMongodbMongoDBAtlas @@ -103,7 +103,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbMongoDBAtlas != nil { instanceType = &shared.DestinationMongodbMongoDbInstanceType{ - MongoDBAtlas: destinationMongodbMongoDBAtlas, + DestinationMongodbMongoDBAtlas: destinationMongodbMongoDBAtlas, } } } @@ -115,7 +115,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbNoTunnel != nil { tunnelMethod = &shared.DestinationMongodbSSHTunnelMethod{ - NoTunnel: destinationMongodbNoTunnel, + DestinationMongodbNoTunnel: destinationMongodbNoTunnel, } } var destinationMongodbSSHKeyAuthentication *shared.DestinationMongodbSSHKeyAuthentication @@ -138,7 +138,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMongodbSSHTunnelMethod{ - SSHKeyAuthentication: destinationMongodbSSHKeyAuthentication, + DestinationMongodbSSHKeyAuthentication: destinationMongodbSSHKeyAuthentication, } } var destinationMongodbPasswordAuthentication *shared.DestinationMongodbPasswordAuthentication @@ -161,7 +161,7 @@ func (r *DestinationMongodbResourceModel) ToCreateSDKType() *shared.DestinationM } if destinationMongodbPasswordAuthentication != nil { tunnelMethod = &shared.DestinationMongodbSSHTunnelMethod{ - PasswordAuthentication: destinationMongodbPasswordAuthentication, + DestinationMongodbPasswordAuthentication: destinationMongodbPasswordAuthentication, } } } @@ -294,7 +294,7 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM } if destinationMongodbUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationMongodbUpdateSSHTunnelMethod{ - NoTunnel: destinationMongodbUpdateNoTunnel, + DestinationMongodbUpdateNoTunnel: destinationMongodbUpdateNoTunnel, } } var destinationMongodbUpdateSSHKeyAuthentication *shared.DestinationMongodbUpdateSSHKeyAuthentication @@ -317,7 +317,7 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM } if destinationMongodbUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMongodbUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationMongodbUpdateSSHKeyAuthentication, + DestinationMongodbUpdateSSHKeyAuthentication: destinationMongodbUpdateSSHKeyAuthentication, } } var destinationMongodbUpdatePasswordAuthentication *shared.DestinationMongodbUpdatePasswordAuthentication @@ -340,7 +340,7 @@ func (r *DestinationMongodbResourceModel) ToUpdateSDKType() *shared.DestinationM } if destinationMongodbUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationMongodbUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationMongodbUpdatePasswordAuthentication, + DestinationMongodbUpdatePasswordAuthentication: destinationMongodbUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_mssql_resource_sdk.go b/internal/provider/destination_mssql_resource_sdk.go index 8f2a7e10f..49807aba2 100644 --- a/internal/provider/destination_mssql_resource_sdk.go +++ b/internal/provider/destination_mssql_resource_sdk.go @@ -42,7 +42,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss } if destinationMssqlEncryptedTrustServerCertificate != nil { sslMethod = &shared.DestinationMssqlSSLMethod{ - EncryptedTrustServerCertificate: destinationMssqlEncryptedTrustServerCertificate, + DestinationMssqlEncryptedTrustServerCertificate: destinationMssqlEncryptedTrustServerCertificate, } } var destinationMssqlEncryptedVerifyCertificate *shared.DestinationMssqlEncryptedVerifyCertificate @@ -59,7 +59,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss } if destinationMssqlEncryptedVerifyCertificate != nil { sslMethod = &shared.DestinationMssqlSSLMethod{ - EncryptedVerifyCertificate: destinationMssqlEncryptedVerifyCertificate, + DestinationMssqlEncryptedVerifyCertificate: destinationMssqlEncryptedVerifyCertificate, } } } @@ -71,7 +71,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss } if destinationMssqlNoTunnel != nil { tunnelMethod = &shared.DestinationMssqlSSHTunnelMethod{ - NoTunnel: destinationMssqlNoTunnel, + DestinationMssqlNoTunnel: destinationMssqlNoTunnel, } } var destinationMssqlSSHKeyAuthentication *shared.DestinationMssqlSSHKeyAuthentication @@ -94,7 +94,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss } if destinationMssqlSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMssqlSSHTunnelMethod{ - SSHKeyAuthentication: destinationMssqlSSHKeyAuthentication, + DestinationMssqlSSHKeyAuthentication: destinationMssqlSSHKeyAuthentication, } } var destinationMssqlPasswordAuthentication *shared.DestinationMssqlPasswordAuthentication @@ -117,7 +117,7 @@ func (r *DestinationMssqlResourceModel) ToCreateSDKType() *shared.DestinationMss } if destinationMssqlPasswordAuthentication != nil { tunnelMethod = &shared.DestinationMssqlSSHTunnelMethod{ - PasswordAuthentication: destinationMssqlPasswordAuthentication, + DestinationMssqlPasswordAuthentication: destinationMssqlPasswordAuthentication, } } } @@ -212,7 +212,7 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss } if destinationMssqlUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationMssqlUpdateSSHTunnelMethod{ - NoTunnel: destinationMssqlUpdateNoTunnel, + DestinationMssqlUpdateNoTunnel: destinationMssqlUpdateNoTunnel, } } var destinationMssqlUpdateSSHKeyAuthentication *shared.DestinationMssqlUpdateSSHKeyAuthentication @@ -235,7 +235,7 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss } if destinationMssqlUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMssqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationMssqlUpdateSSHKeyAuthentication, + DestinationMssqlUpdateSSHKeyAuthentication: destinationMssqlUpdateSSHKeyAuthentication, } } var destinationMssqlUpdatePasswordAuthentication *shared.DestinationMssqlUpdatePasswordAuthentication @@ -258,7 +258,7 @@ func (r *DestinationMssqlResourceModel) ToUpdateSDKType() *shared.DestinationMss } if destinationMssqlUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationMssqlUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationMssqlUpdatePasswordAuthentication, + DestinationMssqlUpdatePasswordAuthentication: destinationMssqlUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_mysql_resource_sdk.go b/internal/provider/destination_mysql_resource_sdk.go index c5546bb82..204f67ef6 100644 --- a/internal/provider/destination_mysql_resource_sdk.go +++ b/internal/provider/destination_mysql_resource_sdk.go @@ -36,7 +36,7 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys } if destinationMysqlNoTunnel != nil { tunnelMethod = &shared.DestinationMysqlSSHTunnelMethod{ - NoTunnel: destinationMysqlNoTunnel, + DestinationMysqlNoTunnel: destinationMysqlNoTunnel, } } var destinationMysqlSSHKeyAuthentication *shared.DestinationMysqlSSHKeyAuthentication @@ -59,7 +59,7 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys } if destinationMysqlSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMysqlSSHTunnelMethod{ - SSHKeyAuthentication: destinationMysqlSSHKeyAuthentication, + DestinationMysqlSSHKeyAuthentication: destinationMysqlSSHKeyAuthentication, } } var destinationMysqlPasswordAuthentication *shared.DestinationMysqlPasswordAuthentication @@ -82,7 +82,7 @@ func (r *DestinationMysqlResourceModel) ToCreateSDKType() *shared.DestinationMys } if destinationMysqlPasswordAuthentication != nil { tunnelMethod = &shared.DestinationMysqlSSHTunnelMethod{ - PasswordAuthentication: destinationMysqlPasswordAuthentication, + DestinationMysqlPasswordAuthentication: destinationMysqlPasswordAuthentication, } } } @@ -140,7 +140,7 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys } if destinationMysqlUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationMysqlUpdateSSHTunnelMethod{ - NoTunnel: destinationMysqlUpdateNoTunnel, + DestinationMysqlUpdateNoTunnel: destinationMysqlUpdateNoTunnel, } } var destinationMysqlUpdateSSHKeyAuthentication *shared.DestinationMysqlUpdateSSHKeyAuthentication @@ -163,7 +163,7 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys } if destinationMysqlUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationMysqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationMysqlUpdateSSHKeyAuthentication, + DestinationMysqlUpdateSSHKeyAuthentication: destinationMysqlUpdateSSHKeyAuthentication, } } var destinationMysqlUpdatePasswordAuthentication *shared.DestinationMysqlUpdatePasswordAuthentication @@ -186,7 +186,7 @@ func (r *DestinationMysqlResourceModel) ToUpdateSDKType() *shared.DestinationMys } if destinationMysqlUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationMysqlUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationMysqlUpdatePasswordAuthentication, + DestinationMysqlUpdatePasswordAuthentication: destinationMysqlUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_oracle_resource_sdk.go b/internal/provider/destination_oracle_resource_sdk.go index e1ca93890..e9e599788 100644 --- a/internal/provider/destination_oracle_resource_sdk.go +++ b/internal/provider/destination_oracle_resource_sdk.go @@ -42,7 +42,7 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr } if destinationOracleNoTunnel != nil { tunnelMethod = &shared.DestinationOracleSSHTunnelMethod{ - NoTunnel: destinationOracleNoTunnel, + DestinationOracleNoTunnel: destinationOracleNoTunnel, } } var destinationOracleSSHKeyAuthentication *shared.DestinationOracleSSHKeyAuthentication @@ -65,7 +65,7 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr } if destinationOracleSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationOracleSSHTunnelMethod{ - SSHKeyAuthentication: destinationOracleSSHKeyAuthentication, + DestinationOracleSSHKeyAuthentication: destinationOracleSSHKeyAuthentication, } } var destinationOraclePasswordAuthentication *shared.DestinationOraclePasswordAuthentication @@ -88,7 +88,7 @@ func (r *DestinationOracleResourceModel) ToCreateSDKType() *shared.DestinationOr } if destinationOraclePasswordAuthentication != nil { tunnelMethod = &shared.DestinationOracleSSHTunnelMethod{ - PasswordAuthentication: destinationOraclePasswordAuthentication, + DestinationOraclePasswordAuthentication: destinationOraclePasswordAuthentication, } } } @@ -153,7 +153,7 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr } if destinationOracleUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationOracleUpdateSSHTunnelMethod{ - NoTunnel: destinationOracleUpdateNoTunnel, + DestinationOracleUpdateNoTunnel: destinationOracleUpdateNoTunnel, } } var destinationOracleUpdateSSHKeyAuthentication *shared.DestinationOracleUpdateSSHKeyAuthentication @@ -176,7 +176,7 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr } if destinationOracleUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationOracleUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationOracleUpdateSSHKeyAuthentication, + DestinationOracleUpdateSSHKeyAuthentication: destinationOracleUpdateSSHKeyAuthentication, } } var destinationOracleUpdatePasswordAuthentication *shared.DestinationOracleUpdatePasswordAuthentication @@ -199,7 +199,7 @@ func (r *DestinationOracleResourceModel) ToUpdateSDKType() *shared.DestinationOr } if destinationOracleUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationOracleUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationOracleUpdatePasswordAuthentication, + DestinationOracleUpdatePasswordAuthentication: destinationOracleUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_pinecone_resource_sdk.go b/internal/provider/destination_pinecone_resource_sdk.go index 9f4e85555..affceb3c8 100644 --- a/internal/provider/destination_pinecone_resource_sdk.go +++ b/internal/provider/destination_pinecone_resource_sdk.go @@ -18,7 +18,7 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination } if destinationPineconeOpenAI != nil { embedding = shared.DestinationPineconeEmbedding{ - OpenAI: destinationPineconeOpenAI, + DestinationPineconeOpenAI: destinationPineconeOpenAI, } } var destinationPineconeCohere *shared.DestinationPineconeCohere @@ -30,7 +30,7 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination } if destinationPineconeCohere != nil { embedding = shared.DestinationPineconeEmbedding{ - Cohere: destinationPineconeCohere, + DestinationPineconeCohere: destinationPineconeCohere, } } var destinationPineconeFake *shared.DestinationPineconeFake @@ -39,7 +39,7 @@ func (r *DestinationPineconeResourceModel) ToCreateSDKType() *shared.Destination } if destinationPineconeFake != nil { embedding = shared.DestinationPineconeEmbedding{ - Fake: destinationPineconeFake, + DestinationPineconeFake: destinationPineconeFake, } } index := r.Configuration.Indexing.Index.ValueString() @@ -102,7 +102,7 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPineconeUpdateOpenAI != nil { embedding = shared.DestinationPineconeUpdateEmbedding{ - OpenAI: destinationPineconeUpdateOpenAI, + DestinationPineconeUpdateOpenAI: destinationPineconeUpdateOpenAI, } } var destinationPineconeUpdateCohere *shared.DestinationPineconeUpdateCohere @@ -114,7 +114,7 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPineconeUpdateCohere != nil { embedding = shared.DestinationPineconeUpdateEmbedding{ - Cohere: destinationPineconeUpdateCohere, + DestinationPineconeUpdateCohere: destinationPineconeUpdateCohere, } } var destinationPineconeUpdateFake *shared.DestinationPineconeUpdateFake @@ -123,7 +123,7 @@ func (r *DestinationPineconeResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPineconeUpdateFake != nil { embedding = shared.DestinationPineconeUpdateEmbedding{ - Fake: destinationPineconeUpdateFake, + DestinationPineconeUpdateFake: destinationPineconeUpdateFake, } } index := r.Configuration.Indexing.Index.ValueString() diff --git a/internal/provider/destination_postgres_resource_sdk.go b/internal/provider/destination_postgres_resource_sdk.go index e0c1521cc..d16ef16b4 100644 --- a/internal/provider/destination_postgres_resource_sdk.go +++ b/internal/provider/destination_postgres_resource_sdk.go @@ -42,7 +42,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresDisable != nil { sslMode = &shared.DestinationPostgresSSLModes{ - Disable: destinationPostgresDisable, + DestinationPostgresDisable: destinationPostgresDisable, } } var destinationPostgresAllow *shared.DestinationPostgresAllow @@ -51,7 +51,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresAllow != nil { sslMode = &shared.DestinationPostgresSSLModes{ - Allow: destinationPostgresAllow, + DestinationPostgresAllow: destinationPostgresAllow, } } var destinationPostgresPrefer *shared.DestinationPostgresPrefer @@ -60,7 +60,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresPrefer != nil { sslMode = &shared.DestinationPostgresSSLModes{ - Prefer: destinationPostgresPrefer, + DestinationPostgresPrefer: destinationPostgresPrefer, } } var destinationPostgresRequire *shared.DestinationPostgresRequire @@ -69,7 +69,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresRequire != nil { sslMode = &shared.DestinationPostgresSSLModes{ - Require: destinationPostgresRequire, + DestinationPostgresRequire: destinationPostgresRequire, } } var destinationPostgresVerifyCa *shared.DestinationPostgresVerifyCa @@ -88,7 +88,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresVerifyCa != nil { sslMode = &shared.DestinationPostgresSSLModes{ - VerifyCa: destinationPostgresVerifyCa, + DestinationPostgresVerifyCa: destinationPostgresVerifyCa, } } var destinationPostgresVerifyFull *shared.DestinationPostgresVerifyFull @@ -111,7 +111,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresVerifyFull != nil { sslMode = &shared.DestinationPostgresSSLModes{ - VerifyFull: destinationPostgresVerifyFull, + DestinationPostgresVerifyFull: destinationPostgresVerifyFull, } } } @@ -123,7 +123,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresNoTunnel != nil { tunnelMethod = &shared.DestinationPostgresSSHTunnelMethod{ - NoTunnel: destinationPostgresNoTunnel, + DestinationPostgresNoTunnel: destinationPostgresNoTunnel, } } var destinationPostgresSSHKeyAuthentication *shared.DestinationPostgresSSHKeyAuthentication @@ -146,7 +146,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationPostgresSSHTunnelMethod{ - SSHKeyAuthentication: destinationPostgresSSHKeyAuthentication, + DestinationPostgresSSHKeyAuthentication: destinationPostgresSSHKeyAuthentication, } } var destinationPostgresPasswordAuthentication *shared.DestinationPostgresPasswordAuthentication @@ -169,7 +169,7 @@ func (r *DestinationPostgresResourceModel) ToCreateSDKType() *shared.Destination } if destinationPostgresPasswordAuthentication != nil { tunnelMethod = &shared.DestinationPostgresSSHTunnelMethod{ - PasswordAuthentication: destinationPostgresPasswordAuthentication, + DestinationPostgresPasswordAuthentication: destinationPostgresPasswordAuthentication, } } } @@ -316,7 +316,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPostgresUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationPostgresUpdateSSHTunnelMethod{ - NoTunnel: destinationPostgresUpdateNoTunnel, + DestinationPostgresUpdateNoTunnel: destinationPostgresUpdateNoTunnel, } } var destinationPostgresUpdateSSHKeyAuthentication *shared.DestinationPostgresUpdateSSHKeyAuthentication @@ -339,7 +339,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPostgresUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationPostgresUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationPostgresUpdateSSHKeyAuthentication, + DestinationPostgresUpdateSSHKeyAuthentication: destinationPostgresUpdateSSHKeyAuthentication, } } var destinationPostgresUpdatePasswordAuthentication *shared.DestinationPostgresUpdatePasswordAuthentication @@ -362,7 +362,7 @@ func (r *DestinationPostgresResourceModel) ToUpdateSDKType() *shared.Destination } if destinationPostgresUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationPostgresUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationPostgresUpdatePasswordAuthentication, + DestinationPostgresUpdatePasswordAuthentication: destinationPostgresUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_redis_resource_sdk.go b/internal/provider/destination_redis_resource_sdk.go index 82b44098c..b3674a861 100644 --- a/internal/provider/destination_redis_resource_sdk.go +++ b/internal/provider/destination_redis_resource_sdk.go @@ -41,7 +41,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed } if destinationRedisDisable != nil { sslMode = &shared.DestinationRedisSSLModes{ - Disable: destinationRedisDisable, + DestinationRedisDisable: destinationRedisDisable, } } var destinationRedisVerifyFull *shared.DestinationRedisVerifyFull @@ -64,7 +64,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed } if destinationRedisVerifyFull != nil { sslMode = &shared.DestinationRedisSSLModes{ - VerifyFull: destinationRedisVerifyFull, + DestinationRedisVerifyFull: destinationRedisVerifyFull, } } } @@ -76,7 +76,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed } if destinationRedisNoTunnel != nil { tunnelMethod = &shared.DestinationRedisSSHTunnelMethod{ - NoTunnel: destinationRedisNoTunnel, + DestinationRedisNoTunnel: destinationRedisNoTunnel, } } var destinationRedisSSHKeyAuthentication *shared.DestinationRedisSSHKeyAuthentication @@ -99,7 +99,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed } if destinationRedisSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationRedisSSHTunnelMethod{ - SSHKeyAuthentication: destinationRedisSSHKeyAuthentication, + DestinationRedisSSHKeyAuthentication: destinationRedisSSHKeyAuthentication, } } var destinationRedisPasswordAuthentication *shared.DestinationRedisPasswordAuthentication @@ -122,7 +122,7 @@ func (r *DestinationRedisResourceModel) ToCreateSDKType() *shared.DestinationRed } if destinationRedisPasswordAuthentication != nil { tunnelMethod = &shared.DestinationRedisSSHTunnelMethod{ - PasswordAuthentication: destinationRedisPasswordAuthentication, + DestinationRedisPasswordAuthentication: destinationRedisPasswordAuthentication, } } } @@ -186,7 +186,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed } if destinationRedisUpdateDisable != nil { sslMode = &shared.DestinationRedisUpdateSSLModes{ - Disable: destinationRedisUpdateDisable, + DestinationRedisUpdateDisable: destinationRedisUpdateDisable, } } var destinationRedisUpdateVerifyFull *shared.DestinationRedisUpdateVerifyFull @@ -209,7 +209,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed } if destinationRedisUpdateVerifyFull != nil { sslMode = &shared.DestinationRedisUpdateSSLModes{ - VerifyFull: destinationRedisUpdateVerifyFull, + DestinationRedisUpdateVerifyFull: destinationRedisUpdateVerifyFull, } } } @@ -221,7 +221,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed } if destinationRedisUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationRedisUpdateSSHTunnelMethod{ - NoTunnel: destinationRedisUpdateNoTunnel, + DestinationRedisUpdateNoTunnel: destinationRedisUpdateNoTunnel, } } var destinationRedisUpdateSSHKeyAuthentication *shared.DestinationRedisUpdateSSHKeyAuthentication @@ -244,7 +244,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed } if destinationRedisUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationRedisUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationRedisUpdateSSHKeyAuthentication, + DestinationRedisUpdateSSHKeyAuthentication: destinationRedisUpdateSSHKeyAuthentication, } } var destinationRedisUpdatePasswordAuthentication *shared.DestinationRedisUpdatePasswordAuthentication @@ -267,7 +267,7 @@ func (r *DestinationRedisResourceModel) ToUpdateSDKType() *shared.DestinationRed } if destinationRedisUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationRedisUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationRedisUpdatePasswordAuthentication, + DestinationRedisUpdatePasswordAuthentication: destinationRedisUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_redshift_resource_sdk.go b/internal/provider/destination_redshift_resource_sdk.go index 7017e1d4b..1f95c49a8 100644 --- a/internal/provider/destination_redshift_resource_sdk.go +++ b/internal/provider/destination_redshift_resource_sdk.go @@ -37,7 +37,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftNoTunnel != nil { tunnelMethod = &shared.DestinationRedshiftSSHTunnelMethod{ - NoTunnel: destinationRedshiftNoTunnel, + DestinationRedshiftNoTunnel: destinationRedshiftNoTunnel, } } var destinationRedshiftSSHKeyAuthentication *shared.DestinationRedshiftSSHKeyAuthentication @@ -60,7 +60,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationRedshiftSSHTunnelMethod{ - SSHKeyAuthentication: destinationRedshiftSSHKeyAuthentication, + DestinationRedshiftSSHKeyAuthentication: destinationRedshiftSSHKeyAuthentication, } } var destinationRedshiftPasswordAuthentication *shared.DestinationRedshiftPasswordAuthentication @@ -83,7 +83,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftPasswordAuthentication != nil { tunnelMethod = &shared.DestinationRedshiftSSHTunnelMethod{ - PasswordAuthentication: destinationRedshiftPasswordAuthentication, + DestinationRedshiftPasswordAuthentication: destinationRedshiftPasswordAuthentication, } } } @@ -95,7 +95,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftStandard != nil { uploadingMethod = &shared.DestinationRedshiftUploadingMethod{ - Standard: destinationRedshiftStandard, + DestinationRedshiftStandard: destinationRedshiftStandard, } } var destinationRedshiftS3Staging *shared.DestinationRedshiftS3Staging @@ -109,7 +109,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftNoEncryption != nil { encryption = &shared.DestinationRedshiftEncryption{ - NoEncryption: destinationRedshiftNoEncryption, + DestinationRedshiftNoEncryption: destinationRedshiftNoEncryption, } } var destinationRedshiftAESCBCEnvelopeEncryption *shared.DestinationRedshiftAESCBCEnvelopeEncryption @@ -126,7 +126,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftAESCBCEnvelopeEncryption != nil { encryption = &shared.DestinationRedshiftEncryption{ - AESCBCEnvelopeEncryption: destinationRedshiftAESCBCEnvelopeEncryption, + DestinationRedshiftAESCBCEnvelopeEncryption: destinationRedshiftAESCBCEnvelopeEncryption, } } } @@ -176,7 +176,7 @@ func (r *DestinationRedshiftResourceModel) ToCreateSDKType() *shared.Destination } if destinationRedshiftS3Staging != nil { uploadingMethod = &shared.DestinationRedshiftUploadingMethod{ - S3Staging: destinationRedshiftS3Staging, + DestinationRedshiftS3Staging: destinationRedshiftS3Staging, } } } @@ -237,7 +237,7 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination } if destinationRedshiftUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationRedshiftUpdateSSHTunnelMethod{ - NoTunnel: destinationRedshiftUpdateNoTunnel, + DestinationRedshiftUpdateNoTunnel: destinationRedshiftUpdateNoTunnel, } } var destinationRedshiftUpdateSSHKeyAuthentication *shared.DestinationRedshiftUpdateSSHKeyAuthentication @@ -260,7 +260,7 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination } if destinationRedshiftUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationRedshiftUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationRedshiftUpdateSSHKeyAuthentication, + DestinationRedshiftUpdateSSHKeyAuthentication: destinationRedshiftUpdateSSHKeyAuthentication, } } var destinationRedshiftUpdatePasswordAuthentication *shared.DestinationRedshiftUpdatePasswordAuthentication @@ -283,7 +283,7 @@ func (r *DestinationRedshiftResourceModel) ToUpdateSDKType() *shared.Destination } if destinationRedshiftUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationRedshiftUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationRedshiftUpdatePasswordAuthentication, + DestinationRedshiftUpdatePasswordAuthentication: destinationRedshiftUpdatePasswordAuthentication, } } } diff --git a/internal/provider/destination_s3_resource_sdk.go b/internal/provider/destination_s3_resource_sdk.go index ee6e378e4..10c239383 100644 --- a/internal/provider/destination_s3_resource_sdk.go +++ b/internal/provider/destination_s3_resource_sdk.go @@ -38,7 +38,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3NoCompression != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - NoCompression: destinationS3NoCompression, + DestinationS3NoCompression: destinationS3NoCompression, } } var destinationS3Deflate *shared.DestinationS3Deflate @@ -62,7 +62,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3Deflate != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - Deflate: destinationS3Deflate, + DestinationS3Deflate: destinationS3Deflate, } } var destinationS3Bzip2 *shared.DestinationS3Bzip2 @@ -79,7 +79,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3Bzip2 != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - Bzip2: destinationS3Bzip2, + DestinationS3Bzip2: destinationS3Bzip2, } } var destinationS3Xz *shared.DestinationS3Xz @@ -103,7 +103,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3Xz != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - Xz: destinationS3Xz, + DestinationS3Xz: destinationS3Xz, } } var destinationS3Zstandard *shared.DestinationS3Zstandard @@ -134,7 +134,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3Zstandard != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - Zstandard: destinationS3Zstandard, + DestinationS3Zstandard: destinationS3Zstandard, } } var destinationS3Snappy *shared.DestinationS3Snappy @@ -151,7 +151,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3Snappy != nil { compressionCodec = shared.DestinationS3CompressionCodec{ - Snappy: destinationS3Snappy, + DestinationS3Snappy: destinationS3Snappy, } } formatType := new(shared.DestinationS3FormatType) @@ -167,7 +167,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3AvroApacheAvro != nil { format = shared.DestinationS3OutputFormat{ - AvroApacheAvro: destinationS3AvroApacheAvro, + DestinationS3AvroApacheAvro: destinationS3AvroApacheAvro, } } var destinationS3CSVCommaSeparatedValues *shared.DestinationS3CSVCommaSeparatedValues @@ -188,7 +188,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3SchemasNoCompression != nil { compression = &shared.DestinationS3Compression{ - NoCompression: destinationS3SchemasNoCompression, + DestinationS3SchemasNoCompression: destinationS3SchemasNoCompression, } } var destinationS3GZIP *shared.DestinationS3GZIP @@ -205,7 +205,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3GZIP != nil { compression = &shared.DestinationS3Compression{ - Gzip: destinationS3GZIP, + DestinationS3GZIP: destinationS3GZIP, } } } @@ -229,7 +229,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3CSVCommaSeparatedValues != nil { format = shared.DestinationS3OutputFormat{ - CSVCommaSeparatedValues: destinationS3CSVCommaSeparatedValues, + DestinationS3CSVCommaSeparatedValues: destinationS3CSVCommaSeparatedValues, } } var destinationS3JSONLinesNewlineDelimitedJSON *shared.DestinationS3JSONLinesNewlineDelimitedJSON @@ -250,7 +250,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3SchemasFormatNoCompression != nil { compression1 = &shared.DestinationS3SchemasCompression{ - NoCompression: destinationS3SchemasFormatNoCompression, + DestinationS3SchemasFormatNoCompression: destinationS3SchemasFormatNoCompression, } } var destinationS3SchemasGZIP *shared.DestinationS3SchemasGZIP @@ -267,7 +267,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3SchemasGZIP != nil { compression1 = &shared.DestinationS3SchemasCompression{ - Gzip: destinationS3SchemasGZIP, + DestinationS3SchemasGZIP: destinationS3SchemasGZIP, } } } @@ -291,7 +291,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3JSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationS3OutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationS3JSONLinesNewlineDelimitedJSON, + DestinationS3JSONLinesNewlineDelimitedJSON: destinationS3JSONLinesNewlineDelimitedJSON, } } var destinationS3ParquetColumnarStorage *shared.DestinationS3ParquetColumnarStorage @@ -350,7 +350,7 @@ func (r *DestinationS3ResourceModel) ToCreateSDKType() *shared.DestinationS3Crea } if destinationS3ParquetColumnarStorage != nil { format = shared.DestinationS3OutputFormat{ - ParquetColumnarStorage: destinationS3ParquetColumnarStorage, + DestinationS3ParquetColumnarStorage: destinationS3ParquetColumnarStorage, } } s3BucketName := r.Configuration.S3BucketName.ValueString() @@ -436,7 +436,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateNoCompression != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - NoCompression: destinationS3UpdateNoCompression, + DestinationS3UpdateNoCompression: destinationS3UpdateNoCompression, } } var destinationS3UpdateDeflate *shared.DestinationS3UpdateDeflate @@ -460,7 +460,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateDeflate != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - Deflate: destinationS3UpdateDeflate, + DestinationS3UpdateDeflate: destinationS3UpdateDeflate, } } var destinationS3UpdateBzip2 *shared.DestinationS3UpdateBzip2 @@ -477,7 +477,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateBzip2 != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - Bzip2: destinationS3UpdateBzip2, + DestinationS3UpdateBzip2: destinationS3UpdateBzip2, } } var destinationS3UpdateXz *shared.DestinationS3UpdateXz @@ -501,7 +501,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateXz != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - Xz: destinationS3UpdateXz, + DestinationS3UpdateXz: destinationS3UpdateXz, } } var destinationS3UpdateZstandard *shared.DestinationS3UpdateZstandard @@ -532,7 +532,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateZstandard != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - Zstandard: destinationS3UpdateZstandard, + DestinationS3UpdateZstandard: destinationS3UpdateZstandard, } } var destinationS3UpdateSnappy *shared.DestinationS3UpdateSnappy @@ -549,7 +549,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateSnappy != nil { compressionCodec = shared.DestinationS3UpdateCompressionCodec{ - Snappy: destinationS3UpdateSnappy, + DestinationS3UpdateSnappy: destinationS3UpdateSnappy, } } formatType := new(shared.DestinationS3UpdateFormatType) @@ -565,7 +565,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateAvroApacheAvro != nil { format = shared.DestinationS3UpdateOutputFormat{ - AvroApacheAvro: destinationS3UpdateAvroApacheAvro, + DestinationS3UpdateAvroApacheAvro: destinationS3UpdateAvroApacheAvro, } } var destinationS3UpdateCSVCommaSeparatedValues *shared.DestinationS3UpdateCSVCommaSeparatedValues @@ -586,7 +586,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateSchemasNoCompression != nil { compression = &shared.DestinationS3UpdateCompression{ - NoCompression: destinationS3UpdateSchemasNoCompression, + DestinationS3UpdateSchemasNoCompression: destinationS3UpdateSchemasNoCompression, } } var destinationS3UpdateGZIP *shared.DestinationS3UpdateGZIP @@ -603,7 +603,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateGZIP != nil { compression = &shared.DestinationS3UpdateCompression{ - Gzip: destinationS3UpdateGZIP, + DestinationS3UpdateGZIP: destinationS3UpdateGZIP, } } } @@ -627,7 +627,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateCSVCommaSeparatedValues != nil { format = shared.DestinationS3UpdateOutputFormat{ - CSVCommaSeparatedValues: destinationS3UpdateCSVCommaSeparatedValues, + DestinationS3UpdateCSVCommaSeparatedValues: destinationS3UpdateCSVCommaSeparatedValues, } } var destinationS3UpdateJSONLinesNewlineDelimitedJSON *shared.DestinationS3UpdateJSONLinesNewlineDelimitedJSON @@ -648,7 +648,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateSchemasFormatNoCompression != nil { compression1 = &shared.DestinationS3UpdateSchemasCompression{ - NoCompression: destinationS3UpdateSchemasFormatNoCompression, + DestinationS3UpdateSchemasFormatNoCompression: destinationS3UpdateSchemasFormatNoCompression, } } var destinationS3UpdateSchemasGZIP *shared.DestinationS3UpdateSchemasGZIP @@ -665,7 +665,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateSchemasGZIP != nil { compression1 = &shared.DestinationS3UpdateSchemasCompression{ - Gzip: destinationS3UpdateSchemasGZIP, + DestinationS3UpdateSchemasGZIP: destinationS3UpdateSchemasGZIP, } } } @@ -689,7 +689,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationS3UpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationS3UpdateJSONLinesNewlineDelimitedJSON, + DestinationS3UpdateJSONLinesNewlineDelimitedJSON: destinationS3UpdateJSONLinesNewlineDelimitedJSON, } } var destinationS3UpdateParquetColumnarStorage *shared.DestinationS3UpdateParquetColumnarStorage @@ -748,7 +748,7 @@ func (r *DestinationS3ResourceModel) ToUpdateSDKType() *shared.DestinationS3PutR } if destinationS3UpdateParquetColumnarStorage != nil { format = shared.DestinationS3UpdateOutputFormat{ - ParquetColumnarStorage: destinationS3UpdateParquetColumnarStorage, + DestinationS3UpdateParquetColumnarStorage: destinationS3UpdateParquetColumnarStorage, } } s3BucketName := r.Configuration.S3BucketName.ValueString() diff --git a/internal/provider/destination_s3glue_resource_sdk.go b/internal/provider/destination_s3glue_resource_sdk.go index 6da485378..93a211490 100644 --- a/internal/provider/destination_s3glue_resource_sdk.go +++ b/internal/provider/destination_s3glue_resource_sdk.go @@ -39,7 +39,7 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3 } if destinationS3GlueNoCompression != nil { compression = &shared.DestinationS3GlueCompression{ - NoCompression: destinationS3GlueNoCompression, + DestinationS3GlueNoCompression: destinationS3GlueNoCompression, } } var destinationS3GlueGZIP *shared.DestinationS3GlueGZIP @@ -56,7 +56,7 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3 } if destinationS3GlueGZIP != nil { compression = &shared.DestinationS3GlueCompression{ - Gzip: destinationS3GlueGZIP, + DestinationS3GlueGZIP: destinationS3GlueGZIP, } } } @@ -80,7 +80,7 @@ func (r *DestinationS3GlueResourceModel) ToCreateSDKType() *shared.DestinationS3 } if destinationS3GlueJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationS3GlueOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationS3GlueJSONLinesNewlineDelimitedJSON, + DestinationS3GlueJSONLinesNewlineDelimitedJSON: destinationS3GlueJSONLinesNewlineDelimitedJSON, } } glueDatabase := r.Configuration.GlueDatabase.ValueString() @@ -176,7 +176,7 @@ func (r *DestinationS3GlueResourceModel) ToUpdateSDKType() *shared.DestinationS3 } if destinationS3GlueUpdateNoCompression != nil { compression = &shared.DestinationS3GlueUpdateCompression{ - NoCompression: destinationS3GlueUpdateNoCompression, + DestinationS3GlueUpdateNoCompression: destinationS3GlueUpdateNoCompression, } } var destinationS3GlueUpdateGZIP *shared.DestinationS3GlueUpdateGZIP @@ -193,7 +193,7 @@ func (r *DestinationS3GlueResourceModel) ToUpdateSDKType() *shared.DestinationS3 } if destinationS3GlueUpdateGZIP != nil { compression = &shared.DestinationS3GlueUpdateCompression{ - Gzip: destinationS3GlueUpdateGZIP, + DestinationS3GlueUpdateGZIP: destinationS3GlueUpdateGZIP, } } } @@ -217,7 +217,7 @@ func (r *DestinationS3GlueResourceModel) ToUpdateSDKType() *shared.DestinationS3 } if destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON != nil { format = shared.DestinationS3GlueUpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON, + DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON: destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON, } } glueDatabase := r.Configuration.GlueDatabase.ValueString() diff --git a/internal/provider/destination_snowflake_resource_sdk.go b/internal/provider/destination_snowflake_resource_sdk.go index cf12bde83..12b10c13f 100644 --- a/internal/provider/destination_snowflake_resource_sdk.go +++ b/internal/provider/destination_snowflake_resource_sdk.go @@ -35,7 +35,7 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationSnowflakeOAuth20 != nil { credentials = &shared.DestinationSnowflakeAuthorizationMethod{ - OAuth20: destinationSnowflakeOAuth20, + DestinationSnowflakeOAuth20: destinationSnowflakeOAuth20, } } var destinationSnowflakeKeyPairAuthentication *shared.DestinationSnowflakeKeyPairAuthentication @@ -54,7 +54,7 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationSnowflakeKeyPairAuthentication != nil { credentials = &shared.DestinationSnowflakeAuthorizationMethod{ - KeyPairAuthentication: destinationSnowflakeKeyPairAuthentication, + DestinationSnowflakeKeyPairAuthentication: destinationSnowflakeKeyPairAuthentication, } } var destinationSnowflakeUsernameAndPassword *shared.DestinationSnowflakeUsernameAndPassword @@ -66,7 +66,7 @@ func (r *DestinationSnowflakeResourceModel) ToCreateSDKType() *shared.Destinatio } if destinationSnowflakeUsernameAndPassword != nil { credentials = &shared.DestinationSnowflakeAuthorizationMethod{ - UsernameAndPassword: destinationSnowflakeUsernameAndPassword, + DestinationSnowflakeUsernameAndPassword: destinationSnowflakeUsernameAndPassword, } } } diff --git a/internal/provider/destination_vertica_resource_sdk.go b/internal/provider/destination_vertica_resource_sdk.go index 5df4dec15..b76c018c6 100644 --- a/internal/provider/destination_vertica_resource_sdk.go +++ b/internal/provider/destination_vertica_resource_sdk.go @@ -37,7 +37,7 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV } if destinationVerticaNoTunnel != nil { tunnelMethod = &shared.DestinationVerticaSSHTunnelMethod{ - NoTunnel: destinationVerticaNoTunnel, + DestinationVerticaNoTunnel: destinationVerticaNoTunnel, } } var destinationVerticaSSHKeyAuthentication *shared.DestinationVerticaSSHKeyAuthentication @@ -60,7 +60,7 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV } if destinationVerticaSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationVerticaSSHTunnelMethod{ - SSHKeyAuthentication: destinationVerticaSSHKeyAuthentication, + DestinationVerticaSSHKeyAuthentication: destinationVerticaSSHKeyAuthentication, } } var destinationVerticaPasswordAuthentication *shared.DestinationVerticaPasswordAuthentication @@ -83,7 +83,7 @@ func (r *DestinationVerticaResourceModel) ToCreateSDKType() *shared.DestinationV } if destinationVerticaPasswordAuthentication != nil { tunnelMethod = &shared.DestinationVerticaSSHTunnelMethod{ - PasswordAuthentication: destinationVerticaPasswordAuthentication, + DestinationVerticaPasswordAuthentication: destinationVerticaPasswordAuthentication, } } } @@ -143,7 +143,7 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV } if destinationVerticaUpdateNoTunnel != nil { tunnelMethod = &shared.DestinationVerticaUpdateSSHTunnelMethod{ - NoTunnel: destinationVerticaUpdateNoTunnel, + DestinationVerticaUpdateNoTunnel: destinationVerticaUpdateNoTunnel, } } var destinationVerticaUpdateSSHKeyAuthentication *shared.DestinationVerticaUpdateSSHKeyAuthentication @@ -166,7 +166,7 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV } if destinationVerticaUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.DestinationVerticaUpdateSSHTunnelMethod{ - SSHKeyAuthentication: destinationVerticaUpdateSSHKeyAuthentication, + DestinationVerticaUpdateSSHKeyAuthentication: destinationVerticaUpdateSSHKeyAuthentication, } } var destinationVerticaUpdatePasswordAuthentication *shared.DestinationVerticaUpdatePasswordAuthentication @@ -189,7 +189,7 @@ func (r *DestinationVerticaResourceModel) ToUpdateSDKType() *shared.DestinationV } if destinationVerticaUpdatePasswordAuthentication != nil { tunnelMethod = &shared.DestinationVerticaUpdateSSHTunnelMethod{ - PasswordAuthentication: destinationVerticaUpdatePasswordAuthentication, + DestinationVerticaUpdatePasswordAuthentication: destinationVerticaUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_airtable_resource_sdk.go b/internal/provider/source_airtable_resource_sdk.go index b6aea0745..3110b1d64 100644 --- a/internal/provider/source_airtable_resource_sdk.go +++ b/internal/provider/source_airtable_resource_sdk.go @@ -38,7 +38,7 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr } if sourceAirtableOAuth20 != nil { credentials = &shared.SourceAirtableAuthentication{ - OAuth20: sourceAirtableOAuth20, + SourceAirtableOAuth20: sourceAirtableOAuth20, } } var sourceAirtablePersonalAccessToken *shared.SourceAirtablePersonalAccessToken @@ -50,7 +50,7 @@ func (r *SourceAirtableResourceModel) ToCreateSDKType() *shared.SourceAirtableCr } if sourceAirtablePersonalAccessToken != nil { credentials = &shared.SourceAirtableAuthentication{ - PersonalAccessToken: sourceAirtablePersonalAccessToken, + SourceAirtablePersonalAccessToken: sourceAirtablePersonalAccessToken, } } } @@ -109,7 +109,7 @@ func (r *SourceAirtableResourceModel) ToUpdateSDKType() *shared.SourceAirtablePu } if sourceAirtableUpdateOAuth20 != nil { credentials = &shared.SourceAirtableUpdateAuthentication{ - OAuth20: sourceAirtableUpdateOAuth20, + SourceAirtableUpdateOAuth20: sourceAirtableUpdateOAuth20, } } var personalAccessToken *shared.PersonalAccessToken diff --git a/internal/provider/source_alloydb_resource_sdk.go b/internal/provider/source_alloydb_resource_sdk.go index a028c8efb..abd4f1c9f 100644 --- a/internal/provider/source_alloydb_resource_sdk.go +++ b/internal/provider/source_alloydb_resource_sdk.go @@ -37,7 +37,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbStandardXmin != nil { replicationMethod = &shared.SourceAlloydbReplicationMethod{ - StandardXmin: sourceAlloydbStandardXmin, + SourceAlloydbStandardXmin: sourceAlloydbStandardXmin, } } var sourceAlloydbLogicalReplicationCDC *shared.SourceAlloydbLogicalReplicationCDC @@ -84,7 +84,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbLogicalReplicationCDC != nil { replicationMethod = &shared.SourceAlloydbReplicationMethod{ - LogicalReplicationCDC: sourceAlloydbLogicalReplicationCDC, + SourceAlloydbLogicalReplicationCDC: sourceAlloydbLogicalReplicationCDC, } } var sourceAlloydbStandard *shared.SourceAlloydbStandard @@ -93,7 +93,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbStandard != nil { replicationMethod = &shared.SourceAlloydbReplicationMethod{ - Standard: sourceAlloydbStandard, + SourceAlloydbStandard: sourceAlloydbStandard, } } } @@ -115,7 +115,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbDisable != nil { sslMode = &shared.SourceAlloydbSSLModes{ - Disable: sourceAlloydbDisable, + SourceAlloydbDisable: sourceAlloydbDisable, } } var sourceAlloydbAllow *shared.SourceAlloydbAllow @@ -130,7 +130,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbAllow != nil { sslMode = &shared.SourceAlloydbSSLModes{ - Allow: sourceAlloydbAllow, + SourceAlloydbAllow: sourceAlloydbAllow, } } var sourceAlloydbPrefer *shared.SourceAlloydbPrefer @@ -145,7 +145,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbPrefer != nil { sslMode = &shared.SourceAlloydbSSLModes{ - Prefer: sourceAlloydbPrefer, + SourceAlloydbPrefer: sourceAlloydbPrefer, } } var sourceAlloydbRequire *shared.SourceAlloydbRequire @@ -160,7 +160,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbRequire != nil { sslMode = &shared.SourceAlloydbSSLModes{ - Require: sourceAlloydbRequire, + SourceAlloydbRequire: sourceAlloydbRequire, } } var sourceAlloydbVerifyCa *shared.SourceAlloydbVerifyCa @@ -198,7 +198,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbVerifyCa != nil { sslMode = &shared.SourceAlloydbSSLModes{ - VerifyCa: sourceAlloydbVerifyCa, + SourceAlloydbVerifyCa: sourceAlloydbVerifyCa, } } var sourceAlloydbVerifyFull *shared.SourceAlloydbVerifyFull @@ -236,7 +236,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbVerifyFull != nil { sslMode = &shared.SourceAlloydbSSLModes{ - VerifyFull: sourceAlloydbVerifyFull, + SourceAlloydbVerifyFull: sourceAlloydbVerifyFull, } } } @@ -248,7 +248,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbNoTunnel != nil { tunnelMethod = &shared.SourceAlloydbSSHTunnelMethod{ - NoTunnel: sourceAlloydbNoTunnel, + SourceAlloydbNoTunnel: sourceAlloydbNoTunnel, } } var sourceAlloydbSSHKeyAuthentication *shared.SourceAlloydbSSHKeyAuthentication @@ -271,7 +271,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceAlloydbSSHTunnelMethod{ - SSHKeyAuthentication: sourceAlloydbSSHKeyAuthentication, + SourceAlloydbSSHKeyAuthentication: sourceAlloydbSSHKeyAuthentication, } } var sourceAlloydbPasswordAuthentication *shared.SourceAlloydbPasswordAuthentication @@ -294,7 +294,7 @@ func (r *SourceAlloydbResourceModel) ToCreateSDKType() *shared.SourceAlloydbCrea } if sourceAlloydbPasswordAuthentication != nil { tunnelMethod = &shared.SourceAlloydbSSHTunnelMethod{ - PasswordAuthentication: sourceAlloydbPasswordAuthentication, + SourceAlloydbPasswordAuthentication: sourceAlloydbPasswordAuthentication, } } } @@ -418,7 +418,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateStandard != nil { replicationMethod = &shared.ReplicationMethod{ - Standard: sourceAlloydbUpdateStandard, + SourceAlloydbUpdateStandard: sourceAlloydbUpdateStandard, } } } @@ -440,7 +440,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateDisable != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - Disable: sourceAlloydbUpdateDisable, + SourceAlloydbUpdateDisable: sourceAlloydbUpdateDisable, } } var sourceAlloydbUpdateAllow *shared.SourceAlloydbUpdateAllow @@ -455,7 +455,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateAllow != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - Allow: sourceAlloydbUpdateAllow, + SourceAlloydbUpdateAllow: sourceAlloydbUpdateAllow, } } var sourceAlloydbUpdatePrefer *shared.SourceAlloydbUpdatePrefer @@ -470,7 +470,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdatePrefer != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - Prefer: sourceAlloydbUpdatePrefer, + SourceAlloydbUpdatePrefer: sourceAlloydbUpdatePrefer, } } var sourceAlloydbUpdateRequire *shared.SourceAlloydbUpdateRequire @@ -485,7 +485,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateRequire != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - Require: sourceAlloydbUpdateRequire, + SourceAlloydbUpdateRequire: sourceAlloydbUpdateRequire, } } var sourceAlloydbUpdateVerifyCa *shared.SourceAlloydbUpdateVerifyCa @@ -523,7 +523,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateVerifyCa != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - VerifyCa: sourceAlloydbUpdateVerifyCa, + SourceAlloydbUpdateVerifyCa: sourceAlloydbUpdateVerifyCa, } } var sourceAlloydbUpdateVerifyFull *shared.SourceAlloydbUpdateVerifyFull @@ -561,7 +561,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateVerifyFull != nil { sslMode = &shared.SourceAlloydbUpdateSSLModes{ - VerifyFull: sourceAlloydbUpdateVerifyFull, + SourceAlloydbUpdateVerifyFull: sourceAlloydbUpdateVerifyFull, } } } @@ -573,7 +573,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateNoTunnel != nil { tunnelMethod = &shared.SourceAlloydbUpdateSSHTunnelMethod{ - NoTunnel: sourceAlloydbUpdateNoTunnel, + SourceAlloydbUpdateNoTunnel: sourceAlloydbUpdateNoTunnel, } } var sourceAlloydbUpdateSSHKeyAuthentication *shared.SourceAlloydbUpdateSSHKeyAuthentication @@ -596,7 +596,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceAlloydbUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourceAlloydbUpdateSSHKeyAuthentication, + SourceAlloydbUpdateSSHKeyAuthentication: sourceAlloydbUpdateSSHKeyAuthentication, } } var sourceAlloydbUpdatePasswordAuthentication *shared.SourceAlloydbUpdatePasswordAuthentication @@ -619,7 +619,7 @@ func (r *SourceAlloydbResourceModel) ToUpdateSDKType() *shared.SourceAlloydbPutR } if sourceAlloydbUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourceAlloydbUpdateSSHTunnelMethod{ - PasswordAuthentication: sourceAlloydbUpdatePasswordAuthentication, + SourceAlloydbUpdatePasswordAuthentication: sourceAlloydbUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_asana_resource_sdk.go b/internal/provider/source_asana_resource_sdk.go index dbf7145b6..6e656d66b 100644 --- a/internal/provider/source_asana_resource_sdk.go +++ b/internal/provider/source_asana_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceAsanaResourceModel) ToCreateSDKType() *shared.SourceAsanaCreateRe } if sourceAsanaAuthenticateViaAsanaOauth != nil { credentials = &shared.SourceAsanaAuthenticationMechanism{ - AuthenticateViaAsanaOauth: sourceAsanaAuthenticateViaAsanaOauth, + SourceAsanaAuthenticateViaAsanaOauth: sourceAsanaAuthenticateViaAsanaOauth, } } var sourceAsanaAuthenticateWithPersonalAccessToken *shared.SourceAsanaAuthenticateWithPersonalAccessToken @@ -35,7 +35,7 @@ func (r *SourceAsanaResourceModel) ToCreateSDKType() *shared.SourceAsanaCreateRe } if sourceAsanaAuthenticateWithPersonalAccessToken != nil { credentials = &shared.SourceAsanaAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: sourceAsanaAuthenticateWithPersonalAccessToken, + SourceAsanaAuthenticateWithPersonalAccessToken: sourceAsanaAuthenticateWithPersonalAccessToken, } } } diff --git a/internal/provider/source_auth0_resource_sdk.go b/internal/provider/source_auth0_resource_sdk.go index 78ff6d1b7..20218f373 100644 --- a/internal/provider/source_auth0_resource_sdk.go +++ b/internal/provider/source_auth0_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe } if sourceAuth0OAuth2ConfidentialApplication != nil { credentials = shared.SourceAuth0AuthenticationMethod{ - OAuth2ConfidentialApplication: sourceAuth0OAuth2ConfidentialApplication, + SourceAuth0OAuth2ConfidentialApplication: sourceAuth0OAuth2ConfidentialApplication, } } var sourceAuth0OAuth2AccessToken *shared.SourceAuth0OAuth2AccessToken @@ -35,7 +35,7 @@ func (r *SourceAuth0ResourceModel) ToCreateSDKType() *shared.SourceAuth0CreateRe } if sourceAuth0OAuth2AccessToken != nil { credentials = shared.SourceAuth0AuthenticationMethod{ - OAuth2AccessToken: sourceAuth0OAuth2AccessToken, + SourceAuth0OAuth2AccessToken: sourceAuth0OAuth2AccessToken, } } startDate := new(string) diff --git a/internal/provider/source_azureblobstorage_resource_sdk.go b/internal/provider/source_azureblobstorage_resource_sdk.go index 356eda8e9..0e1508fb9 100644 --- a/internal/provider/source_azureblobstorage_resource_sdk.go +++ b/internal/provider/source_azureblobstorage_resource_sdk.go @@ -36,7 +36,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToCreateSDKType() *shared.SourceAz } if sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON != nil { format = shared.SourceAzureBlobStorageInputFormat{ - JSONLinesNewlineDelimitedJSON: sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON, + SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON: sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON, } } configuration := shared.SourceAzureBlobStorage{ @@ -99,7 +99,7 @@ func (r *SourceAzureBlobStorageResourceModel) ToUpdateSDKType() *shared.SourceAz } if sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON != nil { format = shared.InputFormat{ - JSONLinesNewlineDelimitedJSON: sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, + SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON: sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, } } configuration := shared.SourceAzureBlobStorageUpdate{ diff --git a/internal/provider/source_clickhouse_resource_sdk.go b/internal/provider/source_clickhouse_resource_sdk.go index ec743374c..9aec62cf3 100644 --- a/internal/provider/source_clickhouse_resource_sdk.go +++ b/internal/provider/source_clickhouse_resource_sdk.go @@ -30,7 +30,7 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou } if sourceClickhouseNoTunnel != nil { tunnelMethod = &shared.SourceClickhouseSSHTunnelMethod{ - NoTunnel: sourceClickhouseNoTunnel, + SourceClickhouseNoTunnel: sourceClickhouseNoTunnel, } } var sourceClickhouseSSHKeyAuthentication *shared.SourceClickhouseSSHKeyAuthentication @@ -53,7 +53,7 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou } if sourceClickhouseSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceClickhouseSSHTunnelMethod{ - SSHKeyAuthentication: sourceClickhouseSSHKeyAuthentication, + SourceClickhouseSSHKeyAuthentication: sourceClickhouseSSHKeyAuthentication, } } var sourceClickhousePasswordAuthentication *shared.SourceClickhousePasswordAuthentication @@ -76,7 +76,7 @@ func (r *SourceClickhouseResourceModel) ToCreateSDKType() *shared.SourceClickhou } if sourceClickhousePasswordAuthentication != nil { tunnelMethod = &shared.SourceClickhouseSSHTunnelMethod{ - PasswordAuthentication: sourceClickhousePasswordAuthentication, + SourceClickhousePasswordAuthentication: sourceClickhousePasswordAuthentication, } } } @@ -134,7 +134,7 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou } if sourceClickhouseUpdateNoTunnel != nil { tunnelMethod = &shared.SourceClickhouseUpdateSSHTunnelMethod{ - NoTunnel: sourceClickhouseUpdateNoTunnel, + SourceClickhouseUpdateNoTunnel: sourceClickhouseUpdateNoTunnel, } } var sourceClickhouseUpdateSSHKeyAuthentication *shared.SourceClickhouseUpdateSSHKeyAuthentication @@ -157,7 +157,7 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou } if sourceClickhouseUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceClickhouseUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourceClickhouseUpdateSSHKeyAuthentication, + SourceClickhouseUpdateSSHKeyAuthentication: sourceClickhouseUpdateSSHKeyAuthentication, } } var sourceClickhouseUpdatePasswordAuthentication *shared.SourceClickhouseUpdatePasswordAuthentication @@ -180,7 +180,7 @@ func (r *SourceClickhouseResourceModel) ToUpdateSDKType() *shared.SourceClickhou } if sourceClickhouseUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourceClickhouseUpdateSSHTunnelMethod{ - PasswordAuthentication: sourceClickhouseUpdatePasswordAuthentication, + SourceClickhouseUpdatePasswordAuthentication: sourceClickhouseUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_e2etestcloud_resource_sdk.go b/internal/provider/source_e2etestcloud_resource_sdk.go index d831c6e6d..138e55932 100644 --- a/internal/provider/source_e2etestcloud_resource_sdk.go +++ b/internal/provider/source_e2etestcloud_resource_sdk.go @@ -49,7 +49,7 @@ func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTes } if sourceE2eTestCloudSingleSchema != nil { mockCatalog = shared.SourceE2eTestCloudMockCatalog{ - SingleSchema: sourceE2eTestCloudSingleSchema, + SourceE2eTestCloudSingleSchema: sourceE2eTestCloudSingleSchema, } } var sourceE2eTestCloudMultiSchema *shared.SourceE2eTestCloudMultiSchema @@ -66,7 +66,7 @@ func (r *SourceE2eTestCloudResourceModel) ToCreateSDKType() *shared.SourceE2eTes } if sourceE2eTestCloudMultiSchema != nil { mockCatalog = shared.SourceE2eTestCloudMockCatalog{ - MultiSchema: sourceE2eTestCloudMultiSchema, + SourceE2eTestCloudMultiSchema: sourceE2eTestCloudMultiSchema, } } seed := new(int64) diff --git a/internal/provider/source_fauna_resource_sdk.go b/internal/provider/source_fauna_resource_sdk.go index 6b1227ddc..4db2d553b 100644 --- a/internal/provider/source_fauna_resource_sdk.go +++ b/internal/provider/source_fauna_resource_sdk.go @@ -17,7 +17,7 @@ func (r *SourceFaunaResourceModel) ToCreateSDKType() *shared.SourceFaunaCreateRe } if sourceFaunaDisabled != nil { deletions = shared.SourceFaunaDeletionMode{ - Disabled: sourceFaunaDisabled, + SourceFaunaDisabled: sourceFaunaDisabled, } } var sourceFaunaEnabled *shared.SourceFaunaEnabled @@ -34,7 +34,7 @@ func (r *SourceFaunaResourceModel) ToCreateSDKType() *shared.SourceFaunaCreateRe } if sourceFaunaEnabled != nil { deletions = shared.SourceFaunaDeletionMode{ - Enabled: sourceFaunaEnabled, + SourceFaunaEnabled: sourceFaunaEnabled, } } pageSize := new(int64) diff --git a/internal/provider/source_filesecure_resource_sdk.go b/internal/provider/source_filesecure_resource_sdk.go index 71345d532..11bb4f773 100644 --- a/internal/provider/source_filesecure_resource_sdk.go +++ b/internal/provider/source_filesecure_resource_sdk.go @@ -30,7 +30,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureHTTPSPublicWeb != nil { provider = shared.SourceFileSecureStorageProvider{ - HTTPSPublicWeb: sourceFileSecureHTTPSPublicWeb, + SourceFileSecureHTTPSPublicWeb: sourceFileSecureHTTPSPublicWeb, } } var sourceFileSecureGCSGoogleCloudStorage *shared.SourceFileSecureGCSGoogleCloudStorage @@ -47,7 +47,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureGCSGoogleCloudStorage != nil { provider = shared.SourceFileSecureStorageProvider{ - GCSGoogleCloudStorage: sourceFileSecureGCSGoogleCloudStorage, + SourceFileSecureGCSGoogleCloudStorage: sourceFileSecureGCSGoogleCloudStorage, } } var sourceFileSecureS3AmazonWebServices *shared.SourceFileSecureS3AmazonWebServices @@ -71,7 +71,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureS3AmazonWebServices != nil { provider = shared.SourceFileSecureStorageProvider{ - S3AmazonWebServices: sourceFileSecureS3AmazonWebServices, + SourceFileSecureS3AmazonWebServices: sourceFileSecureS3AmazonWebServices, } } var sourceFileSecureAzBlobAzureBlobStorage *shared.SourceFileSecureAzBlobAzureBlobStorage @@ -97,7 +97,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureAzBlobAzureBlobStorage != nil { provider = shared.SourceFileSecureStorageProvider{ - AzBlobAzureBlobStorage: sourceFileSecureAzBlobAzureBlobStorage, + SourceFileSecureAzBlobAzureBlobStorage: sourceFileSecureAzBlobAzureBlobStorage, } } var sourceFileSecureSSHSecureShell *shared.SourceFileSecureSSHSecureShell @@ -125,7 +125,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureSSHSecureShell != nil { provider = shared.SourceFileSecureStorageProvider{ - SSHSecureShell: sourceFileSecureSSHSecureShell, + SourceFileSecureSSHSecureShell: sourceFileSecureSSHSecureShell, } } var sourceFileSecureSCPSecureCopyProtocol *shared.SourceFileSecureSCPSecureCopyProtocol @@ -153,7 +153,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureSCPSecureCopyProtocol != nil { provider = shared.SourceFileSecureStorageProvider{ - SCPSecureCopyProtocol: sourceFileSecureSCPSecureCopyProtocol, + SourceFileSecureSCPSecureCopyProtocol: sourceFileSecureSCPSecureCopyProtocol, } } var sourceFileSecureSFTPSecureFileTransferProtocol *shared.SourceFileSecureSFTPSecureFileTransferProtocol @@ -181,7 +181,7 @@ func (r *SourceFileSecureResourceModel) ToCreateSDKType() *shared.SourceFileSecu } if sourceFileSecureSFTPSecureFileTransferProtocol != nil { provider = shared.SourceFileSecureStorageProvider{ - SFTPSecureFileTransferProtocol: sourceFileSecureSFTPSecureFileTransferProtocol, + SourceFileSecureSFTPSecureFileTransferProtocol: sourceFileSecureSFTPSecureFileTransferProtocol, } } readerOptions := new(string) @@ -284,7 +284,7 @@ func (r *SourceFileSecureResourceModel) ToUpdateSDKType() *shared.SourceFileSecu } if sourceFileSecureUpdateS3AmazonWebServices != nil { provider = shared.StorageProvider{ - S3AmazonWebServices: sourceFileSecureUpdateS3AmazonWebServices, + SourceFileSecureUpdateS3AmazonWebServices: sourceFileSecureUpdateS3AmazonWebServices, } } var azBlobAzureBlobStorage *shared.AzBlobAzureBlobStorage diff --git a/internal/provider/source_github_resource_sdk.go b/internal/provider/source_github_resource_sdk.go index 440193099..c334431d3 100644 --- a/internal/provider/source_github_resource_sdk.go +++ b/internal/provider/source_github_resource_sdk.go @@ -40,7 +40,7 @@ func (r *SourceGithubResourceModel) ToCreateSDKType() *shared.SourceGithubCreate } if sourceGithubOAuth != nil { credentials = &shared.SourceGithubAuthentication{ - OAuth: sourceGithubOAuth, + SourceGithubOAuth: sourceGithubOAuth, } } var sourceGithubPersonalAccessToken *shared.SourceGithubPersonalAccessToken @@ -52,7 +52,7 @@ func (r *SourceGithubResourceModel) ToCreateSDKType() *shared.SourceGithubCreate } if sourceGithubPersonalAccessToken != nil { credentials = &shared.SourceGithubAuthentication{ - PersonalAccessToken: sourceGithubPersonalAccessToken, + SourceGithubPersonalAccessToken: sourceGithubPersonalAccessToken, } } } @@ -137,7 +137,7 @@ func (r *SourceGithubResourceModel) ToUpdateSDKType() *shared.SourceGithubPutReq } if sourceGithubUpdatePersonalAccessToken != nil { credentials = &shared.SourceGithubUpdateAuthentication{ - PersonalAccessToken: sourceGithubUpdatePersonalAccessToken, + SourceGithubUpdatePersonalAccessToken: sourceGithubUpdatePersonalAccessToken, } } } diff --git a/internal/provider/source_gitlab_resource_sdk.go b/internal/provider/source_gitlab_resource_sdk.go index 383708f6c..bdc5d4522 100644 --- a/internal/provider/source_gitlab_resource_sdk.go +++ b/internal/provider/source_gitlab_resource_sdk.go @@ -33,7 +33,7 @@ func (r *SourceGitlabResourceModel) ToCreateSDKType() *shared.SourceGitlabCreate } if sourceGitlabOAuth20 != nil { credentials = shared.SourceGitlabAuthorizationMethod{ - OAuth20: sourceGitlabOAuth20, + SourceGitlabOAuth20: sourceGitlabOAuth20, } } var sourceGitlabPrivateToken *shared.SourceGitlabPrivateToken @@ -45,7 +45,7 @@ func (r *SourceGitlabResourceModel) ToCreateSDKType() *shared.SourceGitlabCreate } if sourceGitlabPrivateToken != nil { credentials = shared.SourceGitlabAuthorizationMethod{ - PrivateToken: sourceGitlabPrivateToken, + SourceGitlabPrivateToken: sourceGitlabPrivateToken, } } groups := new(string) @@ -115,7 +115,7 @@ func (r *SourceGitlabResourceModel) ToUpdateSDKType() *shared.SourceGitlabPutReq } if sourceGitlabUpdateOAuth20 != nil { credentials = shared.SourceGitlabUpdateAuthorizationMethod{ - OAuth20: sourceGitlabUpdateOAuth20, + SourceGitlabUpdateOAuth20: sourceGitlabUpdateOAuth20, } } var privateToken *shared.PrivateToken diff --git a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go index 32ae2320c..41a3f8edc 100644 --- a/internal/provider/source_googleanalyticsdataapi_resource_sdk.go +++ b/internal/provider/source_googleanalyticsdataapi_resource_sdk.go @@ -31,7 +31,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So } if sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth != nil { credentials = &shared.SourceGoogleAnalyticsDataAPICredentials{ - AuthenticateViaGoogleOauth: sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth, + SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth: sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth, } } var sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication @@ -43,7 +43,7 @@ func (r *SourceGoogleAnalyticsDataAPIResourceModel) ToCreateSDKType() *shared.So } if sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication != nil { credentials = &shared.SourceGoogleAnalyticsDataAPICredentials{ - ServiceAccountKeyAuthentication: sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication, + SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication: sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication, } } } diff --git a/internal/provider/source_googleanalyticsv4_resource_sdk.go b/internal/provider/source_googleanalyticsv4_resource_sdk.go index 657595520..260054498 100644 --- a/internal/provider/source_googleanalyticsv4_resource_sdk.go +++ b/internal/provider/source_googleanalyticsv4_resource_sdk.go @@ -31,7 +31,7 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG } if sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth != nil { credentials = &shared.SourceGoogleAnalyticsV4Credentials{ - AuthenticateViaGoogleOauth: sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth, + SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth: sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth, } } var sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication @@ -43,7 +43,7 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToCreateSDKType() *shared.SourceG } if sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication != nil { credentials = &shared.SourceGoogleAnalyticsV4Credentials{ - ServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication, + SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication, } } } @@ -113,7 +113,7 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToUpdateSDKType() *shared.SourceG } if sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth != nil { credentials = &shared.SourceGoogleAnalyticsV4UpdateCredentials{ - AuthenticateViaGoogleOauth: sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth, + SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth: sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth, } } var sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication *shared.SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication @@ -125,7 +125,7 @@ func (r *SourceGoogleAnalyticsV4ResourceModel) ToUpdateSDKType() *shared.SourceG } if sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication != nil { credentials = &shared.SourceGoogleAnalyticsV4UpdateCredentials{ - ServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication, + SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication: sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication, } } } diff --git a/internal/provider/source_googledirectory_resource_sdk.go b/internal/provider/source_googledirectory_resource_sdk.go index 41c9e29bb..6cb48040d 100644 --- a/internal/provider/source_googledirectory_resource_sdk.go +++ b/internal/provider/source_googledirectory_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceGoogleDirectoryResourceModel) ToCreateSDKType() *shared.SourceGoo } if sourceGoogleDirectorySignInViaGoogleOAuth != nil { credentials = &shared.SourceGoogleDirectoryGoogleCredentials{ - SignInViaGoogleOAuth: sourceGoogleDirectorySignInViaGoogleOAuth, + SourceGoogleDirectorySignInViaGoogleOAuth: sourceGoogleDirectorySignInViaGoogleOAuth, } } var sourceGoogleDirectoryServiceAccountKey *shared.SourceGoogleDirectoryServiceAccountKey @@ -37,7 +37,7 @@ func (r *SourceGoogleDirectoryResourceModel) ToCreateSDKType() *shared.SourceGoo } if sourceGoogleDirectoryServiceAccountKey != nil { credentials = &shared.SourceGoogleDirectoryGoogleCredentials{ - ServiceAccountKey: sourceGoogleDirectoryServiceAccountKey, + SourceGoogleDirectoryServiceAccountKey: sourceGoogleDirectoryServiceAccountKey, } } } diff --git a/internal/provider/source_googlesearchconsole_resource_sdk.go b/internal/provider/source_googlesearchconsole_resource_sdk.go index 53a898782..79d82fe05 100644 --- a/internal/provider/source_googlesearchconsole_resource_sdk.go +++ b/internal/provider/source_googlesearchconsole_resource_sdk.go @@ -30,7 +30,7 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc } if sourceGoogleSearchConsoleOAuth != nil { authorization = shared.SourceGoogleSearchConsoleAuthenticationType{ - OAuth: sourceGoogleSearchConsoleOAuth, + SourceGoogleSearchConsoleOAuth: sourceGoogleSearchConsoleOAuth, } } var sourceGoogleSearchConsoleServiceAccountKeyAuthentication *shared.SourceGoogleSearchConsoleServiceAccountKeyAuthentication @@ -44,7 +44,7 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToCreateSDKType() *shared.Sourc } if sourceGoogleSearchConsoleServiceAccountKeyAuthentication != nil { authorization = shared.SourceGoogleSearchConsoleAuthenticationType{ - ServiceAccountKeyAuthentication: sourceGoogleSearchConsoleServiceAccountKeyAuthentication, + SourceGoogleSearchConsoleServiceAccountKeyAuthentication: sourceGoogleSearchConsoleServiceAccountKeyAuthentication, } } customReports := new(string) @@ -140,7 +140,7 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToUpdateSDKType() *shared.Sourc } if sourceGoogleSearchConsoleUpdateOAuth != nil { authorization = shared.AuthenticationType{ - OAuth: sourceGoogleSearchConsoleUpdateOAuth, + SourceGoogleSearchConsoleUpdateOAuth: sourceGoogleSearchConsoleUpdateOAuth, } } var sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication *shared.SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication @@ -154,7 +154,7 @@ func (r *SourceGoogleSearchConsoleResourceModel) ToUpdateSDKType() *shared.Sourc } if sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication != nil { authorization = shared.AuthenticationType{ - ServiceAccountKeyAuthentication: sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, + SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication: sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, } } customReports := new(string) diff --git a/internal/provider/source_googlesheets_resource_sdk.go b/internal/provider/source_googlesheets_resource_sdk.go index ed5abc55a..cff4cbb4b 100644 --- a/internal/provider/source_googlesheets_resource_sdk.go +++ b/internal/provider/source_googlesheets_resource_sdk.go @@ -22,7 +22,7 @@ func (r *SourceGoogleSheetsResourceModel) ToCreateSDKType() *shared.SourceGoogle } if sourceGoogleSheetsAuthenticateViaGoogleOAuth != nil { credentials = shared.SourceGoogleSheetsAuthentication{ - AuthenticateViaGoogleOAuth: sourceGoogleSheetsAuthenticateViaGoogleOAuth, + SourceGoogleSheetsAuthenticateViaGoogleOAuth: sourceGoogleSheetsAuthenticateViaGoogleOAuth, } } var sourceGoogleSheetsServiceAccountKeyAuthentication *shared.SourceGoogleSheetsServiceAccountKeyAuthentication @@ -34,7 +34,7 @@ func (r *SourceGoogleSheetsResourceModel) ToCreateSDKType() *shared.SourceGoogle } if sourceGoogleSheetsServiceAccountKeyAuthentication != nil { credentials = shared.SourceGoogleSheetsAuthentication{ - ServiceAccountKeyAuthentication: sourceGoogleSheetsServiceAccountKeyAuthentication, + SourceGoogleSheetsServiceAccountKeyAuthentication: sourceGoogleSheetsServiceAccountKeyAuthentication, } } namesConversion := new(bool) @@ -86,7 +86,7 @@ func (r *SourceGoogleSheetsResourceModel) ToUpdateSDKType() *shared.SourceGoogle } if sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth != nil { credentials = shared.SourceGoogleSheetsUpdateAuthentication{ - AuthenticateViaGoogleOAuth: sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth, + SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth: sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth, } } var sourceGoogleSheetsUpdateServiceAccountKeyAuthentication *shared.SourceGoogleSheetsUpdateServiceAccountKeyAuthentication @@ -98,7 +98,7 @@ func (r *SourceGoogleSheetsResourceModel) ToUpdateSDKType() *shared.SourceGoogle } if sourceGoogleSheetsUpdateServiceAccountKeyAuthentication != nil { credentials = shared.SourceGoogleSheetsUpdateAuthentication{ - ServiceAccountKeyAuthentication: sourceGoogleSheetsUpdateServiceAccountKeyAuthentication, + SourceGoogleSheetsUpdateServiceAccountKeyAuthentication: sourceGoogleSheetsUpdateServiceAccountKeyAuthentication, } } namesConversion := new(bool) diff --git a/internal/provider/source_harvest_resource_sdk.go b/internal/provider/source_harvest_resource_sdk.go index e5bcee7b2..908b66762 100644 --- a/internal/provider/source_harvest_resource_sdk.go +++ b/internal/provider/source_harvest_resource_sdk.go @@ -31,7 +31,7 @@ func (r *SourceHarvestResourceModel) ToCreateSDKType() *shared.SourceHarvestCrea } if sourceHarvestAuthenticateViaHarvestOAuth != nil { credentials = &shared.SourceHarvestAuthenticationMechanism{ - AuthenticateViaHarvestOAuth: sourceHarvestAuthenticateViaHarvestOAuth, + SourceHarvestAuthenticateViaHarvestOAuth: sourceHarvestAuthenticateViaHarvestOAuth, } } var sourceHarvestAuthenticateWithPersonalAccessToken *shared.SourceHarvestAuthenticateWithPersonalAccessToken @@ -48,7 +48,7 @@ func (r *SourceHarvestResourceModel) ToCreateSDKType() *shared.SourceHarvestCrea } if sourceHarvestAuthenticateWithPersonalAccessToken != nil { credentials = &shared.SourceHarvestAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: sourceHarvestAuthenticateWithPersonalAccessToken, + SourceHarvestAuthenticateWithPersonalAccessToken: sourceHarvestAuthenticateWithPersonalAccessToken, } } } @@ -126,7 +126,7 @@ func (r *SourceHarvestResourceModel) ToUpdateSDKType() *shared.SourceHarvestPutR } if sourceHarvestUpdateAuthenticateWithPersonalAccessToken != nil { credentials = &shared.SourceHarvestUpdateAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: sourceHarvestUpdateAuthenticateWithPersonalAccessToken, + SourceHarvestUpdateAuthenticateWithPersonalAccessToken: sourceHarvestUpdateAuthenticateWithPersonalAccessToken, } } } diff --git a/internal/provider/source_hubspot_resource_sdk.go b/internal/provider/source_hubspot_resource_sdk.go index 6938775db..f6245fc63 100644 --- a/internal/provider/source_hubspot_resource_sdk.go +++ b/internal/provider/source_hubspot_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceHubspotResourceModel) ToCreateSDKType() *shared.SourceHubspotCrea } if sourceHubspotOAuth != nil { credentials = shared.SourceHubspotAuthentication{ - OAuth: sourceHubspotOAuth, + SourceHubspotOAuth: sourceHubspotOAuth, } } var sourceHubspotPrivateApp *shared.SourceHubspotPrivateApp @@ -35,7 +35,7 @@ func (r *SourceHubspotResourceModel) ToCreateSDKType() *shared.SourceHubspotCrea } if sourceHubspotPrivateApp != nil { credentials = shared.SourceHubspotAuthentication{ - PrivateApp: sourceHubspotPrivateApp, + SourceHubspotPrivateApp: sourceHubspotPrivateApp, } } startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) @@ -80,7 +80,7 @@ func (r *SourceHubspotResourceModel) ToUpdateSDKType() *shared.SourceHubspotPutR } if sourceHubspotUpdateOAuth != nil { credentials = shared.SourceHubspotUpdateAuthentication{ - OAuth: sourceHubspotUpdateOAuth, + SourceHubspotUpdateOAuth: sourceHubspotUpdateOAuth, } } var privateApp *shared.PrivateApp diff --git a/internal/provider/source_leverhiring_resource_sdk.go b/internal/provider/source_leverhiring_resource_sdk.go index f33069a28..20aca0c37 100644 --- a/internal/provider/source_leverhiring_resource_sdk.go +++ b/internal/provider/source_leverhiring_resource_sdk.go @@ -33,7 +33,7 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi } if sourceLeverHiringAuthenticateViaLeverOAuth != nil { credentials = &shared.SourceLeverHiringAuthenticationMechanism{ - AuthenticateViaLeverOAuth: sourceLeverHiringAuthenticateViaLeverOAuth, + SourceLeverHiringAuthenticateViaLeverOAuth: sourceLeverHiringAuthenticateViaLeverOAuth, } } var sourceLeverHiringAuthenticateViaLeverAPIKey *shared.SourceLeverHiringAuthenticateViaLeverAPIKey @@ -45,7 +45,7 @@ func (r *SourceLeverHiringResourceModel) ToCreateSDKType() *shared.SourceLeverHi } if sourceLeverHiringAuthenticateViaLeverAPIKey != nil { credentials = &shared.SourceLeverHiringAuthenticationMechanism{ - AuthenticateViaLeverAPIKey: sourceLeverHiringAuthenticateViaLeverAPIKey, + SourceLeverHiringAuthenticateViaLeverAPIKey: sourceLeverHiringAuthenticateViaLeverAPIKey, } } } diff --git a/internal/provider/source_linkedinads_resource_sdk.go b/internal/provider/source_linkedinads_resource_sdk.go index 67ccc01f6..21bffc5e0 100644 --- a/internal/provider/source_linkedinads_resource_sdk.go +++ b/internal/provider/source_linkedinads_resource_sdk.go @@ -39,7 +39,7 @@ func (r *SourceLinkedinAdsResourceModel) ToCreateSDKType() *shared.SourceLinkedi } if sourceLinkedinAdsOAuth20 != nil { credentials = &shared.SourceLinkedinAdsAuthentication{ - OAuth20: sourceLinkedinAdsOAuth20, + SourceLinkedinAdsOAuth20: sourceLinkedinAdsOAuth20, } } var sourceLinkedinAdsAccessToken *shared.SourceLinkedinAdsAccessToken @@ -51,7 +51,7 @@ func (r *SourceLinkedinAdsResourceModel) ToCreateSDKType() *shared.SourceLinkedi } if sourceLinkedinAdsAccessToken != nil { credentials = &shared.SourceLinkedinAdsAuthentication{ - AccessToken: sourceLinkedinAdsAccessToken, + SourceLinkedinAdsAccessToken: sourceLinkedinAdsAccessToken, } } } @@ -115,7 +115,7 @@ func (r *SourceLinkedinAdsResourceModel) ToUpdateSDKType() *shared.SourceLinkedi } if sourceLinkedinAdsUpdateOAuth20 != nil { credentials = &shared.SourceLinkedinAdsUpdateAuthentication{ - OAuth20: sourceLinkedinAdsUpdateOAuth20, + SourceLinkedinAdsUpdateOAuth20: sourceLinkedinAdsUpdateOAuth20, } } var accessToken *shared.AccessToken diff --git a/internal/provider/source_linkedinpages_resource_sdk.go b/internal/provider/source_linkedinpages_resource_sdk.go index bb729b3bc..ecdf97a14 100644 --- a/internal/provider/source_linkedinpages_resource_sdk.go +++ b/internal/provider/source_linkedinpages_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceLinkedinPagesResourceModel) ToCreateSDKType() *shared.SourceLinke } if sourceLinkedinPagesOAuth20 != nil { credentials = &shared.SourceLinkedinPagesAuthentication{ - OAuth20: sourceLinkedinPagesOAuth20, + SourceLinkedinPagesOAuth20: sourceLinkedinPagesOAuth20, } } var sourceLinkedinPagesAccessToken *shared.SourceLinkedinPagesAccessToken @@ -35,7 +35,7 @@ func (r *SourceLinkedinPagesResourceModel) ToCreateSDKType() *shared.SourceLinke } if sourceLinkedinPagesAccessToken != nil { credentials = &shared.SourceLinkedinPagesAuthentication{ - AccessToken: sourceLinkedinPagesAccessToken, + SourceLinkedinPagesAccessToken: sourceLinkedinPagesAccessToken, } } } @@ -82,7 +82,7 @@ func (r *SourceLinkedinPagesResourceModel) ToUpdateSDKType() *shared.SourceLinke } if sourceLinkedinPagesUpdateOAuth20 != nil { credentials = &shared.SourceLinkedinPagesUpdateAuthentication{ - OAuth20: sourceLinkedinPagesUpdateOAuth20, + SourceLinkedinPagesUpdateOAuth20: sourceLinkedinPagesUpdateOAuth20, } } var sourceLinkedinPagesUpdateAccessToken *shared.SourceLinkedinPagesUpdateAccessToken @@ -94,7 +94,7 @@ func (r *SourceLinkedinPagesResourceModel) ToUpdateSDKType() *shared.SourceLinke } if sourceLinkedinPagesUpdateAccessToken != nil { credentials = &shared.SourceLinkedinPagesUpdateAuthentication{ - AccessToken: sourceLinkedinPagesUpdateAccessToken, + SourceLinkedinPagesUpdateAccessToken: sourceLinkedinPagesUpdateAccessToken, } } } diff --git a/internal/provider/source_mailchimp_resource_sdk.go b/internal/provider/source_mailchimp_resource_sdk.go index 588728be5..f6be94b57 100644 --- a/internal/provider/source_mailchimp_resource_sdk.go +++ b/internal/provider/source_mailchimp_resource_sdk.go @@ -39,7 +39,7 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp } if sourceMailchimpOAuth20 != nil { credentials = &shared.SourceMailchimpAuthentication{ - OAuth20: sourceMailchimpOAuth20, + SourceMailchimpOAuth20: sourceMailchimpOAuth20, } } var sourceMailchimpAPIKey *shared.SourceMailchimpAPIKey @@ -51,7 +51,7 @@ func (r *SourceMailchimpResourceModel) ToCreateSDKType() *shared.SourceMailchimp } if sourceMailchimpAPIKey != nil { credentials = &shared.SourceMailchimpAuthentication{ - APIKey: sourceMailchimpAPIKey, + SourceMailchimpAPIKey: sourceMailchimpAPIKey, } } } @@ -113,7 +113,7 @@ func (r *SourceMailchimpResourceModel) ToUpdateSDKType() *shared.SourceMailchimp } if sourceMailchimpUpdateOAuth20 != nil { credentials = &shared.SourceMailchimpUpdateAuthentication{ - OAuth20: sourceMailchimpUpdateOAuth20, + SourceMailchimpUpdateOAuth20: sourceMailchimpUpdateOAuth20, } } var apiKey *shared.APIKey diff --git a/internal/provider/source_microsoftteams_resource_sdk.go b/internal/provider/source_microsoftteams_resource_sdk.go index 0e99d0e6c..d7646df37 100644 --- a/internal/provider/source_microsoftteams_resource_sdk.go +++ b/internal/provider/source_microsoftteams_resource_sdk.go @@ -25,7 +25,7 @@ func (r *SourceMicrosoftTeamsResourceModel) ToCreateSDKType() *shared.SourceMicr } if sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 != nil { credentials = &shared.SourceMicrosoftTeamsAuthenticationMechanism{ - AuthenticateViaMicrosoftOAuth20: sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20, + SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20: sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20, } } var sourceMicrosoftTeamsAuthenticateViaMicrosoft *shared.SourceMicrosoftTeamsAuthenticateViaMicrosoft @@ -41,7 +41,7 @@ func (r *SourceMicrosoftTeamsResourceModel) ToCreateSDKType() *shared.SourceMicr } if sourceMicrosoftTeamsAuthenticateViaMicrosoft != nil { credentials = &shared.SourceMicrosoftTeamsAuthenticationMechanism{ - AuthenticateViaMicrosoft: sourceMicrosoftTeamsAuthenticateViaMicrosoft, + SourceMicrosoftTeamsAuthenticateViaMicrosoft: sourceMicrosoftTeamsAuthenticateViaMicrosoft, } } } diff --git a/internal/provider/source_mixpanel_resource_sdk.go b/internal/provider/source_mixpanel_resource_sdk.go index 4eb0c12bd..25bf91330 100644 --- a/internal/provider/source_mixpanel_resource_sdk.go +++ b/internal/provider/source_mixpanel_resource_sdk.go @@ -28,7 +28,7 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr } if sourceMixpanelServiceAccount != nil { credentials = &shared.SourceMixpanelAuthenticationWildcard{ - ServiceAccount: sourceMixpanelServiceAccount, + SourceMixpanelServiceAccount: sourceMixpanelServiceAccount, } } var sourceMixpanelProjectSecret *shared.SourceMixpanelProjectSecret @@ -40,7 +40,7 @@ func (r *SourceMixpanelResourceModel) ToCreateSDKType() *shared.SourceMixpanelCr } if sourceMixpanelProjectSecret != nil { credentials = &shared.SourceMixpanelAuthenticationWildcard{ - ProjectSecret: sourceMixpanelProjectSecret, + SourceMixpanelProjectSecret: sourceMixpanelProjectSecret, } } } diff --git a/internal/provider/source_monday_resource_sdk.go b/internal/provider/source_monday_resource_sdk.go index 4fc00d60c..3bfa66cc0 100644 --- a/internal/provider/source_monday_resource_sdk.go +++ b/internal/provider/source_monday_resource_sdk.go @@ -30,7 +30,7 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate } if sourceMondayOAuth20 != nil { credentials = &shared.SourceMondayAuthorizationMethod{ - OAuth20: sourceMondayOAuth20, + SourceMondayOAuth20: sourceMondayOAuth20, } } var sourceMondayAPIToken *shared.SourceMondayAPIToken @@ -42,7 +42,7 @@ func (r *SourceMondayResourceModel) ToCreateSDKType() *shared.SourceMondayCreate } if sourceMondayAPIToken != nil { credentials = &shared.SourceMondayAuthorizationMethod{ - APIToken: sourceMondayAPIToken, + SourceMondayAPIToken: sourceMondayAPIToken, } } } @@ -94,7 +94,7 @@ func (r *SourceMondayResourceModel) ToUpdateSDKType() *shared.SourceMondayPutReq } if sourceMondayUpdateOAuth20 != nil { credentials = &shared.SourceMondayUpdateAuthorizationMethod{ - OAuth20: sourceMondayUpdateOAuth20, + SourceMondayUpdateOAuth20: sourceMondayUpdateOAuth20, } } var apiToken *shared.APIToken diff --git a/internal/provider/source_mongodb_resource_sdk.go b/internal/provider/source_mongodb_resource_sdk.go index 94d5dcd10..429634a01 100644 --- a/internal/provider/source_mongodb_resource_sdk.go +++ b/internal/provider/source_mongodb_resource_sdk.go @@ -34,7 +34,7 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea } if sourceMongodbStandaloneMongoDbInstance != nil { instanceType = &shared.SourceMongodbMongoDbInstanceType{ - StandaloneMongoDbInstance: sourceMongodbStandaloneMongoDbInstance, + SourceMongodbStandaloneMongoDbInstance: sourceMongodbStandaloneMongoDbInstance, } } var sourceMongodbReplicaSet *shared.SourceMongodbReplicaSet @@ -53,7 +53,7 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea } if sourceMongodbReplicaSet != nil { instanceType = &shared.SourceMongodbMongoDbInstanceType{ - ReplicaSet: sourceMongodbReplicaSet, + SourceMongodbReplicaSet: sourceMongodbReplicaSet, } } var sourceMongodbMongoDBAtlas *shared.SourceMongodbMongoDBAtlas @@ -70,7 +70,7 @@ func (r *SourceMongodbResourceModel) ToCreateSDKType() *shared.SourceMongodbCrea } if sourceMongodbMongoDBAtlas != nil { instanceType = &shared.SourceMongodbMongoDbInstanceType{ - MongoDBAtlas: sourceMongodbMongoDBAtlas, + SourceMongodbMongoDBAtlas: sourceMongodbMongoDBAtlas, } } } @@ -141,7 +141,7 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR } if sourceMongodbUpdateStandaloneMongoDbInstance != nil { instanceType = &shared.SourceMongodbUpdateMongoDbInstanceType{ - StandaloneMongoDbInstance: sourceMongodbUpdateStandaloneMongoDbInstance, + SourceMongodbUpdateStandaloneMongoDbInstance: sourceMongodbUpdateStandaloneMongoDbInstance, } } var sourceMongodbUpdateReplicaSet *shared.SourceMongodbUpdateReplicaSet @@ -160,7 +160,7 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR } if sourceMongodbUpdateReplicaSet != nil { instanceType = &shared.SourceMongodbUpdateMongoDbInstanceType{ - ReplicaSet: sourceMongodbUpdateReplicaSet, + SourceMongodbUpdateReplicaSet: sourceMongodbUpdateReplicaSet, } } var sourceMongodbUpdateMongoDBAtlas *shared.SourceMongodbUpdateMongoDBAtlas @@ -177,7 +177,7 @@ func (r *SourceMongodbResourceModel) ToUpdateSDKType() *shared.SourceMongodbPutR } if sourceMongodbUpdateMongoDBAtlas != nil { instanceType = &shared.SourceMongodbUpdateMongoDbInstanceType{ - MongoDBAtlas: sourceMongodbUpdateMongoDBAtlas, + SourceMongodbUpdateMongoDBAtlas: sourceMongodbUpdateMongoDBAtlas, } } } diff --git a/internal/provider/source_mssql_resource_sdk.go b/internal/provider/source_mssql_resource_sdk.go index a1f97dd6b..e175e609c 100644 --- a/internal/provider/source_mssql_resource_sdk.go +++ b/internal/provider/source_mssql_resource_sdk.go @@ -53,7 +53,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlReadChangesUsingChangeDataCaptureCDC != nil { replicationMethod = &shared.SourceMssqlUpdateMethod{ - ReadChangesUsingChangeDataCaptureCDC: sourceMssqlReadChangesUsingChangeDataCaptureCDC, + SourceMssqlReadChangesUsingChangeDataCaptureCDC: sourceMssqlReadChangesUsingChangeDataCaptureCDC, } } var sourceMssqlScanChangesWithUserDefinedCursor *shared.SourceMssqlScanChangesWithUserDefinedCursor @@ -62,7 +62,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlScanChangesWithUserDefinedCursor != nil { replicationMethod = &shared.SourceMssqlUpdateMethod{ - ScanChangesWithUserDefinedCursor: sourceMssqlScanChangesWithUserDefinedCursor, + SourceMssqlScanChangesWithUserDefinedCursor: sourceMssqlScanChangesWithUserDefinedCursor, } } } @@ -78,7 +78,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlEncryptedTrustServerCertificate != nil { sslMethod = &shared.SourceMssqlSSLMethod{ - EncryptedTrustServerCertificate: sourceMssqlEncryptedTrustServerCertificate, + SourceMssqlEncryptedTrustServerCertificate: sourceMssqlEncryptedTrustServerCertificate, } } var sourceMssqlEncryptedVerifyCertificate *shared.SourceMssqlEncryptedVerifyCertificate @@ -95,7 +95,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlEncryptedVerifyCertificate != nil { sslMethod = &shared.SourceMssqlSSLMethod{ - EncryptedVerifyCertificate: sourceMssqlEncryptedVerifyCertificate, + SourceMssqlEncryptedVerifyCertificate: sourceMssqlEncryptedVerifyCertificate, } } } @@ -107,7 +107,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlNoTunnel != nil { tunnelMethod = &shared.SourceMssqlSSHTunnelMethod{ - NoTunnel: sourceMssqlNoTunnel, + SourceMssqlNoTunnel: sourceMssqlNoTunnel, } } var sourceMssqlSSHKeyAuthentication *shared.SourceMssqlSSHKeyAuthentication @@ -130,7 +130,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceMssqlSSHTunnelMethod{ - SSHKeyAuthentication: sourceMssqlSSHKeyAuthentication, + SourceMssqlSSHKeyAuthentication: sourceMssqlSSHKeyAuthentication, } } var sourceMssqlPasswordAuthentication *shared.SourceMssqlPasswordAuthentication @@ -153,7 +153,7 @@ func (r *SourceMssqlResourceModel) ToCreateSDKType() *shared.SourceMssqlCreateRe } if sourceMssqlPasswordAuthentication != nil { tunnelMethod = &shared.SourceMssqlSSHTunnelMethod{ - PasswordAuthentication: sourceMssqlPasswordAuthentication, + SourceMssqlPasswordAuthentication: sourceMssqlPasswordAuthentication, } } } @@ -263,7 +263,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque } if sourceMssqlUpdateEncryptedTrustServerCertificate != nil { sslMethod = &shared.SourceMssqlUpdateSSLMethod{ - EncryptedTrustServerCertificate: sourceMssqlUpdateEncryptedTrustServerCertificate, + SourceMssqlUpdateEncryptedTrustServerCertificate: sourceMssqlUpdateEncryptedTrustServerCertificate, } } var sourceMssqlUpdateEncryptedVerifyCertificate *shared.SourceMssqlUpdateEncryptedVerifyCertificate @@ -280,7 +280,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque } if sourceMssqlUpdateEncryptedVerifyCertificate != nil { sslMethod = &shared.SourceMssqlUpdateSSLMethod{ - EncryptedVerifyCertificate: sourceMssqlUpdateEncryptedVerifyCertificate, + SourceMssqlUpdateEncryptedVerifyCertificate: sourceMssqlUpdateEncryptedVerifyCertificate, } } } @@ -292,7 +292,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque } if sourceMssqlUpdateNoTunnel != nil { tunnelMethod = &shared.SourceMssqlUpdateSSHTunnelMethod{ - NoTunnel: sourceMssqlUpdateNoTunnel, + SourceMssqlUpdateNoTunnel: sourceMssqlUpdateNoTunnel, } } var sourceMssqlUpdateSSHKeyAuthentication *shared.SourceMssqlUpdateSSHKeyAuthentication @@ -315,7 +315,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque } if sourceMssqlUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceMssqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourceMssqlUpdateSSHKeyAuthentication, + SourceMssqlUpdateSSHKeyAuthentication: sourceMssqlUpdateSSHKeyAuthentication, } } var sourceMssqlUpdatePasswordAuthentication *shared.SourceMssqlUpdatePasswordAuthentication @@ -338,7 +338,7 @@ func (r *SourceMssqlResourceModel) ToUpdateSDKType() *shared.SourceMssqlPutReque } if sourceMssqlUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourceMssqlUpdateSSHTunnelMethod{ - PasswordAuthentication: sourceMssqlUpdatePasswordAuthentication, + SourceMssqlUpdatePasswordAuthentication: sourceMssqlUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_mysql_resource_sdk.go b/internal/provider/source_mysql_resource_sdk.go index c266f9c4f..c7eef39da 100644 --- a/internal/provider/source_mysql_resource_sdk.go +++ b/internal/provider/source_mysql_resource_sdk.go @@ -50,7 +50,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlReadChangesUsingBinaryLogCDC != nil { replicationMethod = shared.SourceMysqlUpdateMethod{ - ReadChangesUsingBinaryLogCDC: sourceMysqlReadChangesUsingBinaryLogCDC, + SourceMysqlReadChangesUsingBinaryLogCDC: sourceMysqlReadChangesUsingBinaryLogCDC, } } var sourceMysqlScanChangesWithUserDefinedCursor *shared.SourceMysqlScanChangesWithUserDefinedCursor @@ -59,7 +59,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlScanChangesWithUserDefinedCursor != nil { replicationMethod = shared.SourceMysqlUpdateMethod{ - ScanChangesWithUserDefinedCursor: sourceMysqlScanChangesWithUserDefinedCursor, + SourceMysqlScanChangesWithUserDefinedCursor: sourceMysqlScanChangesWithUserDefinedCursor, } } var sslMode *shared.SourceMysqlSSLModes @@ -70,7 +70,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlPreferred != nil { sslMode = &shared.SourceMysqlSSLModes{ - Preferred: sourceMysqlPreferred, + SourceMysqlPreferred: sourceMysqlPreferred, } } var sourceMysqlRequired *shared.SourceMysqlRequired @@ -79,7 +79,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlRequired != nil { sslMode = &shared.SourceMysqlSSLModes{ - Required: sourceMysqlRequired, + SourceMysqlRequired: sourceMysqlRequired, } } var sourceMysqlVerifyCA *shared.SourceMysqlVerifyCA @@ -112,7 +112,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlVerifyCA != nil { sslMode = &shared.SourceMysqlSSLModes{ - VerifyCA: sourceMysqlVerifyCA, + SourceMysqlVerifyCA: sourceMysqlVerifyCA, } } var sourceMysqlVerifyIdentity *shared.SourceMysqlVerifyIdentity @@ -145,7 +145,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlVerifyIdentity != nil { sslMode = &shared.SourceMysqlSSLModes{ - VerifyIdentity: sourceMysqlVerifyIdentity, + SourceMysqlVerifyIdentity: sourceMysqlVerifyIdentity, } } } @@ -157,7 +157,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlNoTunnel != nil { tunnelMethod = &shared.SourceMysqlSSHTunnelMethod{ - NoTunnel: sourceMysqlNoTunnel, + SourceMysqlNoTunnel: sourceMysqlNoTunnel, } } var sourceMysqlSSHKeyAuthentication *shared.SourceMysqlSSHKeyAuthentication @@ -180,7 +180,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceMysqlSSHTunnelMethod{ - SSHKeyAuthentication: sourceMysqlSSHKeyAuthentication, + SourceMysqlSSHKeyAuthentication: sourceMysqlSSHKeyAuthentication, } } var sourceMysqlPasswordAuthentication *shared.SourceMysqlPasswordAuthentication @@ -203,7 +203,7 @@ func (r *SourceMysqlResourceModel) ToCreateSDKType() *shared.SourceMysqlCreateRe } if sourceMysqlPasswordAuthentication != nil { tunnelMethod = &shared.SourceMysqlSSHTunnelMethod{ - PasswordAuthentication: sourceMysqlPasswordAuthentication, + SourceMysqlPasswordAuthentication: sourceMysqlPasswordAuthentication, } } } @@ -293,7 +293,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque } if sourceMysqlUpdateScanChangesWithUserDefinedCursor != nil { replicationMethod = shared.SourceMysqlUpdateUpdateMethod{ - ScanChangesWithUserDefinedCursor: sourceMysqlUpdateScanChangesWithUserDefinedCursor, + SourceMysqlUpdateScanChangesWithUserDefinedCursor: sourceMysqlUpdateScanChangesWithUserDefinedCursor, } } var sslMode *shared.SourceMysqlUpdateSSLModes @@ -346,7 +346,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque } if sourceMysqlUpdateVerifyCA != nil { sslMode = &shared.SourceMysqlUpdateSSLModes{ - VerifyCA: sourceMysqlUpdateVerifyCA, + SourceMysqlUpdateVerifyCA: sourceMysqlUpdateVerifyCA, } } var verifyIdentity *shared.VerifyIdentity @@ -391,7 +391,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque } if sourceMysqlUpdateNoTunnel != nil { tunnelMethod = &shared.SourceMysqlUpdateSSHTunnelMethod{ - NoTunnel: sourceMysqlUpdateNoTunnel, + SourceMysqlUpdateNoTunnel: sourceMysqlUpdateNoTunnel, } } var sourceMysqlUpdateSSHKeyAuthentication *shared.SourceMysqlUpdateSSHKeyAuthentication @@ -414,7 +414,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque } if sourceMysqlUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceMysqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourceMysqlUpdateSSHKeyAuthentication, + SourceMysqlUpdateSSHKeyAuthentication: sourceMysqlUpdateSSHKeyAuthentication, } } var sourceMysqlUpdatePasswordAuthentication *shared.SourceMysqlUpdatePasswordAuthentication @@ -437,7 +437,7 @@ func (r *SourceMysqlResourceModel) ToUpdateSDKType() *shared.SourceMysqlPutReque } if sourceMysqlUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourceMysqlUpdateSSHTunnelMethod{ - PasswordAuthentication: sourceMysqlUpdatePasswordAuthentication, + SourceMysqlUpdatePasswordAuthentication: sourceMysqlUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_notion_resource_sdk.go b/internal/provider/source_notion_resource_sdk.go index 20368fbf8..fb441be40 100644 --- a/internal/provider/source_notion_resource_sdk.go +++ b/internal/provider/source_notion_resource_sdk.go @@ -24,7 +24,7 @@ func (r *SourceNotionResourceModel) ToCreateSDKType() *shared.SourceNotionCreate } if sourceNotionOAuth20 != nil { credentials = &shared.SourceNotionAuthenticateUsing{ - OAuth20: sourceNotionOAuth20, + SourceNotionOAuth20: sourceNotionOAuth20, } } var sourceNotionAccessToken *shared.SourceNotionAccessToken @@ -36,7 +36,7 @@ func (r *SourceNotionResourceModel) ToCreateSDKType() *shared.SourceNotionCreate } if sourceNotionAccessToken != nil { credentials = &shared.SourceNotionAuthenticateUsing{ - AccessToken: sourceNotionAccessToken, + SourceNotionAccessToken: sourceNotionAccessToken, } } } @@ -83,7 +83,7 @@ func (r *SourceNotionResourceModel) ToUpdateSDKType() *shared.SourceNotionPutReq } if sourceNotionUpdateOAuth20 != nil { credentials = &shared.AuthenticateUsing{ - OAuth20: sourceNotionUpdateOAuth20, + SourceNotionUpdateOAuth20: sourceNotionUpdateOAuth20, } } var sourceNotionUpdateAccessToken *shared.SourceNotionUpdateAccessToken @@ -95,7 +95,7 @@ func (r *SourceNotionResourceModel) ToUpdateSDKType() *shared.SourceNotionPutReq } if sourceNotionUpdateAccessToken != nil { credentials = &shared.AuthenticateUsing{ - AccessToken: sourceNotionUpdateAccessToken, + SourceNotionUpdateAccessToken: sourceNotionUpdateAccessToken, } } } diff --git a/internal/provider/source_okta_resource_sdk.go b/internal/provider/source_okta_resource_sdk.go index 78685f80e..5059fb96d 100644 --- a/internal/provider/source_okta_resource_sdk.go +++ b/internal/provider/source_okta_resource_sdk.go @@ -23,7 +23,7 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ } if sourceOktaOAuth20 != nil { credentials = &shared.SourceOktaAuthorizationMethod{ - OAuth20: sourceOktaOAuth20, + SourceOktaOAuth20: sourceOktaOAuth20, } } var sourceOktaAPIToken *shared.SourceOktaAPIToken @@ -35,7 +35,7 @@ func (r *SourceOktaResourceModel) ToCreateSDKType() *shared.SourceOktaCreateRequ } if sourceOktaAPIToken != nil { credentials = &shared.SourceOktaAuthorizationMethod{ - APIToken: sourceOktaAPIToken, + SourceOktaAPIToken: sourceOktaAPIToken, } } } @@ -94,7 +94,7 @@ func (r *SourceOktaResourceModel) ToUpdateSDKType() *shared.SourceOktaPutRequest } if sourceOktaUpdateOAuth20 != nil { credentials = &shared.SourceOktaUpdateAuthorizationMethod{ - OAuth20: sourceOktaUpdateOAuth20, + SourceOktaUpdateOAuth20: sourceOktaUpdateOAuth20, } } var sourceOktaUpdateAPIToken *shared.SourceOktaUpdateAPIToken @@ -106,7 +106,7 @@ func (r *SourceOktaResourceModel) ToUpdateSDKType() *shared.SourceOktaPutRequest } if sourceOktaUpdateAPIToken != nil { credentials = &shared.SourceOktaUpdateAuthorizationMethod{ - APIToken: sourceOktaUpdateAPIToken, + SourceOktaUpdateAPIToken: sourceOktaUpdateAPIToken, } } } diff --git a/internal/provider/source_oracle_resource_sdk.go b/internal/provider/source_oracle_resource_sdk.go index a54635fe5..cf5e631b8 100644 --- a/internal/provider/source_oracle_resource_sdk.go +++ b/internal/provider/source_oracle_resource_sdk.go @@ -19,7 +19,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleServiceName != nil { connectionData = &shared.SourceOracleConnectBy{ - ServiceName: sourceOracleServiceName, + SourceOracleServiceName: sourceOracleServiceName, } } var sourceOracleSystemIDSID *shared.SourceOracleSystemIDSID @@ -31,7 +31,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleSystemIDSID != nil { connectionData = &shared.SourceOracleConnectBy{ - SystemIDSID: sourceOracleSystemIDSID, + SourceOracleSystemIDSID: sourceOracleSystemIDSID, } } } @@ -50,7 +50,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleNativeNetworkEncryptionNNE != nil { encryption = shared.SourceOracleEncryption{ - NativeNetworkEncryptionNNE: sourceOracleNativeNetworkEncryptionNNE, + SourceOracleNativeNetworkEncryptionNNE: sourceOracleNativeNetworkEncryptionNNE, } } var sourceOracleTLSEncryptedVerifyCertificate *shared.SourceOracleTLSEncryptedVerifyCertificate @@ -62,7 +62,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleTLSEncryptedVerifyCertificate != nil { encryption = shared.SourceOracleEncryption{ - TLSEncryptedVerifyCertificate: sourceOracleTLSEncryptedVerifyCertificate, + SourceOracleTLSEncryptedVerifyCertificate: sourceOracleTLSEncryptedVerifyCertificate, } } host := r.Configuration.Host.ValueString() @@ -96,7 +96,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleNoTunnel != nil { tunnelMethod = &shared.SourceOracleSSHTunnelMethod{ - NoTunnel: sourceOracleNoTunnel, + SourceOracleNoTunnel: sourceOracleNoTunnel, } } var sourceOracleSSHKeyAuthentication *shared.SourceOracleSSHKeyAuthentication @@ -119,7 +119,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOracleSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceOracleSSHTunnelMethod{ - SSHKeyAuthentication: sourceOracleSSHKeyAuthentication, + SourceOracleSSHKeyAuthentication: sourceOracleSSHKeyAuthentication, } } var sourceOraclePasswordAuthentication *shared.SourceOraclePasswordAuthentication @@ -142,7 +142,7 @@ func (r *SourceOracleResourceModel) ToCreateSDKType() *shared.SourceOracleCreate } if sourceOraclePasswordAuthentication != nil { tunnelMethod = &shared.SourceOracleSSHTunnelMethod{ - PasswordAuthentication: sourceOraclePasswordAuthentication, + SourceOraclePasswordAuthentication: sourceOraclePasswordAuthentication, } } } @@ -269,7 +269,7 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq } if sourceOracleUpdateNoTunnel != nil { tunnelMethod = &shared.SourceOracleUpdateSSHTunnelMethod{ - NoTunnel: sourceOracleUpdateNoTunnel, + SourceOracleUpdateNoTunnel: sourceOracleUpdateNoTunnel, } } var sourceOracleUpdateSSHKeyAuthentication *shared.SourceOracleUpdateSSHKeyAuthentication @@ -292,7 +292,7 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq } if sourceOracleUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourceOracleUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourceOracleUpdateSSHKeyAuthentication, + SourceOracleUpdateSSHKeyAuthentication: sourceOracleUpdateSSHKeyAuthentication, } } var sourceOracleUpdatePasswordAuthentication *shared.SourceOracleUpdatePasswordAuthentication @@ -315,7 +315,7 @@ func (r *SourceOracleResourceModel) ToUpdateSDKType() *shared.SourceOraclePutReq } if sourceOracleUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourceOracleUpdateSSHTunnelMethod{ - PasswordAuthentication: sourceOracleUpdatePasswordAuthentication, + SourceOracleUpdatePasswordAuthentication: sourceOracleUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_outbrainamplify_resource_sdk.go b/internal/provider/source_outbrainamplify_resource_sdk.go index 9a3b1e5a3..d0fd9eb9a 100644 --- a/internal/provider/source_outbrainamplify_resource_sdk.go +++ b/internal/provider/source_outbrainamplify_resource_sdk.go @@ -18,7 +18,7 @@ func (r *SourceOutbrainAmplifyResourceModel) ToCreateSDKType() *shared.SourceOut } if sourceOutbrainAmplifyAccessToken != nil { credentials = shared.SourceOutbrainAmplifyAuthenticationMethod{ - AccessToken: sourceOutbrainAmplifyAccessToken, + SourceOutbrainAmplifyAccessToken: sourceOutbrainAmplifyAccessToken, } } var sourceOutbrainAmplifyUsernamePassword *shared.SourceOutbrainAmplifyUsernamePassword @@ -32,7 +32,7 @@ func (r *SourceOutbrainAmplifyResourceModel) ToCreateSDKType() *shared.SourceOut } if sourceOutbrainAmplifyUsernamePassword != nil { credentials = shared.SourceOutbrainAmplifyAuthenticationMethod{ - UsernamePassword: sourceOutbrainAmplifyUsernamePassword, + SourceOutbrainAmplifyUsernamePassword: sourceOutbrainAmplifyUsernamePassword, } } endDate := new(string) @@ -94,7 +94,7 @@ func (r *SourceOutbrainAmplifyResourceModel) ToUpdateSDKType() *shared.SourceOut } if sourceOutbrainAmplifyUpdateAccessToken != nil { credentials = shared.SourceOutbrainAmplifyUpdateAuthenticationMethod{ - AccessToken: sourceOutbrainAmplifyUpdateAccessToken, + SourceOutbrainAmplifyUpdateAccessToken: sourceOutbrainAmplifyUpdateAccessToken, } } var sourceOutbrainAmplifyUpdateUsernamePassword *shared.SourceOutbrainAmplifyUpdateUsernamePassword @@ -108,7 +108,7 @@ func (r *SourceOutbrainAmplifyResourceModel) ToUpdateSDKType() *shared.SourceOut } if sourceOutbrainAmplifyUpdateUsernamePassword != nil { credentials = shared.SourceOutbrainAmplifyUpdateAuthenticationMethod{ - UsernamePassword: sourceOutbrainAmplifyUpdateUsernamePassword, + SourceOutbrainAmplifyUpdateUsernamePassword: sourceOutbrainAmplifyUpdateUsernamePassword, } } endDate := new(string) diff --git a/internal/provider/source_pinterest_resource_sdk.go b/internal/provider/source_pinterest_resource_sdk.go index daec5d120..66cec83e3 100644 --- a/internal/provider/source_pinterest_resource_sdk.go +++ b/internal/provider/source_pinterest_resource_sdk.go @@ -34,7 +34,7 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest } if sourcePinterestOAuth20 != nil { credentials = &shared.SourcePinterestAuthorizationMethod{ - OAuth20: sourcePinterestOAuth20, + SourcePinterestOAuth20: sourcePinterestOAuth20, } } var sourcePinterestAccessToken *shared.SourcePinterestAccessToken @@ -46,7 +46,7 @@ func (r *SourcePinterestResourceModel) ToCreateSDKType() *shared.SourcePinterest } if sourcePinterestAccessToken != nil { credentials = &shared.SourcePinterestAuthorizationMethod{ - AccessToken: sourcePinterestAccessToken, + SourcePinterestAccessToken: sourcePinterestAccessToken, } } } @@ -108,7 +108,7 @@ func (r *SourcePinterestResourceModel) ToUpdateSDKType() *shared.SourcePinterest } if sourcePinterestUpdateOAuth20 != nil { credentials = &shared.SourcePinterestUpdateAuthorizationMethod{ - OAuth20: sourcePinterestUpdateOAuth20, + SourcePinterestUpdateOAuth20: sourcePinterestUpdateOAuth20, } } var sourcePinterestUpdateAccessToken *shared.SourcePinterestUpdateAccessToken @@ -120,7 +120,7 @@ func (r *SourcePinterestResourceModel) ToUpdateSDKType() *shared.SourcePinterest } if sourcePinterestUpdateAccessToken != nil { credentials = &shared.SourcePinterestUpdateAuthorizationMethod{ - AccessToken: sourcePinterestUpdateAccessToken, + SourcePinterestUpdateAccessToken: sourcePinterestUpdateAccessToken, } } } diff --git a/internal/provider/source_postgres_resource_sdk.go b/internal/provider/source_postgres_resource_sdk.go index 8230f4ccc..f4fddf2f7 100644 --- a/internal/provider/source_postgres_resource_sdk.go +++ b/internal/provider/source_postgres_resource_sdk.go @@ -75,7 +75,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresReadChangesUsingWriteAheadLogCDC != nil { replicationMethod = &shared.SourcePostgresUpdateMethod{ - ReadChangesUsingWriteAheadLogCDC: sourcePostgresReadChangesUsingWriteAheadLogCDC, + SourcePostgresReadChangesUsingWriteAheadLogCDC: sourcePostgresReadChangesUsingWriteAheadLogCDC, } } var sourcePostgresDetectChangesWithXminSystemColumn *shared.SourcePostgresDetectChangesWithXminSystemColumn @@ -84,7 +84,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresDetectChangesWithXminSystemColumn != nil { replicationMethod = &shared.SourcePostgresUpdateMethod{ - DetectChangesWithXminSystemColumn: sourcePostgresDetectChangesWithXminSystemColumn, + SourcePostgresDetectChangesWithXminSystemColumn: sourcePostgresDetectChangesWithXminSystemColumn, } } var sourcePostgresScanChangesWithUserDefinedCursor *shared.SourcePostgresScanChangesWithUserDefinedCursor @@ -93,7 +93,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresScanChangesWithUserDefinedCursor != nil { replicationMethod = &shared.SourcePostgresUpdateMethod{ - ScanChangesWithUserDefinedCursor: sourcePostgresScanChangesWithUserDefinedCursor, + SourcePostgresScanChangesWithUserDefinedCursor: sourcePostgresScanChangesWithUserDefinedCursor, } } } @@ -115,7 +115,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresDisable != nil { sslMode = &shared.SourcePostgresSSLModes{ - Disable: sourcePostgresDisable, + SourcePostgresDisable: sourcePostgresDisable, } } var sourcePostgresAllow *shared.SourcePostgresAllow @@ -130,7 +130,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresAllow != nil { sslMode = &shared.SourcePostgresSSLModes{ - Allow: sourcePostgresAllow, + SourcePostgresAllow: sourcePostgresAllow, } } var sourcePostgresPrefer *shared.SourcePostgresPrefer @@ -145,7 +145,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresPrefer != nil { sslMode = &shared.SourcePostgresSSLModes{ - Prefer: sourcePostgresPrefer, + SourcePostgresPrefer: sourcePostgresPrefer, } } var sourcePostgresRequire *shared.SourcePostgresRequire @@ -160,7 +160,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresRequire != nil { sslMode = &shared.SourcePostgresSSLModes{ - Require: sourcePostgresRequire, + SourcePostgresRequire: sourcePostgresRequire, } } var sourcePostgresVerifyCa *shared.SourcePostgresVerifyCa @@ -198,7 +198,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresVerifyCa != nil { sslMode = &shared.SourcePostgresSSLModes{ - VerifyCa: sourcePostgresVerifyCa, + SourcePostgresVerifyCa: sourcePostgresVerifyCa, } } var sourcePostgresVerifyFull *shared.SourcePostgresVerifyFull @@ -236,7 +236,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresVerifyFull != nil { sslMode = &shared.SourcePostgresSSLModes{ - VerifyFull: sourcePostgresVerifyFull, + SourcePostgresVerifyFull: sourcePostgresVerifyFull, } } } @@ -248,7 +248,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresNoTunnel != nil { tunnelMethod = &shared.SourcePostgresSSHTunnelMethod{ - NoTunnel: sourcePostgresNoTunnel, + SourcePostgresNoTunnel: sourcePostgresNoTunnel, } } var sourcePostgresSSHKeyAuthentication *shared.SourcePostgresSSHKeyAuthentication @@ -271,7 +271,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresSSHKeyAuthentication != nil { tunnelMethod = &shared.SourcePostgresSSHTunnelMethod{ - SSHKeyAuthentication: sourcePostgresSSHKeyAuthentication, + SourcePostgresSSHKeyAuthentication: sourcePostgresSSHKeyAuthentication, } } var sourcePostgresPasswordAuthentication *shared.SourcePostgresPasswordAuthentication @@ -294,7 +294,7 @@ func (r *SourcePostgresResourceModel) ToCreateSDKType() *shared.SourcePostgresCr } if sourcePostgresPasswordAuthentication != nil { tunnelMethod = &shared.SourcePostgresSSHTunnelMethod{ - PasswordAuthentication: sourcePostgresPasswordAuthentication, + SourcePostgresPasswordAuthentication: sourcePostgresPasswordAuthentication, } } } @@ -418,7 +418,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateScanChangesWithUserDefinedCursor != nil { replicationMethod = &shared.SourcePostgresUpdateUpdateMethod{ - ScanChangesWithUserDefinedCursor: sourcePostgresUpdateScanChangesWithUserDefinedCursor, + SourcePostgresUpdateScanChangesWithUserDefinedCursor: sourcePostgresUpdateScanChangesWithUserDefinedCursor, } } } @@ -440,7 +440,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateDisable != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - Disable: sourcePostgresUpdateDisable, + SourcePostgresUpdateDisable: sourcePostgresUpdateDisable, } } var sourcePostgresUpdateAllow *shared.SourcePostgresUpdateAllow @@ -455,7 +455,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateAllow != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - Allow: sourcePostgresUpdateAllow, + SourcePostgresUpdateAllow: sourcePostgresUpdateAllow, } } var sourcePostgresUpdatePrefer *shared.SourcePostgresUpdatePrefer @@ -470,7 +470,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdatePrefer != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - Prefer: sourcePostgresUpdatePrefer, + SourcePostgresUpdatePrefer: sourcePostgresUpdatePrefer, } } var sourcePostgresUpdateRequire *shared.SourcePostgresUpdateRequire @@ -485,7 +485,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateRequire != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - Require: sourcePostgresUpdateRequire, + SourcePostgresUpdateRequire: sourcePostgresUpdateRequire, } } var sourcePostgresUpdateVerifyCa *shared.SourcePostgresUpdateVerifyCa @@ -523,7 +523,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateVerifyCa != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - VerifyCa: sourcePostgresUpdateVerifyCa, + SourcePostgresUpdateVerifyCa: sourcePostgresUpdateVerifyCa, } } var sourcePostgresUpdateVerifyFull *shared.SourcePostgresUpdateVerifyFull @@ -561,7 +561,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateVerifyFull != nil { sslMode = &shared.SourcePostgresUpdateSSLModes{ - VerifyFull: sourcePostgresUpdateVerifyFull, + SourcePostgresUpdateVerifyFull: sourcePostgresUpdateVerifyFull, } } } @@ -573,7 +573,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateNoTunnel != nil { tunnelMethod = &shared.SourcePostgresUpdateSSHTunnelMethod{ - NoTunnel: sourcePostgresUpdateNoTunnel, + SourcePostgresUpdateNoTunnel: sourcePostgresUpdateNoTunnel, } } var sourcePostgresUpdateSSHKeyAuthentication *shared.SourcePostgresUpdateSSHKeyAuthentication @@ -596,7 +596,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdateSSHKeyAuthentication != nil { tunnelMethod = &shared.SourcePostgresUpdateSSHTunnelMethod{ - SSHKeyAuthentication: sourcePostgresUpdateSSHKeyAuthentication, + SourcePostgresUpdateSSHKeyAuthentication: sourcePostgresUpdateSSHKeyAuthentication, } } var sourcePostgresUpdatePasswordAuthentication *shared.SourcePostgresUpdatePasswordAuthentication @@ -619,7 +619,7 @@ func (r *SourcePostgresResourceModel) ToUpdateSDKType() *shared.SourcePostgresPu } if sourcePostgresUpdatePasswordAuthentication != nil { tunnelMethod = &shared.SourcePostgresUpdateSSHTunnelMethod{ - PasswordAuthentication: sourcePostgresUpdatePasswordAuthentication, + SourcePostgresUpdatePasswordAuthentication: sourcePostgresUpdatePasswordAuthentication, } } } diff --git a/internal/provider/source_quickbooks_resource_sdk.go b/internal/provider/source_quickbooks_resource_sdk.go index 60abbef90..cbd0ff0fc 100644 --- a/internal/provider/source_quickbooks_resource_sdk.go +++ b/internal/provider/source_quickbooks_resource_sdk.go @@ -29,7 +29,7 @@ func (r *SourceQuickbooksResourceModel) ToCreateSDKType() *shared.SourceQuickboo } if sourceQuickbooksOAuth20 != nil { credentials = shared.SourceQuickbooksAuthorizationMethod{ - OAuth20: sourceQuickbooksOAuth20, + SourceQuickbooksOAuth20: sourceQuickbooksOAuth20, } } sandbox := new(bool) @@ -87,7 +87,7 @@ func (r *SourceQuickbooksResourceModel) ToUpdateSDKType() *shared.SourceQuickboo } if sourceQuickbooksUpdateOAuth20 != nil { credentials = shared.SourceQuickbooksUpdateAuthorizationMethod{ - OAuth20: sourceQuickbooksUpdateOAuth20, + SourceQuickbooksUpdateOAuth20: sourceQuickbooksUpdateOAuth20, } } sandbox := new(bool) diff --git a/internal/provider/source_retently_resource_sdk.go b/internal/provider/source_retently_resource_sdk.go index cae193598..103f37b93 100644 --- a/internal/provider/source_retently_resource_sdk.go +++ b/internal/provider/source_retently_resource_sdk.go @@ -29,7 +29,7 @@ func (r *SourceRetentlyResourceModel) ToCreateSDKType() *shared.SourceRetentlyCr } if sourceRetentlyAuthenticateViaRetentlyOAuth != nil { credentials = &shared.SourceRetentlyAuthenticationMechanism{ - AuthenticateViaRetentlyOAuth: sourceRetentlyAuthenticateViaRetentlyOAuth, + SourceRetentlyAuthenticateViaRetentlyOAuth: sourceRetentlyAuthenticateViaRetentlyOAuth, } } var sourceRetentlyAuthenticateWithAPIToken *shared.SourceRetentlyAuthenticateWithAPIToken @@ -46,7 +46,7 @@ func (r *SourceRetentlyResourceModel) ToCreateSDKType() *shared.SourceRetentlyCr } if sourceRetentlyAuthenticateWithAPIToken != nil { credentials = &shared.SourceRetentlyAuthenticationMechanism{ - AuthenticateWithAPIToken: sourceRetentlyAuthenticateWithAPIToken, + SourceRetentlyAuthenticateWithAPIToken: sourceRetentlyAuthenticateWithAPIToken, } } } diff --git a/internal/provider/source_s3_resource_sdk.go b/internal/provider/source_s3_resource_sdk.go index 039458e05..bcfee5e3e 100644 --- a/internal/provider/source_s3_resource_sdk.go +++ b/internal/provider/source_s3_resource_sdk.go @@ -113,7 +113,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3CSV != nil { format = &shared.SourceS3FileFormat{ - Csv: sourceS3CSV, + SourceS3CSV: sourceS3CSV, } } var sourceS3Parquet *shared.SourceS3Parquet @@ -142,7 +142,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3Parquet != nil { format = &shared.SourceS3FileFormat{ - Parquet: sourceS3Parquet, + SourceS3Parquet: sourceS3Parquet, } } var sourceS3Avro *shared.SourceS3Avro @@ -151,7 +151,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3Avro != nil { format = &shared.SourceS3FileFormat{ - Avro: sourceS3Avro, + SourceS3Avro: sourceS3Avro, } } var sourceS3Jsonl *shared.SourceS3Jsonl @@ -182,7 +182,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3Jsonl != nil { format = &shared.SourceS3FileFormat{ - Jsonl: sourceS3Jsonl, + SourceS3Jsonl: sourceS3Jsonl, } } } @@ -276,7 +276,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3AvroFormat != nil { format1 = &shared.SourceS3Format{ - AvroFormat: sourceS3AvroFormat, + SourceS3AvroFormat: sourceS3AvroFormat, } } var sourceS3CSVFormat *shared.SourceS3CSVFormat @@ -317,7 +317,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3FromCSV != nil { headerDefinition = &shared.SourceS3CSVHeaderDefinition{ - FromCSV: sourceS3FromCSV, + SourceS3FromCSV: sourceS3FromCSV, } } var sourceS3Autogenerated *shared.SourceS3Autogenerated @@ -326,7 +326,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3Autogenerated != nil { headerDefinition = &shared.SourceS3CSVHeaderDefinition{ - Autogenerated: sourceS3Autogenerated, + SourceS3Autogenerated: sourceS3Autogenerated, } } var sourceS3UserProvided *shared.SourceS3UserProvided @@ -341,7 +341,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3UserProvided != nil { headerDefinition = &shared.SourceS3CSVHeaderDefinition{ - UserProvided: sourceS3UserProvided, + SourceS3UserProvided: sourceS3UserProvided, } } } @@ -401,7 +401,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3CSVFormat != nil { format1 = &shared.SourceS3Format{ - CSVFormat: sourceS3CSVFormat, + SourceS3CSVFormat: sourceS3CSVFormat, } } var sourceS3JsonlFormat *shared.SourceS3JsonlFormat @@ -410,7 +410,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3JsonlFormat != nil { format1 = &shared.SourceS3Format{ - JsonlFormat: sourceS3JsonlFormat, + SourceS3JsonlFormat: sourceS3JsonlFormat, } } var sourceS3ParquetFormat *shared.SourceS3ParquetFormat @@ -427,7 +427,7 @@ func (r *SourceS3ResourceModel) ToCreateSDKType() *shared.SourceS3CreateRequest } if sourceS3ParquetFormat != nil { format1 = &shared.SourceS3Format{ - ParquetFormat: sourceS3ParquetFormat, + SourceS3ParquetFormat: sourceS3ParquetFormat, } } } diff --git a/internal/provider/source_salesloft_resource_sdk.go b/internal/provider/source_salesloft_resource_sdk.go index ffc479810..48f9edcc1 100644 --- a/internal/provider/source_salesloft_resource_sdk.go +++ b/internal/provider/source_salesloft_resource_sdk.go @@ -27,7 +27,7 @@ func (r *SourceSalesloftResourceModel) ToCreateSDKType() *shared.SourceSalesloft } if sourceSalesloftAuthenticateViaOAuth != nil { credentials = shared.SourceSalesloftCredentials{ - AuthenticateViaOAuth: sourceSalesloftAuthenticateViaOAuth, + SourceSalesloftAuthenticateViaOAuth: sourceSalesloftAuthenticateViaOAuth, } } var sourceSalesloftAuthenticateViaAPIKey *shared.SourceSalesloftAuthenticateViaAPIKey @@ -39,7 +39,7 @@ func (r *SourceSalesloftResourceModel) ToCreateSDKType() *shared.SourceSalesloft } if sourceSalesloftAuthenticateViaAPIKey != nil { credentials = shared.SourceSalesloftCredentials{ - AuthenticateViaAPIKey: sourceSalesloftAuthenticateViaAPIKey, + SourceSalesloftAuthenticateViaAPIKey: sourceSalesloftAuthenticateViaAPIKey, } } startDate, _ := time.Parse(time.RFC3339Nano, r.Configuration.StartDate.ValueString()) diff --git a/internal/provider/source_sftp_resource_sdk.go b/internal/provider/source_sftp_resource_sdk.go index acf8e2f29..b5379256f 100644 --- a/internal/provider/source_sftp_resource_sdk.go +++ b/internal/provider/source_sftp_resource_sdk.go @@ -19,7 +19,7 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ } if sourceSftpPasswordAuthentication != nil { credentials = &shared.SourceSftpAuthenticationWildcard{ - PasswordAuthentication: sourceSftpPasswordAuthentication, + SourceSftpPasswordAuthentication: sourceSftpPasswordAuthentication, } } var sourceSftpSSHKeyAuthentication *shared.SourceSftpSSHKeyAuthentication @@ -31,7 +31,7 @@ func (r *SourceSftpResourceModel) ToCreateSDKType() *shared.SourceSftpCreateRequ } if sourceSftpSSHKeyAuthentication != nil { credentials = &shared.SourceSftpAuthenticationWildcard{ - SSHKeyAuthentication: sourceSftpSSHKeyAuthentication, + SourceSftpSSHKeyAuthentication: sourceSftpSSHKeyAuthentication, } } } @@ -104,7 +104,7 @@ func (r *SourceSftpResourceModel) ToUpdateSDKType() *shared.SourceSftpPutRequest } if sourceSftpUpdatePasswordAuthentication != nil { credentials = &shared.SourceSftpUpdateAuthenticationWildcard{ - PasswordAuthentication: sourceSftpUpdatePasswordAuthentication, + SourceSftpUpdatePasswordAuthentication: sourceSftpUpdatePasswordAuthentication, } } var sourceSftpUpdateSSHKeyAuthentication *shared.SourceSftpUpdateSSHKeyAuthentication @@ -116,7 +116,7 @@ func (r *SourceSftpResourceModel) ToUpdateSDKType() *shared.SourceSftpPutRequest } if sourceSftpUpdateSSHKeyAuthentication != nil { credentials = &shared.SourceSftpUpdateAuthenticationWildcard{ - SSHKeyAuthentication: sourceSftpUpdateSSHKeyAuthentication, + SourceSftpUpdateSSHKeyAuthentication: sourceSftpUpdateSSHKeyAuthentication, } } } diff --git a/internal/provider/source_shopify_resource_sdk.go b/internal/provider/source_shopify_resource_sdk.go index 1db82f9a7..fd1b50378 100644 --- a/internal/provider/source_shopify_resource_sdk.go +++ b/internal/provider/source_shopify_resource_sdk.go @@ -39,7 +39,7 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea } if sourceShopifyOAuth20 != nil { credentials = &shared.SourceShopifyShopifyAuthorizationMethod{ - OAuth20: sourceShopifyOAuth20, + SourceShopifyOAuth20: sourceShopifyOAuth20, } } var sourceShopifyAPIPassword *shared.SourceShopifyAPIPassword @@ -51,7 +51,7 @@ func (r *SourceShopifyResourceModel) ToCreateSDKType() *shared.SourceShopifyCrea } if sourceShopifyAPIPassword != nil { credentials = &shared.SourceShopifyShopifyAuthorizationMethod{ - APIPassword: sourceShopifyAPIPassword, + SourceShopifyAPIPassword: sourceShopifyAPIPassword, } } } @@ -120,7 +120,7 @@ func (r *SourceShopifyResourceModel) ToUpdateSDKType() *shared.SourceShopifyPutR } if sourceShopifyUpdateOAuth20 != nil { credentials = &shared.ShopifyAuthorizationMethod{ - OAuth20: sourceShopifyUpdateOAuth20, + SourceShopifyUpdateOAuth20: sourceShopifyUpdateOAuth20, } } var apiPassword *shared.APIPassword diff --git a/internal/provider/source_slack_resource_sdk.go b/internal/provider/source_slack_resource_sdk.go index 0f546bbad..a8a6c974f 100644 --- a/internal/provider/source_slack_resource_sdk.go +++ b/internal/provider/source_slack_resource_sdk.go @@ -28,7 +28,7 @@ func (r *SourceSlackResourceModel) ToCreateSDKType() *shared.SourceSlackCreateRe } if sourceSlackSignInViaSlackOAuth != nil { credentials = &shared.SourceSlackAuthenticationMechanism{ - SignInViaSlackOAuth: sourceSlackSignInViaSlackOAuth, + SourceSlackSignInViaSlackOAuth: sourceSlackSignInViaSlackOAuth, } } var sourceSlackAPIToken *shared.SourceSlackAPIToken @@ -40,7 +40,7 @@ func (r *SourceSlackResourceModel) ToCreateSDKType() *shared.SourceSlackCreateRe } if sourceSlackAPIToken != nil { credentials = &shared.SourceSlackAuthenticationMechanism{ - APIToken: sourceSlackAPIToken, + SourceSlackAPIToken: sourceSlackAPIToken, } } } @@ -118,7 +118,7 @@ func (r *SourceSlackResourceModel) ToUpdateSDKType() *shared.SourceSlackPutReque } if sourceSlackUpdateAPIToken != nil { credentials = &shared.SourceSlackUpdateAuthenticationMechanism{ - APIToken: sourceSlackUpdateAPIToken, + SourceSlackUpdateAPIToken: sourceSlackUpdateAPIToken, } } } diff --git a/internal/provider/source_smartsheets_resource_sdk.go b/internal/provider/source_smartsheets_resource_sdk.go index 3667820f0..7585d68dc 100644 --- a/internal/provider/source_smartsheets_resource_sdk.go +++ b/internal/provider/source_smartsheets_resource_sdk.go @@ -27,7 +27,7 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh } if sourceSmartsheetsOAuth20 != nil { credentials = shared.SourceSmartsheetsAuthorizationMethod{ - OAuth20: sourceSmartsheetsOAuth20, + SourceSmartsheetsOAuth20: sourceSmartsheetsOAuth20, } } var sourceSmartsheetsAPIAccessToken *shared.SourceSmartsheetsAPIAccessToken @@ -39,7 +39,7 @@ func (r *SourceSmartsheetsResourceModel) ToCreateSDKType() *shared.SourceSmartsh } if sourceSmartsheetsAPIAccessToken != nil { credentials = shared.SourceSmartsheetsAuthorizationMethod{ - APIAccessToken: sourceSmartsheetsAPIAccessToken, + SourceSmartsheetsAPIAccessToken: sourceSmartsheetsAPIAccessToken, } } var metadataFields []shared.SourceSmartsheetsValidenums = nil @@ -100,7 +100,7 @@ func (r *SourceSmartsheetsResourceModel) ToUpdateSDKType() *shared.SourceSmartsh } if sourceSmartsheetsUpdateOAuth20 != nil { credentials = shared.SourceSmartsheetsUpdateAuthorizationMethod{ - OAuth20: sourceSmartsheetsUpdateOAuth20, + SourceSmartsheetsUpdateOAuth20: sourceSmartsheetsUpdateOAuth20, } } var apiAccessToken *shared.APIAccessToken diff --git a/internal/provider/source_snowflake_resource_sdk.go b/internal/provider/source_snowflake_resource_sdk.go index 955a11773..e525a0384 100644 --- a/internal/provider/source_snowflake_resource_sdk.go +++ b/internal/provider/source_snowflake_resource_sdk.go @@ -35,7 +35,7 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake } if sourceSnowflakeOAuth20 != nil { credentials = &shared.SourceSnowflakeAuthorizationMethod{ - OAuth20: sourceSnowflakeOAuth20, + SourceSnowflakeOAuth20: sourceSnowflakeOAuth20, } } var sourceSnowflakeUsernameAndPassword *shared.SourceSnowflakeUsernameAndPassword @@ -49,7 +49,7 @@ func (r *SourceSnowflakeResourceModel) ToCreateSDKType() *shared.SourceSnowflake } if sourceSnowflakeUsernameAndPassword != nil { credentials = &shared.SourceSnowflakeAuthorizationMethod{ - UsernameAndPassword: sourceSnowflakeUsernameAndPassword, + SourceSnowflakeUsernameAndPassword: sourceSnowflakeUsernameAndPassword, } } } @@ -128,7 +128,7 @@ func (r *SourceSnowflakeResourceModel) ToUpdateSDKType() *shared.SourceSnowflake } if sourceSnowflakeUpdateOAuth20 != nil { credentials = &shared.SourceSnowflakeUpdateAuthorizationMethod{ - OAuth20: sourceSnowflakeUpdateOAuth20, + SourceSnowflakeUpdateOAuth20: sourceSnowflakeUpdateOAuth20, } } var sourceSnowflakeUpdateUsernameAndPassword *shared.SourceSnowflakeUpdateUsernameAndPassword @@ -142,7 +142,7 @@ func (r *SourceSnowflakeResourceModel) ToUpdateSDKType() *shared.SourceSnowflake } if sourceSnowflakeUpdateUsernameAndPassword != nil { credentials = &shared.SourceSnowflakeUpdateAuthorizationMethod{ - UsernameAndPassword: sourceSnowflakeUpdateUsernameAndPassword, + SourceSnowflakeUpdateUsernameAndPassword: sourceSnowflakeUpdateUsernameAndPassword, } } } diff --git a/internal/provider/source_square_resource_sdk.go b/internal/provider/source_square_resource_sdk.go index 1c9e5d75d..92448c61c 100644 --- a/internal/provider/source_square_resource_sdk.go +++ b/internal/provider/source_square_resource_sdk.go @@ -24,7 +24,7 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate } if sourceSquareOauthAuthentication != nil { credentials = &shared.SourceSquareAuthentication{ - OauthAuthentication: sourceSquareOauthAuthentication, + SourceSquareOauthAuthentication: sourceSquareOauthAuthentication, } } var sourceSquareAPIKey *shared.SourceSquareAPIKey @@ -36,7 +36,7 @@ func (r *SourceSquareResourceModel) ToCreateSDKType() *shared.SourceSquareCreate } if sourceSquareAPIKey != nil { credentials = &shared.SourceSquareAuthentication{ - APIKey: sourceSquareAPIKey, + SourceSquareAPIKey: sourceSquareAPIKey, } } } @@ -114,7 +114,7 @@ func (r *SourceSquareResourceModel) ToUpdateSDKType() *shared.SourceSquarePutReq } if sourceSquareUpdateAPIKey != nil { credentials = &shared.SourceSquareUpdateAuthentication{ - APIKey: sourceSquareUpdateAPIKey, + SourceSquareUpdateAPIKey: sourceSquareUpdateAPIKey, } } } diff --git a/internal/provider/source_surveysparrow_resource_sdk.go b/internal/provider/source_surveysparrow_resource_sdk.go index 6ce3b6722..6e838a1dd 100644 --- a/internal/provider/source_surveysparrow_resource_sdk.go +++ b/internal/provider/source_surveysparrow_resource_sdk.go @@ -18,7 +18,7 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve } if sourceSurveySparrowEUBasedAccount != nil { region = &shared.SourceSurveySparrowBaseURL{ - EUBasedAccount: sourceSurveySparrowEUBasedAccount, + SourceSurveySparrowEUBasedAccount: sourceSurveySparrowEUBasedAccount, } } var sourceSurveySparrowGlobalAccount *shared.SourceSurveySparrowGlobalAccount @@ -27,7 +27,7 @@ func (r *SourceSurveySparrowResourceModel) ToCreateSDKType() *shared.SourceSurve } if sourceSurveySparrowGlobalAccount != nil { region = &shared.SourceSurveySparrowBaseURL{ - GlobalAccount: sourceSurveySparrowGlobalAccount, + SourceSurveySparrowGlobalAccount: sourceSurveySparrowGlobalAccount, } } } diff --git a/internal/provider/source_tiktokmarketing_resource_sdk.go b/internal/provider/source_tiktokmarketing_resource_sdk.go index 595d668f0..b856a49d0 100644 --- a/internal/provider/source_tiktokmarketing_resource_sdk.go +++ b/internal/provider/source_tiktokmarketing_resource_sdk.go @@ -37,7 +37,7 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik } if sourceTiktokMarketingOAuth20 != nil { credentials = &shared.SourceTiktokMarketingAuthenticationMethod{ - OAuth20: sourceTiktokMarketingOAuth20, + SourceTiktokMarketingOAuth20: sourceTiktokMarketingOAuth20, } } var sourceTiktokMarketingSandboxAccessToken *shared.SourceTiktokMarketingSandboxAccessToken @@ -51,7 +51,7 @@ func (r *SourceTiktokMarketingResourceModel) ToCreateSDKType() *shared.SourceTik } if sourceTiktokMarketingSandboxAccessToken != nil { credentials = &shared.SourceTiktokMarketingAuthenticationMethod{ - SandboxAccessToken: sourceTiktokMarketingSandboxAccessToken, + SourceTiktokMarketingSandboxAccessToken: sourceTiktokMarketingSandboxAccessToken, } } } @@ -131,7 +131,7 @@ func (r *SourceTiktokMarketingResourceModel) ToUpdateSDKType() *shared.SourceTik } if sourceTiktokMarketingUpdateOAuth20 != nil { credentials = &shared.SourceTiktokMarketingUpdateAuthenticationMethod{ - OAuth20: sourceTiktokMarketingUpdateOAuth20, + SourceTiktokMarketingUpdateOAuth20: sourceTiktokMarketingUpdateOAuth20, } } var sandboxAccessToken *shared.SandboxAccessToken diff --git a/internal/provider/source_trustpilot_resource_sdk.go b/internal/provider/source_trustpilot_resource_sdk.go index d3cfcefbb..ad9d2b2a3 100644 --- a/internal/provider/source_trustpilot_resource_sdk.go +++ b/internal/provider/source_trustpilot_resource_sdk.go @@ -31,7 +31,7 @@ func (r *SourceTrustpilotResourceModel) ToCreateSDKType() *shared.SourceTrustpil } if sourceTrustpilotOAuth20 != nil { credentials = shared.SourceTrustpilotAuthorizationMethod{ - OAuth20: sourceTrustpilotOAuth20, + SourceTrustpilotOAuth20: sourceTrustpilotOAuth20, } } var sourceTrustpilotAPIKey *shared.SourceTrustpilotAPIKey @@ -43,7 +43,7 @@ func (r *SourceTrustpilotResourceModel) ToCreateSDKType() *shared.SourceTrustpil } if sourceTrustpilotAPIKey != nil { credentials = shared.SourceTrustpilotAuthorizationMethod{ - APIKey: sourceTrustpilotAPIKey, + SourceTrustpilotAPIKey: sourceTrustpilotAPIKey, } } startDate := r.Configuration.StartDate.ValueString() @@ -97,7 +97,7 @@ func (r *SourceTrustpilotResourceModel) ToUpdateSDKType() *shared.SourceTrustpil } if sourceTrustpilotUpdateOAuth20 != nil { credentials = shared.SourceTrustpilotUpdateAuthorizationMethod{ - OAuth20: sourceTrustpilotUpdateOAuth20, + SourceTrustpilotUpdateOAuth20: sourceTrustpilotUpdateOAuth20, } } var sourceTrustpilotUpdateAPIKey *shared.SourceTrustpilotUpdateAPIKey @@ -109,7 +109,7 @@ func (r *SourceTrustpilotResourceModel) ToUpdateSDKType() *shared.SourceTrustpil } if sourceTrustpilotUpdateAPIKey != nil { credentials = shared.SourceTrustpilotUpdateAuthorizationMethod{ - APIKey: sourceTrustpilotUpdateAPIKey, + SourceTrustpilotUpdateAPIKey: sourceTrustpilotUpdateAPIKey, } } startDate := r.Configuration.StartDate.ValueString() diff --git a/internal/provider/source_typeform_resource_sdk.go b/internal/provider/source_typeform_resource_sdk.go index e4e3bb9ad..52d2b9620 100644 --- a/internal/provider/source_typeform_resource_sdk.go +++ b/internal/provider/source_typeform_resource_sdk.go @@ -27,7 +27,7 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr } if sourceTypeformOAuth20 != nil { credentials = shared.SourceTypeformAuthorizationMethod{ - OAuth20: sourceTypeformOAuth20, + SourceTypeformOAuth20: sourceTypeformOAuth20, } } var sourceTypeformPrivateToken *shared.SourceTypeformPrivateToken @@ -39,7 +39,7 @@ func (r *SourceTypeformResourceModel) ToCreateSDKType() *shared.SourceTypeformCr } if sourceTypeformPrivateToken != nil { credentials = shared.SourceTypeformAuthorizationMethod{ - PrivateToken: sourceTypeformPrivateToken, + SourceTypeformPrivateToken: sourceTypeformPrivateToken, } } var formIds []string = nil @@ -98,7 +98,7 @@ func (r *SourceTypeformResourceModel) ToUpdateSDKType() *shared.SourceTypeformPu } if sourceTypeformUpdateOAuth20 != nil { credentials = shared.SourceTypeformUpdateAuthorizationMethod{ - OAuth20: sourceTypeformUpdateOAuth20, + SourceTypeformUpdateOAuth20: sourceTypeformUpdateOAuth20, } } var sourceTypeformUpdatePrivateToken *shared.SourceTypeformUpdatePrivateToken @@ -110,7 +110,7 @@ func (r *SourceTypeformResourceModel) ToUpdateSDKType() *shared.SourceTypeformPu } if sourceTypeformUpdatePrivateToken != nil { credentials = shared.SourceTypeformUpdateAuthorizationMethod{ - PrivateToken: sourceTypeformUpdatePrivateToken, + SourceTypeformUpdatePrivateToken: sourceTypeformUpdatePrivateToken, } } var formIds []string = nil diff --git a/internal/provider/source_zendeskchat_resource_sdk.go b/internal/provider/source_zendeskchat_resource_sdk.go index 6898a49e6..d6ce953df 100644 --- a/internal/provider/source_zendeskchat_resource_sdk.go +++ b/internal/provider/source_zendeskchat_resource_sdk.go @@ -46,7 +46,7 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk } if sourceZendeskChatOAuth20 != nil { credentials = &shared.SourceZendeskChatAuthorizationMethod{ - OAuth20: sourceZendeskChatOAuth20, + SourceZendeskChatOAuth20: sourceZendeskChatOAuth20, } } var sourceZendeskChatAccessToken *shared.SourceZendeskChatAccessToken @@ -58,7 +58,7 @@ func (r *SourceZendeskChatResourceModel) ToCreateSDKType() *shared.SourceZendesk } if sourceZendeskChatAccessToken != nil { credentials = &shared.SourceZendeskChatAuthorizationMethod{ - AccessToken: sourceZendeskChatAccessToken, + SourceZendeskChatAccessToken: sourceZendeskChatAccessToken, } } } @@ -134,7 +134,7 @@ func (r *SourceZendeskChatResourceModel) ToUpdateSDKType() *shared.SourceZendesk } if sourceZendeskChatUpdateOAuth20 != nil { credentials = &shared.SourceZendeskChatUpdateAuthorizationMethod{ - OAuth20: sourceZendeskChatUpdateOAuth20, + SourceZendeskChatUpdateOAuth20: sourceZendeskChatUpdateOAuth20, } } var sourceZendeskChatUpdateAccessToken *shared.SourceZendeskChatUpdateAccessToken @@ -146,7 +146,7 @@ func (r *SourceZendeskChatResourceModel) ToUpdateSDKType() *shared.SourceZendesk } if sourceZendeskChatUpdateAccessToken != nil { credentials = &shared.SourceZendeskChatUpdateAuthorizationMethod{ - AccessToken: sourceZendeskChatUpdateAccessToken, + SourceZendeskChatUpdateAccessToken: sourceZendeskChatUpdateAccessToken, } } } diff --git a/internal/provider/source_zendesksunshine_resource_sdk.go b/internal/provider/source_zendesksunshine_resource_sdk.go index 7323ae04c..0ac01f836 100644 --- a/internal/provider/source_zendesksunshine_resource_sdk.go +++ b/internal/provider/source_zendesksunshine_resource_sdk.go @@ -24,7 +24,7 @@ func (r *SourceZendeskSunshineResourceModel) ToCreateSDKType() *shared.SourceZen } if sourceZendeskSunshineOAuth20 != nil { credentials = &shared.SourceZendeskSunshineAuthorizationMethod{ - OAuth20: sourceZendeskSunshineOAuth20, + SourceZendeskSunshineOAuth20: sourceZendeskSunshineOAuth20, } } var sourceZendeskSunshineAPIToken *shared.SourceZendeskSunshineAPIToken @@ -38,7 +38,7 @@ func (r *SourceZendeskSunshineResourceModel) ToCreateSDKType() *shared.SourceZen } if sourceZendeskSunshineAPIToken != nil { credentials = &shared.SourceZendeskSunshineAuthorizationMethod{ - APIToken: sourceZendeskSunshineAPIToken, + SourceZendeskSunshineAPIToken: sourceZendeskSunshineAPIToken, } } } @@ -87,7 +87,7 @@ func (r *SourceZendeskSunshineResourceModel) ToUpdateSDKType() *shared.SourceZen } if sourceZendeskSunshineUpdateOAuth20 != nil { credentials = &shared.SourceZendeskSunshineUpdateAuthorizationMethod{ - OAuth20: sourceZendeskSunshineUpdateOAuth20, + SourceZendeskSunshineUpdateOAuth20: sourceZendeskSunshineUpdateOAuth20, } } var sourceZendeskSunshineUpdateAPIToken *shared.SourceZendeskSunshineUpdateAPIToken @@ -101,7 +101,7 @@ func (r *SourceZendeskSunshineResourceModel) ToUpdateSDKType() *shared.SourceZen } if sourceZendeskSunshineUpdateAPIToken != nil { credentials = &shared.SourceZendeskSunshineUpdateAuthorizationMethod{ - APIToken: sourceZendeskSunshineUpdateAPIToken, + SourceZendeskSunshineUpdateAPIToken: sourceZendeskSunshineUpdateAPIToken, } } } diff --git a/internal/provider/source_zendesksupport_resource_sdk.go b/internal/provider/source_zendesksupport_resource_sdk.go index 6e18d25ff..392c499a0 100644 --- a/internal/provider/source_zendesksupport_resource_sdk.go +++ b/internal/provider/source_zendesksupport_resource_sdk.go @@ -40,7 +40,7 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend } if sourceZendeskSupportOAuth20 != nil { credentials = &shared.SourceZendeskSupportAuthentication{ - OAuth20: sourceZendeskSupportOAuth20, + SourceZendeskSupportOAuth20: sourceZendeskSupportOAuth20, } } var sourceZendeskSupportAPIToken *shared.SourceZendeskSupportAPIToken @@ -59,7 +59,7 @@ func (r *SourceZendeskSupportResourceModel) ToCreateSDKType() *shared.SourceZend } if sourceZendeskSupportAPIToken != nil { credentials = &shared.SourceZendeskSupportAuthentication{ - APIToken: sourceZendeskSupportAPIToken, + SourceZendeskSupportAPIToken: sourceZendeskSupportAPIToken, } } } @@ -135,7 +135,7 @@ func (r *SourceZendeskSupportResourceModel) ToUpdateSDKType() *shared.SourceZend } if sourceZendeskSupportUpdateOAuth20 != nil { credentials = &shared.SourceZendeskSupportUpdateAuthentication{ - OAuth20: sourceZendeskSupportUpdateOAuth20, + SourceZendeskSupportUpdateOAuth20: sourceZendeskSupportUpdateOAuth20, } } var sourceZendeskSupportUpdateAPIToken *shared.SourceZendeskSupportUpdateAPIToken @@ -154,7 +154,7 @@ func (r *SourceZendeskSupportResourceModel) ToUpdateSDKType() *shared.SourceZend } if sourceZendeskSupportUpdateAPIToken != nil { credentials = &shared.SourceZendeskSupportUpdateAuthentication{ - APIToken: sourceZendeskSupportUpdateAPIToken, + SourceZendeskSupportUpdateAPIToken: sourceZendeskSupportUpdateAPIToken, } } } diff --git a/internal/provider/source_zendesktalk_resource_sdk.go b/internal/provider/source_zendesktalk_resource_sdk.go index edd0ff3d9..522a0a25f 100644 --- a/internal/provider/source_zendesktalk_resource_sdk.go +++ b/internal/provider/source_zendesktalk_resource_sdk.go @@ -28,7 +28,7 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk } if sourceZendeskTalkAPIToken != nil { credentials = &shared.SourceZendeskTalkAuthentication{ - APIToken: sourceZendeskTalkAPIToken, + SourceZendeskTalkAPIToken: sourceZendeskTalkAPIToken, } } var sourceZendeskTalkOAuth20 *shared.SourceZendeskTalkOAuth20 @@ -59,7 +59,7 @@ func (r *SourceZendeskTalkResourceModel) ToCreateSDKType() *shared.SourceZendesk } if sourceZendeskTalkOAuth20 != nil { credentials = &shared.SourceZendeskTalkAuthentication{ - OAuth20: sourceZendeskTalkOAuth20, + SourceZendeskTalkOAuth20: sourceZendeskTalkOAuth20, } } } @@ -111,7 +111,7 @@ func (r *SourceZendeskTalkResourceModel) ToUpdateSDKType() *shared.SourceZendesk } if sourceZendeskTalkUpdateAPIToken != nil { credentials = &shared.SourceZendeskTalkUpdateAuthentication{ - APIToken: sourceZendeskTalkUpdateAPIToken, + SourceZendeskTalkUpdateAPIToken: sourceZendeskTalkUpdateAPIToken, } } var sourceZendeskTalkUpdateOAuth20 *shared.SourceZendeskTalkUpdateOAuth20 @@ -142,7 +142,7 @@ func (r *SourceZendeskTalkResourceModel) ToUpdateSDKType() *shared.SourceZendesk } if sourceZendeskTalkUpdateOAuth20 != nil { credentials = &shared.SourceZendeskTalkUpdateAuthentication{ - OAuth20: sourceZendeskTalkUpdateOAuth20, + SourceZendeskTalkUpdateOAuth20: sourceZendeskTalkUpdateOAuth20, } } } diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalake.go b/internal/sdk/pkg/models/shared/destinationawsdatalake.go index b41f91077..a9a16d312 100644 --- a/internal/sdk/pkg/models/shared/destinationawsdatalake.go +++ b/internal/sdk/pkg/models/shared/destinationawsdatalake.go @@ -131,48 +131,48 @@ func (o *DestinationAwsDatalakeIAMRole) GetRoleArn() string { type DestinationAwsDatalakeAuthenticationModeType string const ( - DestinationAwsDatalakeAuthenticationModeTypeIAMRole DestinationAwsDatalakeAuthenticationModeType = "IAMRole" - DestinationAwsDatalakeAuthenticationModeTypeIAMUser DestinationAwsDatalakeAuthenticationModeType = "IAMUser" + DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMRole DestinationAwsDatalakeAuthenticationModeType = "destination-aws-datalake_IAM Role" + DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMUser DestinationAwsDatalakeAuthenticationModeType = "destination-aws-datalake_IAM User" ) type DestinationAwsDatalakeAuthenticationMode struct { - IAMRole *DestinationAwsDatalakeIAMRole - IAMUser *DestinationAwsDatalakeIAMUser + DestinationAwsDatalakeIAMRole *DestinationAwsDatalakeIAMRole + DestinationAwsDatalakeIAMUser *DestinationAwsDatalakeIAMUser Type DestinationAwsDatalakeAuthenticationModeType } -func CreateDestinationAwsDatalakeAuthenticationModeIAMRole(iamRole DestinationAwsDatalakeIAMRole) DestinationAwsDatalakeAuthenticationMode { - typ := DestinationAwsDatalakeAuthenticationModeTypeIAMRole +func CreateDestinationAwsDatalakeAuthenticationModeDestinationAwsDatalakeIAMRole(destinationAwsDatalakeIAMRole DestinationAwsDatalakeIAMRole) DestinationAwsDatalakeAuthenticationMode { + typ := DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMRole return DestinationAwsDatalakeAuthenticationMode{ - IAMRole: &iamRole, - Type: typ, + DestinationAwsDatalakeIAMRole: &destinationAwsDatalakeIAMRole, + Type: typ, } } -func CreateDestinationAwsDatalakeAuthenticationModeIAMUser(iamUser DestinationAwsDatalakeIAMUser) DestinationAwsDatalakeAuthenticationMode { - typ := DestinationAwsDatalakeAuthenticationModeTypeIAMUser +func CreateDestinationAwsDatalakeAuthenticationModeDestinationAwsDatalakeIAMUser(destinationAwsDatalakeIAMUser DestinationAwsDatalakeIAMUser) DestinationAwsDatalakeAuthenticationMode { + typ := DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMUser return DestinationAwsDatalakeAuthenticationMode{ - IAMUser: &iamUser, - Type: typ, + DestinationAwsDatalakeIAMUser: &destinationAwsDatalakeIAMUser, + Type: typ, } } func (u *DestinationAwsDatalakeAuthenticationMode) UnmarshalJSON(data []byte) error { - iamRole := new(DestinationAwsDatalakeIAMRole) - if err := utils.UnmarshalJSON(data, &iamRole, "", true, true); err == nil { - u.IAMRole = iamRole - u.Type = DestinationAwsDatalakeAuthenticationModeTypeIAMRole + destinationAwsDatalakeIAMRole := new(DestinationAwsDatalakeIAMRole) + if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeIAMRole, "", true, true); err == nil { + u.DestinationAwsDatalakeIAMRole = destinationAwsDatalakeIAMRole + u.Type = DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMRole return nil } - iamUser := new(DestinationAwsDatalakeIAMUser) - if err := utils.UnmarshalJSON(data, &iamUser, "", true, true); err == nil { - u.IAMUser = iamUser - u.Type = DestinationAwsDatalakeAuthenticationModeTypeIAMUser + destinationAwsDatalakeIAMUser := new(DestinationAwsDatalakeIAMUser) + if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeIAMUser, "", true, true); err == nil { + u.DestinationAwsDatalakeIAMUser = destinationAwsDatalakeIAMUser + u.Type = DestinationAwsDatalakeAuthenticationModeTypeDestinationAwsDatalakeIAMUser return nil } @@ -180,12 +180,12 @@ func (u *DestinationAwsDatalakeAuthenticationMode) UnmarshalJSON(data []byte) er } func (u DestinationAwsDatalakeAuthenticationMode) MarshalJSON() ([]byte, error) { - if u.IAMRole != nil { - return utils.MarshalJSON(u.IAMRole, "", true) + if u.DestinationAwsDatalakeIAMRole != nil { + return utils.MarshalJSON(u.DestinationAwsDatalakeIAMRole, "", true) } - if u.IAMUser != nil { - return utils.MarshalJSON(u.IAMUser, "", true) + if u.DestinationAwsDatalakeIAMUser != nil { + return utils.MarshalJSON(u.DestinationAwsDatalakeIAMUser, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -392,48 +392,48 @@ func (o *DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON) GetFormatType() *D type DestinationAwsDatalakeOutputFormatWildcardType string const ( - DestinationAwsDatalakeOutputFormatWildcardTypeJSONLinesNewlineDelimitedJSON DestinationAwsDatalakeOutputFormatWildcardType = "JSONLinesNewlineDelimitedJSON" - DestinationAwsDatalakeOutputFormatWildcardTypeParquetColumnarStorage DestinationAwsDatalakeOutputFormatWildcardType = "ParquetColumnarStorage" + DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeJSONLinesNewlineDelimitedJSON DestinationAwsDatalakeOutputFormatWildcardType = "destination-aws-datalake_JSON Lines: Newline-delimited JSON" + DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeParquetColumnarStorage DestinationAwsDatalakeOutputFormatWildcardType = "destination-aws-datalake_Parquet: Columnar Storage" ) type DestinationAwsDatalakeOutputFormatWildcard struct { - JSONLinesNewlineDelimitedJSON *DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON - ParquetColumnarStorage *DestinationAwsDatalakeParquetColumnarStorage + DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON *DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON + DestinationAwsDatalakeParquetColumnarStorage *DestinationAwsDatalakeParquetColumnarStorage Type DestinationAwsDatalakeOutputFormatWildcardType } -func CreateDestinationAwsDatalakeOutputFormatWildcardJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON) DestinationAwsDatalakeOutputFormatWildcard { - typ := DestinationAwsDatalakeOutputFormatWildcardTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationAwsDatalakeOutputFormatWildcardDestinationAwsDatalakeJSONLinesNewlineDelimitedJSON(destinationAwsDatalakeJSONLinesNewlineDelimitedJSON DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON) DestinationAwsDatalakeOutputFormatWildcard { + typ := DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeJSONLinesNewlineDelimitedJSON return DestinationAwsDatalakeOutputFormatWildcard{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON: &destinationAwsDatalakeJSONLinesNewlineDelimitedJSON, + Type: typ, } } -func CreateDestinationAwsDatalakeOutputFormatWildcardParquetColumnarStorage(parquetColumnarStorage DestinationAwsDatalakeParquetColumnarStorage) DestinationAwsDatalakeOutputFormatWildcard { - typ := DestinationAwsDatalakeOutputFormatWildcardTypeParquetColumnarStorage +func CreateDestinationAwsDatalakeOutputFormatWildcardDestinationAwsDatalakeParquetColumnarStorage(destinationAwsDatalakeParquetColumnarStorage DestinationAwsDatalakeParquetColumnarStorage) DestinationAwsDatalakeOutputFormatWildcard { + typ := DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeParquetColumnarStorage return DestinationAwsDatalakeOutputFormatWildcard{ - ParquetColumnarStorage: &parquetColumnarStorage, - Type: typ, + DestinationAwsDatalakeParquetColumnarStorage: &destinationAwsDatalakeParquetColumnarStorage, + Type: typ, } } func (u *DestinationAwsDatalakeOutputFormatWildcard) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeJSONLinesNewlineDelimitedJSON + destinationAwsDatalakeJSONLinesNewlineDelimitedJSON := new(DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON = destinationAwsDatalakeJSONLinesNewlineDelimitedJSON + u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeJSONLinesNewlineDelimitedJSON return nil } - parquetColumnarStorage := new(DestinationAwsDatalakeParquetColumnarStorage) - if err := utils.UnmarshalJSON(data, &parquetColumnarStorage, "", true, true); err == nil { - u.ParquetColumnarStorage = parquetColumnarStorage - u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeParquetColumnarStorage + destinationAwsDatalakeParquetColumnarStorage := new(DestinationAwsDatalakeParquetColumnarStorage) + if err := utils.UnmarshalJSON(data, &destinationAwsDatalakeParquetColumnarStorage, "", true, true); err == nil { + u.DestinationAwsDatalakeParquetColumnarStorage = destinationAwsDatalakeParquetColumnarStorage + u.Type = DestinationAwsDatalakeOutputFormatWildcardTypeDestinationAwsDatalakeParquetColumnarStorage return nil } @@ -441,12 +441,12 @@ func (u *DestinationAwsDatalakeOutputFormatWildcard) UnmarshalJSON(data []byte) } func (u DestinationAwsDatalakeOutputFormatWildcard) MarshalJSON() ([]byte, error) { - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationAwsDatalakeJSONLinesNewlineDelimitedJSON, "", true) } - if u.ParquetColumnarStorage != nil { - return utils.MarshalJSON(u.ParquetColumnarStorage, "", true) + if u.DestinationAwsDatalakeParquetColumnarStorage != nil { + return utils.MarshalJSON(u.DestinationAwsDatalakeParquetColumnarStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go b/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go index 63d4076a6..db6f00093 100644 --- a/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go +++ b/internal/sdk/pkg/models/shared/destinationawsdatalakeupdate.go @@ -131,8 +131,8 @@ func (o *IAMRole) GetRoleArn() string { type AuthenticationModeType string const ( - AuthenticationModeTypeIAMRole AuthenticationModeType = "IAMRole" - AuthenticationModeTypeIAMUser AuthenticationModeType = "IAMUser" + AuthenticationModeTypeIAMRole AuthenticationModeType = "IAM Role" + AuthenticationModeTypeIAMUser AuthenticationModeType = "IAM User" ) type AuthenticationMode struct { @@ -368,8 +368,8 @@ func (o *JSONLinesNewlineDelimitedJSON) GetFormatType() *FormatTypeWildcard { type OutputFormatWildcardType string const ( - OutputFormatWildcardTypeJSONLinesNewlineDelimitedJSON OutputFormatWildcardType = "JSONLinesNewlineDelimitedJSON" - OutputFormatWildcardTypeParquetColumnarStorage OutputFormatWildcardType = "ParquetColumnarStorage" + OutputFormatWildcardTypeJSONLinesNewlineDelimitedJSON OutputFormatWildcardType = "JSON Lines: Newline-delimited JSON" + OutputFormatWildcardTypeParquetColumnarStorage OutputFormatWildcardType = "Parquet: Columnar Storage" ) type OutputFormatWildcard struct { diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstorage.go b/internal/sdk/pkg/models/shared/destinationazureblobstorage.go index f02d92576..37992b0df 100644 --- a/internal/sdk/pkg/models/shared/destinationazureblobstorage.go +++ b/internal/sdk/pkg/models/shared/destinationazureblobstorage.go @@ -161,48 +161,48 @@ func (o *DestinationAzureBlobStorageCSVCommaSeparatedValues) GetFormatType() Des type DestinationAzureBlobStorageOutputFormatType string const ( - DestinationAzureBlobStorageOutputFormatTypeCSVCommaSeparatedValues DestinationAzureBlobStorageOutputFormatType = "CSVCommaSeparatedValues" - DestinationAzureBlobStorageOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationAzureBlobStorageOutputFormatType = "JSONLinesNewlineDelimitedJSON" + DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageCSVCommaSeparatedValues DestinationAzureBlobStorageOutputFormatType = "destination-azure-blob-storage_CSV: Comma-Separated Values" + DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON DestinationAzureBlobStorageOutputFormatType = "destination-azure-blob-storage_JSON Lines: newline-delimited JSON" ) type DestinationAzureBlobStorageOutputFormat struct { - CSVCommaSeparatedValues *DestinationAzureBlobStorageCSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON + DestinationAzureBlobStorageCSVCommaSeparatedValues *DestinationAzureBlobStorageCSVCommaSeparatedValues + DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON *DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON Type DestinationAzureBlobStorageOutputFormatType } -func CreateDestinationAzureBlobStorageOutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues DestinationAzureBlobStorageCSVCommaSeparatedValues) DestinationAzureBlobStorageOutputFormat { - typ := DestinationAzureBlobStorageOutputFormatTypeCSVCommaSeparatedValues +func CreateDestinationAzureBlobStorageOutputFormatDestinationAzureBlobStorageCSVCommaSeparatedValues(destinationAzureBlobStorageCSVCommaSeparatedValues DestinationAzureBlobStorageCSVCommaSeparatedValues) DestinationAzureBlobStorageOutputFormat { + typ := DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageCSVCommaSeparatedValues return DestinationAzureBlobStorageOutputFormat{ - CSVCommaSeparatedValues: &csvCommaSeparatedValues, - Type: typ, + DestinationAzureBlobStorageCSVCommaSeparatedValues: &destinationAzureBlobStorageCSVCommaSeparatedValues, + Type: typ, } } -func CreateDestinationAzureBlobStorageOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) DestinationAzureBlobStorageOutputFormat { - typ := DestinationAzureBlobStorageOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationAzureBlobStorageOutputFormatDestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON(destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) DestinationAzureBlobStorageOutputFormat { + typ := DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON return DestinationAzureBlobStorageOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON: &destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *DestinationAzureBlobStorageOutputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationAzureBlobStorageOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON = destinationAzureBlobStorageJSONLinesNewlineDelimitedJSON + u.Type = DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON return nil } - csvCommaSeparatedValues := new(DestinationAzureBlobStorageCSVCommaSeparatedValues) - if err := utils.UnmarshalJSON(data, &csvCommaSeparatedValues, "", true, true); err == nil { - u.CSVCommaSeparatedValues = csvCommaSeparatedValues - u.Type = DestinationAzureBlobStorageOutputFormatTypeCSVCommaSeparatedValues + destinationAzureBlobStorageCSVCommaSeparatedValues := new(DestinationAzureBlobStorageCSVCommaSeparatedValues) + if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageCSVCommaSeparatedValues, "", true, true); err == nil { + u.DestinationAzureBlobStorageCSVCommaSeparatedValues = destinationAzureBlobStorageCSVCommaSeparatedValues + u.Type = DestinationAzureBlobStorageOutputFormatTypeDestinationAzureBlobStorageCSVCommaSeparatedValues return nil } @@ -210,12 +210,12 @@ func (u *DestinationAzureBlobStorageOutputFormat) UnmarshalJSON(data []byte) err } func (u DestinationAzureBlobStorageOutputFormat) MarshalJSON() ([]byte, error) { - if u.CSVCommaSeparatedValues != nil { - return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) + if u.DestinationAzureBlobStorageCSVCommaSeparatedValues != nil { + return utils.MarshalJSON(u.DestinationAzureBlobStorageCSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go b/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go index 81537450b..44b55ac54 100644 --- a/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go +++ b/internal/sdk/pkg/models/shared/destinationazureblobstorageupdate.go @@ -137,13 +137,13 @@ func (o *CSVCommaSeparatedValues) GetFormatType() FormatType { type OutputFormatType string const ( - OutputFormatTypeCSVCommaSeparatedValues OutputFormatType = "CSVCommaSeparatedValues" - OutputFormatTypeJSONLinesNewlineDelimitedJSON OutputFormatType = "JSONLinesNewlineDelimitedJSON" + OutputFormatTypeCSVCommaSeparatedValues OutputFormatType = "CSV: Comma-Separated Values" + OutputFormatTypeDestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON OutputFormatType = "destination-azure-blob-storage-update_JSON Lines: newline-delimited JSON" ) type OutputFormat struct { - CSVCommaSeparatedValues *CSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON + CSVCommaSeparatedValues *CSVCommaSeparatedValues + DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON *DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON Type OutputFormatType } @@ -157,21 +157,21 @@ func CreateOutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues CSVCommaS } } -func CreateOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) OutputFormat { - typ := OutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateOutputFormatDestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON(destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) OutputFormat { + typ := OutputFormatTypeDestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON return OutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON: &destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *OutputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = OutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON := new(DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON = destinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON + u.Type = OutputFormatTypeDestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON return nil } @@ -190,8 +190,8 @@ func (u OutputFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationbigquery.go b/internal/sdk/pkg/models/shared/destinationbigquery.go index 9ee7f9728..c369ec413 100644 --- a/internal/sdk/pkg/models/shared/destinationbigquery.go +++ b/internal/sdk/pkg/models/shared/destinationbigquery.go @@ -240,30 +240,30 @@ func (o *DestinationBigqueryHMACKey) GetHmacKeySecret() string { type DestinationBigqueryCredentialUnionType string const ( - DestinationBigqueryCredentialUnionTypeHMACKey DestinationBigqueryCredentialUnionType = "HMACKey" + DestinationBigqueryCredentialUnionTypeDestinationBigqueryHMACKey DestinationBigqueryCredentialUnionType = "destination-bigquery_HMAC key" ) type DestinationBigqueryCredential struct { - HMACKey *DestinationBigqueryHMACKey + DestinationBigqueryHMACKey *DestinationBigqueryHMACKey Type DestinationBigqueryCredentialUnionType } -func CreateDestinationBigqueryCredentialHMACKey(hmacKey DestinationBigqueryHMACKey) DestinationBigqueryCredential { - typ := DestinationBigqueryCredentialUnionTypeHMACKey +func CreateDestinationBigqueryCredentialDestinationBigqueryHMACKey(destinationBigqueryHMACKey DestinationBigqueryHMACKey) DestinationBigqueryCredential { + typ := DestinationBigqueryCredentialUnionTypeDestinationBigqueryHMACKey return DestinationBigqueryCredential{ - HMACKey: &hmacKey, - Type: typ, + DestinationBigqueryHMACKey: &destinationBigqueryHMACKey, + Type: typ, } } func (u *DestinationBigqueryCredential) UnmarshalJSON(data []byte) error { - hmacKey := new(DestinationBigqueryHMACKey) - if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { - u.HMACKey = hmacKey - u.Type = DestinationBigqueryCredentialUnionTypeHMACKey + destinationBigqueryHMACKey := new(DestinationBigqueryHMACKey) + if err := utils.UnmarshalJSON(data, &destinationBigqueryHMACKey, "", true, true); err == nil { + u.DestinationBigqueryHMACKey = destinationBigqueryHMACKey + u.Type = DestinationBigqueryCredentialUnionTypeDestinationBigqueryHMACKey return nil } @@ -271,8 +271,8 @@ func (u *DestinationBigqueryCredential) UnmarshalJSON(data []byte) error { } func (u DestinationBigqueryCredential) MarshalJSON() ([]byte, error) { - if u.HMACKey != nil { - return utils.MarshalJSON(u.HMACKey, "", true) + if u.DestinationBigqueryHMACKey != nil { + return utils.MarshalJSON(u.DestinationBigqueryHMACKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -442,48 +442,48 @@ func (o *DestinationBigqueryStandardInserts) GetMethod() DestinationBigqueryMeth type DestinationBigqueryLoadingMethodType string const ( - DestinationBigqueryLoadingMethodTypeStandardInserts DestinationBigqueryLoadingMethodType = "StandardInserts" - DestinationBigqueryLoadingMethodTypeGCSStaging DestinationBigqueryLoadingMethodType = "GCSStaging" + DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts DestinationBigqueryLoadingMethodType = "destination-bigquery_Standard Inserts" + DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging DestinationBigqueryLoadingMethodType = "destination-bigquery_GCS Staging" ) type DestinationBigqueryLoadingMethod struct { - StandardInserts *DestinationBigqueryStandardInserts - GCSStaging *DestinationBigqueryGCSStaging + DestinationBigqueryStandardInserts *DestinationBigqueryStandardInserts + DestinationBigqueryGCSStaging *DestinationBigqueryGCSStaging Type DestinationBigqueryLoadingMethodType } -func CreateDestinationBigqueryLoadingMethodStandardInserts(standardInserts DestinationBigqueryStandardInserts) DestinationBigqueryLoadingMethod { - typ := DestinationBigqueryLoadingMethodTypeStandardInserts +func CreateDestinationBigqueryLoadingMethodDestinationBigqueryStandardInserts(destinationBigqueryStandardInserts DestinationBigqueryStandardInserts) DestinationBigqueryLoadingMethod { + typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts return DestinationBigqueryLoadingMethod{ - StandardInserts: &standardInserts, - Type: typ, + DestinationBigqueryStandardInserts: &destinationBigqueryStandardInserts, + Type: typ, } } -func CreateDestinationBigqueryLoadingMethodGCSStaging(gcsStaging DestinationBigqueryGCSStaging) DestinationBigqueryLoadingMethod { - typ := DestinationBigqueryLoadingMethodTypeGCSStaging +func CreateDestinationBigqueryLoadingMethodDestinationBigqueryGCSStaging(destinationBigqueryGCSStaging DestinationBigqueryGCSStaging) DestinationBigqueryLoadingMethod { + typ := DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging return DestinationBigqueryLoadingMethod{ - GCSStaging: &gcsStaging, - Type: typ, + DestinationBigqueryGCSStaging: &destinationBigqueryGCSStaging, + Type: typ, } } func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error { - standardInserts := new(DestinationBigqueryStandardInserts) - if err := utils.UnmarshalJSON(data, &standardInserts, "", true, true); err == nil { - u.StandardInserts = standardInserts - u.Type = DestinationBigqueryLoadingMethodTypeStandardInserts + destinationBigqueryStandardInserts := new(DestinationBigqueryStandardInserts) + if err := utils.UnmarshalJSON(data, &destinationBigqueryStandardInserts, "", true, true); err == nil { + u.DestinationBigqueryStandardInserts = destinationBigqueryStandardInserts + u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryStandardInserts return nil } - gcsStaging := new(DestinationBigqueryGCSStaging) - if err := utils.UnmarshalJSON(data, &gcsStaging, "", true, true); err == nil { - u.GCSStaging = gcsStaging - u.Type = DestinationBigqueryLoadingMethodTypeGCSStaging + destinationBigqueryGCSStaging := new(DestinationBigqueryGCSStaging) + if err := utils.UnmarshalJSON(data, &destinationBigqueryGCSStaging, "", true, true); err == nil { + u.DestinationBigqueryGCSStaging = destinationBigqueryGCSStaging + u.Type = DestinationBigqueryLoadingMethodTypeDestinationBigqueryGCSStaging return nil } @@ -491,12 +491,12 @@ func (u *DestinationBigqueryLoadingMethod) UnmarshalJSON(data []byte) error { } func (u DestinationBigqueryLoadingMethod) MarshalJSON() ([]byte, error) { - if u.StandardInserts != nil { - return utils.MarshalJSON(u.StandardInserts, "", true) + if u.DestinationBigqueryStandardInserts != nil { + return utils.MarshalJSON(u.DestinationBigqueryStandardInserts, "", true) } - if u.GCSStaging != nil { - return utils.MarshalJSON(u.GCSStaging, "", true) + if u.DestinationBigqueryGCSStaging != nil { + return utils.MarshalJSON(u.DestinationBigqueryGCSStaging, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go index 337b9ad8a..bb74bdab8 100644 --- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go +++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalized.go @@ -240,30 +240,30 @@ func (o *DestinationBigqueryDenormalizedHMACKey) GetHmacKeySecret() string { type DestinationBigqueryDenormalizedCredentialUnionType string const ( - DestinationBigqueryDenormalizedCredentialUnionTypeHMACKey DestinationBigqueryDenormalizedCredentialUnionType = "HMACKey" + DestinationBigqueryDenormalizedCredentialUnionTypeDestinationBigqueryDenormalizedHMACKey DestinationBigqueryDenormalizedCredentialUnionType = "destination-bigquery-denormalized_HMAC key" ) type DestinationBigqueryDenormalizedCredential struct { - HMACKey *DestinationBigqueryDenormalizedHMACKey + DestinationBigqueryDenormalizedHMACKey *DestinationBigqueryDenormalizedHMACKey Type DestinationBigqueryDenormalizedCredentialUnionType } -func CreateDestinationBigqueryDenormalizedCredentialHMACKey(hmacKey DestinationBigqueryDenormalizedHMACKey) DestinationBigqueryDenormalizedCredential { - typ := DestinationBigqueryDenormalizedCredentialUnionTypeHMACKey +func CreateDestinationBigqueryDenormalizedCredentialDestinationBigqueryDenormalizedHMACKey(destinationBigqueryDenormalizedHMACKey DestinationBigqueryDenormalizedHMACKey) DestinationBigqueryDenormalizedCredential { + typ := DestinationBigqueryDenormalizedCredentialUnionTypeDestinationBigqueryDenormalizedHMACKey return DestinationBigqueryDenormalizedCredential{ - HMACKey: &hmacKey, - Type: typ, + DestinationBigqueryDenormalizedHMACKey: &destinationBigqueryDenormalizedHMACKey, + Type: typ, } } func (u *DestinationBigqueryDenormalizedCredential) UnmarshalJSON(data []byte) error { - hmacKey := new(DestinationBigqueryDenormalizedHMACKey) - if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { - u.HMACKey = hmacKey - u.Type = DestinationBigqueryDenormalizedCredentialUnionTypeHMACKey + destinationBigqueryDenormalizedHMACKey := new(DestinationBigqueryDenormalizedHMACKey) + if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedHMACKey, "", true, true); err == nil { + u.DestinationBigqueryDenormalizedHMACKey = destinationBigqueryDenormalizedHMACKey + u.Type = DestinationBigqueryDenormalizedCredentialUnionTypeDestinationBigqueryDenormalizedHMACKey return nil } @@ -271,8 +271,8 @@ func (u *DestinationBigqueryDenormalizedCredential) UnmarshalJSON(data []byte) e } func (u DestinationBigqueryDenormalizedCredential) MarshalJSON() ([]byte, error) { - if u.HMACKey != nil { - return utils.MarshalJSON(u.HMACKey, "", true) + if u.DestinationBigqueryDenormalizedHMACKey != nil { + return utils.MarshalJSON(u.DestinationBigqueryDenormalizedHMACKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -442,48 +442,48 @@ func (o *DestinationBigqueryDenormalizedStandardInserts) GetMethod() Destination type DestinationBigqueryDenormalizedLoadingMethodType string const ( - DestinationBigqueryDenormalizedLoadingMethodTypeStandardInserts DestinationBigqueryDenormalizedLoadingMethodType = "StandardInserts" - DestinationBigqueryDenormalizedLoadingMethodTypeGCSStaging DestinationBigqueryDenormalizedLoadingMethodType = "GCSStaging" + DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedStandardInserts DestinationBigqueryDenormalizedLoadingMethodType = "destination-bigquery-denormalized_Standard Inserts" + DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedGCSStaging DestinationBigqueryDenormalizedLoadingMethodType = "destination-bigquery-denormalized_GCS Staging" ) type DestinationBigqueryDenormalizedLoadingMethod struct { - StandardInserts *DestinationBigqueryDenormalizedStandardInserts - GCSStaging *DestinationBigqueryDenormalizedGCSStaging + DestinationBigqueryDenormalizedStandardInserts *DestinationBigqueryDenormalizedStandardInserts + DestinationBigqueryDenormalizedGCSStaging *DestinationBigqueryDenormalizedGCSStaging Type DestinationBigqueryDenormalizedLoadingMethodType } -func CreateDestinationBigqueryDenormalizedLoadingMethodStandardInserts(standardInserts DestinationBigqueryDenormalizedStandardInserts) DestinationBigqueryDenormalizedLoadingMethod { - typ := DestinationBigqueryDenormalizedLoadingMethodTypeStandardInserts +func CreateDestinationBigqueryDenormalizedLoadingMethodDestinationBigqueryDenormalizedStandardInserts(destinationBigqueryDenormalizedStandardInserts DestinationBigqueryDenormalizedStandardInserts) DestinationBigqueryDenormalizedLoadingMethod { + typ := DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedStandardInserts return DestinationBigqueryDenormalizedLoadingMethod{ - StandardInserts: &standardInserts, - Type: typ, + DestinationBigqueryDenormalizedStandardInserts: &destinationBigqueryDenormalizedStandardInserts, + Type: typ, } } -func CreateDestinationBigqueryDenormalizedLoadingMethodGCSStaging(gcsStaging DestinationBigqueryDenormalizedGCSStaging) DestinationBigqueryDenormalizedLoadingMethod { - typ := DestinationBigqueryDenormalizedLoadingMethodTypeGCSStaging +func CreateDestinationBigqueryDenormalizedLoadingMethodDestinationBigqueryDenormalizedGCSStaging(destinationBigqueryDenormalizedGCSStaging DestinationBigqueryDenormalizedGCSStaging) DestinationBigqueryDenormalizedLoadingMethod { + typ := DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedGCSStaging return DestinationBigqueryDenormalizedLoadingMethod{ - GCSStaging: &gcsStaging, - Type: typ, + DestinationBigqueryDenormalizedGCSStaging: &destinationBigqueryDenormalizedGCSStaging, + Type: typ, } } func (u *DestinationBigqueryDenormalizedLoadingMethod) UnmarshalJSON(data []byte) error { - standardInserts := new(DestinationBigqueryDenormalizedStandardInserts) - if err := utils.UnmarshalJSON(data, &standardInserts, "", true, true); err == nil { - u.StandardInserts = standardInserts - u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeStandardInserts + destinationBigqueryDenormalizedStandardInserts := new(DestinationBigqueryDenormalizedStandardInserts) + if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedStandardInserts, "", true, true); err == nil { + u.DestinationBigqueryDenormalizedStandardInserts = destinationBigqueryDenormalizedStandardInserts + u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedStandardInserts return nil } - gcsStaging := new(DestinationBigqueryDenormalizedGCSStaging) - if err := utils.UnmarshalJSON(data, &gcsStaging, "", true, true); err == nil { - u.GCSStaging = gcsStaging - u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeGCSStaging + destinationBigqueryDenormalizedGCSStaging := new(DestinationBigqueryDenormalizedGCSStaging) + if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedGCSStaging, "", true, true); err == nil { + u.DestinationBigqueryDenormalizedGCSStaging = destinationBigqueryDenormalizedGCSStaging + u.Type = DestinationBigqueryDenormalizedLoadingMethodTypeDestinationBigqueryDenormalizedGCSStaging return nil } @@ -491,12 +491,12 @@ func (u *DestinationBigqueryDenormalizedLoadingMethod) UnmarshalJSON(data []byte } func (u DestinationBigqueryDenormalizedLoadingMethod) MarshalJSON() ([]byte, error) { - if u.StandardInserts != nil { - return utils.MarshalJSON(u.StandardInserts, "", true) + if u.DestinationBigqueryDenormalizedStandardInserts != nil { + return utils.MarshalJSON(u.DestinationBigqueryDenormalizedStandardInserts, "", true) } - if u.GCSStaging != nil { - return utils.MarshalJSON(u.GCSStaging, "", true) + if u.DestinationBigqueryDenormalizedGCSStaging != nil { + return utils.MarshalJSON(u.DestinationBigqueryDenormalizedGCSStaging, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go index e766e3664..ab9144f3e 100644 --- a/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go +++ b/internal/sdk/pkg/models/shared/destinationbigquerydenormalizedupdate.go @@ -216,30 +216,30 @@ func (o *DestinationBigqueryDenormalizedUpdateHMACKey) GetHmacKeySecret() string type CredentialUnionType string const ( - CredentialUnionTypeHMACKey CredentialUnionType = "HMACKey" + CredentialUnionTypeDestinationBigqueryDenormalizedUpdateHMACKey CredentialUnionType = "destination-bigquery-denormalized-update_HMAC key" ) type Credential struct { - HMACKey *DestinationBigqueryDenormalizedUpdateHMACKey + DestinationBigqueryDenormalizedUpdateHMACKey *DestinationBigqueryDenormalizedUpdateHMACKey Type CredentialUnionType } -func CreateCredentialHMACKey(hmacKey DestinationBigqueryDenormalizedUpdateHMACKey) Credential { - typ := CredentialUnionTypeHMACKey +func CreateCredentialDestinationBigqueryDenormalizedUpdateHMACKey(destinationBigqueryDenormalizedUpdateHMACKey DestinationBigqueryDenormalizedUpdateHMACKey) Credential { + typ := CredentialUnionTypeDestinationBigqueryDenormalizedUpdateHMACKey return Credential{ - HMACKey: &hmacKey, - Type: typ, + DestinationBigqueryDenormalizedUpdateHMACKey: &destinationBigqueryDenormalizedUpdateHMACKey, + Type: typ, } } func (u *Credential) UnmarshalJSON(data []byte) error { - hmacKey := new(DestinationBigqueryDenormalizedUpdateHMACKey) - if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { - u.HMACKey = hmacKey - u.Type = CredentialUnionTypeHMACKey + destinationBigqueryDenormalizedUpdateHMACKey := new(DestinationBigqueryDenormalizedUpdateHMACKey) + if err := utils.UnmarshalJSON(data, &destinationBigqueryDenormalizedUpdateHMACKey, "", true, true); err == nil { + u.DestinationBigqueryDenormalizedUpdateHMACKey = destinationBigqueryDenormalizedUpdateHMACKey + u.Type = CredentialUnionTypeDestinationBigqueryDenormalizedUpdateHMACKey return nil } @@ -247,8 +247,8 @@ func (u *Credential) UnmarshalJSON(data []byte) error { } func (u Credential) MarshalJSON() ([]byte, error) { - if u.HMACKey != nil { - return utils.MarshalJSON(u.HMACKey, "", true) + if u.DestinationBigqueryDenormalizedUpdateHMACKey != nil { + return utils.MarshalJSON(u.DestinationBigqueryDenormalizedUpdateHMACKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -418,8 +418,8 @@ func (o *StandardInserts) GetMethod() Method { type LoadingMethodType string const ( - LoadingMethodTypeStandardInserts LoadingMethodType = "StandardInserts" - LoadingMethodTypeGCSStaging LoadingMethodType = "GCSStaging" + LoadingMethodTypeStandardInserts LoadingMethodType = "Standard Inserts" + LoadingMethodTypeGCSStaging LoadingMethodType = "GCS Staging" ) type LoadingMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go b/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go index f5049b956..1d52fa77c 100644 --- a/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go +++ b/internal/sdk/pkg/models/shared/destinationbigqueryupdate.go @@ -216,30 +216,30 @@ func (o *DestinationBigqueryUpdateHMACKey) GetHmacKeySecret() string { type DestinationBigqueryUpdateCredentialUnionType string const ( - DestinationBigqueryUpdateCredentialUnionTypeHMACKey DestinationBigqueryUpdateCredentialUnionType = "HMACKey" + DestinationBigqueryUpdateCredentialUnionTypeDestinationBigqueryUpdateHMACKey DestinationBigqueryUpdateCredentialUnionType = "destination-bigquery-update_HMAC key" ) type DestinationBigqueryUpdateCredential struct { - HMACKey *DestinationBigqueryUpdateHMACKey + DestinationBigqueryUpdateHMACKey *DestinationBigqueryUpdateHMACKey Type DestinationBigqueryUpdateCredentialUnionType } -func CreateDestinationBigqueryUpdateCredentialHMACKey(hmacKey DestinationBigqueryUpdateHMACKey) DestinationBigqueryUpdateCredential { - typ := DestinationBigqueryUpdateCredentialUnionTypeHMACKey +func CreateDestinationBigqueryUpdateCredentialDestinationBigqueryUpdateHMACKey(destinationBigqueryUpdateHMACKey DestinationBigqueryUpdateHMACKey) DestinationBigqueryUpdateCredential { + typ := DestinationBigqueryUpdateCredentialUnionTypeDestinationBigqueryUpdateHMACKey return DestinationBigqueryUpdateCredential{ - HMACKey: &hmacKey, - Type: typ, + DestinationBigqueryUpdateHMACKey: &destinationBigqueryUpdateHMACKey, + Type: typ, } } func (u *DestinationBigqueryUpdateCredential) UnmarshalJSON(data []byte) error { - hmacKey := new(DestinationBigqueryUpdateHMACKey) - if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { - u.HMACKey = hmacKey - u.Type = DestinationBigqueryUpdateCredentialUnionTypeHMACKey + destinationBigqueryUpdateHMACKey := new(DestinationBigqueryUpdateHMACKey) + if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateHMACKey, "", true, true); err == nil { + u.DestinationBigqueryUpdateHMACKey = destinationBigqueryUpdateHMACKey + u.Type = DestinationBigqueryUpdateCredentialUnionTypeDestinationBigqueryUpdateHMACKey return nil } @@ -247,8 +247,8 @@ func (u *DestinationBigqueryUpdateCredential) UnmarshalJSON(data []byte) error { } func (u DestinationBigqueryUpdateCredential) MarshalJSON() ([]byte, error) { - if u.HMACKey != nil { - return utils.MarshalJSON(u.HMACKey, "", true) + if u.DestinationBigqueryUpdateHMACKey != nil { + return utils.MarshalJSON(u.DestinationBigqueryUpdateHMACKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -418,48 +418,48 @@ func (o *DestinationBigqueryUpdateStandardInserts) GetMethod() DestinationBigque type DestinationBigqueryUpdateLoadingMethodType string const ( - DestinationBigqueryUpdateLoadingMethodTypeStandardInserts DestinationBigqueryUpdateLoadingMethodType = "StandardInserts" - DestinationBigqueryUpdateLoadingMethodTypeGCSStaging DestinationBigqueryUpdateLoadingMethodType = "GCSStaging" + DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateStandardInserts DestinationBigqueryUpdateLoadingMethodType = "destination-bigquery-update_Standard Inserts" + DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateGCSStaging DestinationBigqueryUpdateLoadingMethodType = "destination-bigquery-update_GCS Staging" ) type DestinationBigqueryUpdateLoadingMethod struct { - StandardInserts *DestinationBigqueryUpdateStandardInserts - GCSStaging *DestinationBigqueryUpdateGCSStaging + DestinationBigqueryUpdateStandardInserts *DestinationBigqueryUpdateStandardInserts + DestinationBigqueryUpdateGCSStaging *DestinationBigqueryUpdateGCSStaging Type DestinationBigqueryUpdateLoadingMethodType } -func CreateDestinationBigqueryUpdateLoadingMethodStandardInserts(standardInserts DestinationBigqueryUpdateStandardInserts) DestinationBigqueryUpdateLoadingMethod { - typ := DestinationBigqueryUpdateLoadingMethodTypeStandardInserts +func CreateDestinationBigqueryUpdateLoadingMethodDestinationBigqueryUpdateStandardInserts(destinationBigqueryUpdateStandardInserts DestinationBigqueryUpdateStandardInserts) DestinationBigqueryUpdateLoadingMethod { + typ := DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateStandardInserts return DestinationBigqueryUpdateLoadingMethod{ - StandardInserts: &standardInserts, - Type: typ, + DestinationBigqueryUpdateStandardInserts: &destinationBigqueryUpdateStandardInserts, + Type: typ, } } -func CreateDestinationBigqueryUpdateLoadingMethodGCSStaging(gcsStaging DestinationBigqueryUpdateGCSStaging) DestinationBigqueryUpdateLoadingMethod { - typ := DestinationBigqueryUpdateLoadingMethodTypeGCSStaging +func CreateDestinationBigqueryUpdateLoadingMethodDestinationBigqueryUpdateGCSStaging(destinationBigqueryUpdateGCSStaging DestinationBigqueryUpdateGCSStaging) DestinationBigqueryUpdateLoadingMethod { + typ := DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateGCSStaging return DestinationBigqueryUpdateLoadingMethod{ - GCSStaging: &gcsStaging, - Type: typ, + DestinationBigqueryUpdateGCSStaging: &destinationBigqueryUpdateGCSStaging, + Type: typ, } } func (u *DestinationBigqueryUpdateLoadingMethod) UnmarshalJSON(data []byte) error { - standardInserts := new(DestinationBigqueryUpdateStandardInserts) - if err := utils.UnmarshalJSON(data, &standardInserts, "", true, true); err == nil { - u.StandardInserts = standardInserts - u.Type = DestinationBigqueryUpdateLoadingMethodTypeStandardInserts + destinationBigqueryUpdateStandardInserts := new(DestinationBigqueryUpdateStandardInserts) + if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateStandardInserts, "", true, true); err == nil { + u.DestinationBigqueryUpdateStandardInserts = destinationBigqueryUpdateStandardInserts + u.Type = DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateStandardInserts return nil } - gcsStaging := new(DestinationBigqueryUpdateGCSStaging) - if err := utils.UnmarshalJSON(data, &gcsStaging, "", true, true); err == nil { - u.GCSStaging = gcsStaging - u.Type = DestinationBigqueryUpdateLoadingMethodTypeGCSStaging + destinationBigqueryUpdateGCSStaging := new(DestinationBigqueryUpdateGCSStaging) + if err := utils.UnmarshalJSON(data, &destinationBigqueryUpdateGCSStaging, "", true, true); err == nil { + u.DestinationBigqueryUpdateGCSStaging = destinationBigqueryUpdateGCSStaging + u.Type = DestinationBigqueryUpdateLoadingMethodTypeDestinationBigqueryUpdateGCSStaging return nil } @@ -467,12 +467,12 @@ func (u *DestinationBigqueryUpdateLoadingMethod) UnmarshalJSON(data []byte) erro } func (u DestinationBigqueryUpdateLoadingMethod) MarshalJSON() ([]byte, error) { - if u.StandardInserts != nil { - return utils.MarshalJSON(u.StandardInserts, "", true) + if u.DestinationBigqueryUpdateStandardInserts != nil { + return utils.MarshalJSON(u.DestinationBigqueryUpdateStandardInserts, "", true) } - if u.GCSStaging != nil { - return utils.MarshalJSON(u.GCSStaging, "", true) + if u.DestinationBigqueryUpdateGCSStaging != nil { + return utils.MarshalJSON(u.DestinationBigqueryUpdateGCSStaging, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationclickhouse.go b/internal/sdk/pkg/models/shared/destinationclickhouse.go index e2f0d52ec..03fd99b27 100644 --- a/internal/sdk/pkg/models/shared/destinationclickhouse.go +++ b/internal/sdk/pkg/models/shared/destinationclickhouse.go @@ -246,66 +246,66 @@ func (o *DestinationClickhouseNoTunnel) GetTunnelMethod() DestinationClickhouseT type DestinationClickhouseSSHTunnelMethodType string const ( - DestinationClickhouseSSHTunnelMethodTypeNoTunnel DestinationClickhouseSSHTunnelMethodType = "NoTunnel" - DestinationClickhouseSSHTunnelMethodTypeSSHKeyAuthentication DestinationClickhouseSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationClickhouseSSHTunnelMethodTypePasswordAuthentication DestinationClickhouseSSHTunnelMethodType = "PasswordAuthentication" + DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseNoTunnel DestinationClickhouseSSHTunnelMethodType = "destination-clickhouse_No Tunnel" + DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHKeyAuthentication DestinationClickhouseSSHTunnelMethodType = "destination-clickhouse_SSH Key Authentication" + DestinationClickhouseSSHTunnelMethodTypeDestinationClickhousePasswordAuthentication DestinationClickhouseSSHTunnelMethodType = "destination-clickhouse_Password Authentication" ) type DestinationClickhouseSSHTunnelMethod struct { - NoTunnel *DestinationClickhouseNoTunnel - SSHKeyAuthentication *DestinationClickhouseSSHKeyAuthentication - PasswordAuthentication *DestinationClickhousePasswordAuthentication + DestinationClickhouseNoTunnel *DestinationClickhouseNoTunnel + DestinationClickhouseSSHKeyAuthentication *DestinationClickhouseSSHKeyAuthentication + DestinationClickhousePasswordAuthentication *DestinationClickhousePasswordAuthentication Type DestinationClickhouseSSHTunnelMethodType } -func CreateDestinationClickhouseSSHTunnelMethodNoTunnel(noTunnel DestinationClickhouseNoTunnel) DestinationClickhouseSSHTunnelMethod { - typ := DestinationClickhouseSSHTunnelMethodTypeNoTunnel +func CreateDestinationClickhouseSSHTunnelMethodDestinationClickhouseNoTunnel(destinationClickhouseNoTunnel DestinationClickhouseNoTunnel) DestinationClickhouseSSHTunnelMethod { + typ := DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseNoTunnel return DestinationClickhouseSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationClickhouseNoTunnel: &destinationClickhouseNoTunnel, + Type: typ, } } -func CreateDestinationClickhouseSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationClickhouseSSHKeyAuthentication) DestinationClickhouseSSHTunnelMethod { - typ := DestinationClickhouseSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationClickhouseSSHTunnelMethodDestinationClickhouseSSHKeyAuthentication(destinationClickhouseSSHKeyAuthentication DestinationClickhouseSSHKeyAuthentication) DestinationClickhouseSSHTunnelMethod { + typ := DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHKeyAuthentication return DestinationClickhouseSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationClickhouseSSHKeyAuthentication: &destinationClickhouseSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationClickhouseSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationClickhousePasswordAuthentication) DestinationClickhouseSSHTunnelMethod { - typ := DestinationClickhouseSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationClickhouseSSHTunnelMethodDestinationClickhousePasswordAuthentication(destinationClickhousePasswordAuthentication DestinationClickhousePasswordAuthentication) DestinationClickhouseSSHTunnelMethod { + typ := DestinationClickhouseSSHTunnelMethodTypeDestinationClickhousePasswordAuthentication return DestinationClickhouseSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationClickhousePasswordAuthentication: &destinationClickhousePasswordAuthentication, + Type: typ, } } func (u *DestinationClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationClickhouseNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationClickhouseSSHTunnelMethodTypeNoTunnel + destinationClickhouseNoTunnel := new(DestinationClickhouseNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationClickhouseNoTunnel, "", true, true); err == nil { + u.DestinationClickhouseNoTunnel = destinationClickhouseNoTunnel + u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseNoTunnel return nil } - sshKeyAuthentication := new(DestinationClickhouseSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationClickhouseSSHTunnelMethodTypeSSHKeyAuthentication + destinationClickhouseSSHKeyAuthentication := new(DestinationClickhouseSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationClickhouseSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationClickhouseSSHKeyAuthentication = destinationClickhouseSSHKeyAuthentication + u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhouseSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationClickhousePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationClickhouseSSHTunnelMethodTypePasswordAuthentication + destinationClickhousePasswordAuthentication := new(DestinationClickhousePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationClickhousePasswordAuthentication, "", true, true); err == nil { + u.DestinationClickhousePasswordAuthentication = destinationClickhousePasswordAuthentication + u.Type = DestinationClickhouseSSHTunnelMethodTypeDestinationClickhousePasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *DestinationClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error } func (u DestinationClickhouseSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationClickhouseNoTunnel != nil { + return utils.MarshalJSON(u.DestinationClickhouseNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationClickhouseSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationClickhouseSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationClickhousePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationClickhousePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go b/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go index 5a133d929..61091872b 100644 --- a/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go +++ b/internal/sdk/pkg/models/shared/destinationclickhouseupdate.go @@ -222,9 +222,9 @@ func (o *NoTunnel) GetTunnelMethod() TunnelMethod { type SSHTunnelMethodType string const ( - SSHTunnelMethodTypeNoTunnel SSHTunnelMethodType = "NoTunnel" - SSHTunnelMethodTypeSSHKeyAuthentication SSHTunnelMethodType = "SSHKeyAuthentication" - SSHTunnelMethodTypePasswordAuthentication SSHTunnelMethodType = "PasswordAuthentication" + SSHTunnelMethodTypeNoTunnel SSHTunnelMethodType = "No Tunnel" + SSHTunnelMethodTypeSSHKeyAuthentication SSHTunnelMethodType = "SSH Key Authentication" + SSHTunnelMethodTypePasswordAuthentication SSHTunnelMethodType = "Password Authentication" ) type SSHTunnelMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinationdatabricks.go b/internal/sdk/pkg/models/shared/destinationdatabricks.go index 32c98f638..ce884f49d 100644 --- a/internal/sdk/pkg/models/shared/destinationdatabricks.go +++ b/internal/sdk/pkg/models/shared/destinationdatabricks.go @@ -334,66 +334,66 @@ func (o *DestinationDatabricksRecommendedManagedTables) GetDataSourceType() Dest type DestinationDatabricksDataSourceUnionType string const ( - DestinationDatabricksDataSourceUnionTypeRecommendedManagedTables DestinationDatabricksDataSourceUnionType = "RecommendedManagedTables" - DestinationDatabricksDataSourceUnionTypeAmazonS3 DestinationDatabricksDataSourceUnionType = "AmazonS3" - DestinationDatabricksDataSourceUnionTypeAzureBlobStorage DestinationDatabricksDataSourceUnionType = "AzureBlobStorage" + DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables DestinationDatabricksDataSourceUnionType = "destination-databricks_[Recommended] Managed tables" + DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 DestinationDatabricksDataSourceUnionType = "destination-databricks_Amazon S3" + DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage DestinationDatabricksDataSourceUnionType = "destination-databricks_Azure Blob Storage" ) type DestinationDatabricksDataSource struct { - RecommendedManagedTables *DestinationDatabricksRecommendedManagedTables - AmazonS3 *DestinationDatabricksAmazonS3 - AzureBlobStorage *DestinationDatabricksAzureBlobStorage + DestinationDatabricksRecommendedManagedTables *DestinationDatabricksRecommendedManagedTables + DestinationDatabricksAmazonS3 *DestinationDatabricksAmazonS3 + DestinationDatabricksAzureBlobStorage *DestinationDatabricksAzureBlobStorage Type DestinationDatabricksDataSourceUnionType } -func CreateDestinationDatabricksDataSourceRecommendedManagedTables(recommendedManagedTables DestinationDatabricksRecommendedManagedTables) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeRecommendedManagedTables +func CreateDestinationDatabricksDataSourceDestinationDatabricksRecommendedManagedTables(destinationDatabricksRecommendedManagedTables DestinationDatabricksRecommendedManagedTables) DestinationDatabricksDataSource { + typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables return DestinationDatabricksDataSource{ - RecommendedManagedTables: &recommendedManagedTables, - Type: typ, + DestinationDatabricksRecommendedManagedTables: &destinationDatabricksRecommendedManagedTables, + Type: typ, } } -func CreateDestinationDatabricksDataSourceAmazonS3(amazonS3 DestinationDatabricksAmazonS3) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeAmazonS3 +func CreateDestinationDatabricksDataSourceDestinationDatabricksAmazonS3(destinationDatabricksAmazonS3 DestinationDatabricksAmazonS3) DestinationDatabricksDataSource { + typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 return DestinationDatabricksDataSource{ - AmazonS3: &amazonS3, - Type: typ, + DestinationDatabricksAmazonS3: &destinationDatabricksAmazonS3, + Type: typ, } } -func CreateDestinationDatabricksDataSourceAzureBlobStorage(azureBlobStorage DestinationDatabricksAzureBlobStorage) DestinationDatabricksDataSource { - typ := DestinationDatabricksDataSourceUnionTypeAzureBlobStorage +func CreateDestinationDatabricksDataSourceDestinationDatabricksAzureBlobStorage(destinationDatabricksAzureBlobStorage DestinationDatabricksAzureBlobStorage) DestinationDatabricksDataSource { + typ := DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage return DestinationDatabricksDataSource{ - AzureBlobStorage: &azureBlobStorage, - Type: typ, + DestinationDatabricksAzureBlobStorage: &destinationDatabricksAzureBlobStorage, + Type: typ, } } func (u *DestinationDatabricksDataSource) UnmarshalJSON(data []byte) error { - recommendedManagedTables := new(DestinationDatabricksRecommendedManagedTables) - if err := utils.UnmarshalJSON(data, &recommendedManagedTables, "", true, true); err == nil { - u.RecommendedManagedTables = recommendedManagedTables - u.Type = DestinationDatabricksDataSourceUnionTypeRecommendedManagedTables + destinationDatabricksRecommendedManagedTables := new(DestinationDatabricksRecommendedManagedTables) + if err := utils.UnmarshalJSON(data, &destinationDatabricksRecommendedManagedTables, "", true, true); err == nil { + u.DestinationDatabricksRecommendedManagedTables = destinationDatabricksRecommendedManagedTables + u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksRecommendedManagedTables return nil } - azureBlobStorage := new(DestinationDatabricksAzureBlobStorage) - if err := utils.UnmarshalJSON(data, &azureBlobStorage, "", true, true); err == nil { - u.AzureBlobStorage = azureBlobStorage - u.Type = DestinationDatabricksDataSourceUnionTypeAzureBlobStorage + destinationDatabricksAzureBlobStorage := new(DestinationDatabricksAzureBlobStorage) + if err := utils.UnmarshalJSON(data, &destinationDatabricksAzureBlobStorage, "", true, true); err == nil { + u.DestinationDatabricksAzureBlobStorage = destinationDatabricksAzureBlobStorage + u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAzureBlobStorage return nil } - amazonS3 := new(DestinationDatabricksAmazonS3) - if err := utils.UnmarshalJSON(data, &amazonS3, "", true, true); err == nil { - u.AmazonS3 = amazonS3 - u.Type = DestinationDatabricksDataSourceUnionTypeAmazonS3 + destinationDatabricksAmazonS3 := new(DestinationDatabricksAmazonS3) + if err := utils.UnmarshalJSON(data, &destinationDatabricksAmazonS3, "", true, true); err == nil { + u.DestinationDatabricksAmazonS3 = destinationDatabricksAmazonS3 + u.Type = DestinationDatabricksDataSourceUnionTypeDestinationDatabricksAmazonS3 return nil } @@ -401,16 +401,16 @@ func (u *DestinationDatabricksDataSource) UnmarshalJSON(data []byte) error { } func (u DestinationDatabricksDataSource) MarshalJSON() ([]byte, error) { - if u.RecommendedManagedTables != nil { - return utils.MarshalJSON(u.RecommendedManagedTables, "", true) + if u.DestinationDatabricksRecommendedManagedTables != nil { + return utils.MarshalJSON(u.DestinationDatabricksRecommendedManagedTables, "", true) } - if u.AmazonS3 != nil { - return utils.MarshalJSON(u.AmazonS3, "", true) + if u.DestinationDatabricksAmazonS3 != nil { + return utils.MarshalJSON(u.DestinationDatabricksAmazonS3, "", true) } - if u.AzureBlobStorage != nil { - return utils.MarshalJSON(u.AzureBlobStorage, "", true) + if u.DestinationDatabricksAzureBlobStorage != nil { + return utils.MarshalJSON(u.DestinationDatabricksAzureBlobStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go b/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go index 1d2faa9be..483bb2af8 100644 --- a/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go +++ b/internal/sdk/pkg/models/shared/destinationdatabricksupdate.go @@ -334,15 +334,15 @@ func (o *RecommendedManagedTables) GetDataSourceType() DataSourceType { type DataSourceUnionType string const ( - DataSourceUnionTypeRecommendedManagedTables DataSourceUnionType = "RecommendedManagedTables" - DataSourceUnionTypeAmazonS3 DataSourceUnionType = "AmazonS3" - DataSourceUnionTypeAzureBlobStorage DataSourceUnionType = "AzureBlobStorage" + DataSourceUnionTypeRecommendedManagedTables DataSourceUnionType = "[Recommended] Managed tables" + DataSourceUnionTypeAmazonS3 DataSourceUnionType = "Amazon S3" + DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage DataSourceUnionType = "destination-databricks-update_Azure Blob Storage" ) type DataSource struct { - RecommendedManagedTables *RecommendedManagedTables - AmazonS3 *AmazonS3 - AzureBlobStorage *DestinationDatabricksUpdateAzureBlobStorage + RecommendedManagedTables *RecommendedManagedTables + AmazonS3 *AmazonS3 + DestinationDatabricksUpdateAzureBlobStorage *DestinationDatabricksUpdateAzureBlobStorage Type DataSourceUnionType } @@ -365,12 +365,12 @@ func CreateDataSourceAmazonS3(amazonS3 AmazonS3) DataSource { } } -func CreateDataSourceAzureBlobStorage(azureBlobStorage DestinationDatabricksUpdateAzureBlobStorage) DataSource { - typ := DataSourceUnionTypeAzureBlobStorage +func CreateDataSourceDestinationDatabricksUpdateAzureBlobStorage(destinationDatabricksUpdateAzureBlobStorage DestinationDatabricksUpdateAzureBlobStorage) DataSource { + typ := DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage return DataSource{ - AzureBlobStorage: &azureBlobStorage, - Type: typ, + DestinationDatabricksUpdateAzureBlobStorage: &destinationDatabricksUpdateAzureBlobStorage, + Type: typ, } } @@ -383,10 +383,10 @@ func (u *DataSource) UnmarshalJSON(data []byte) error { return nil } - azureBlobStorage := new(DestinationDatabricksUpdateAzureBlobStorage) - if err := utils.UnmarshalJSON(data, &azureBlobStorage, "", true, true); err == nil { - u.AzureBlobStorage = azureBlobStorage - u.Type = DataSourceUnionTypeAzureBlobStorage + destinationDatabricksUpdateAzureBlobStorage := new(DestinationDatabricksUpdateAzureBlobStorage) + if err := utils.UnmarshalJSON(data, &destinationDatabricksUpdateAzureBlobStorage, "", true, true); err == nil { + u.DestinationDatabricksUpdateAzureBlobStorage = destinationDatabricksUpdateAzureBlobStorage + u.Type = DataSourceUnionTypeDestinationDatabricksUpdateAzureBlobStorage return nil } @@ -409,8 +409,8 @@ func (u DataSource) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.AmazonS3, "", true) } - if u.AzureBlobStorage != nil { - return utils.MarshalJSON(u.AzureBlobStorage, "", true) + if u.DestinationDatabricksUpdateAzureBlobStorage != nil { + return utils.MarshalJSON(u.DestinationDatabricksUpdateAzureBlobStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationdevnull.go b/internal/sdk/pkg/models/shared/destinationdevnull.go index 7ddac4d70..fff81e634 100644 --- a/internal/sdk/pkg/models/shared/destinationdevnull.go +++ b/internal/sdk/pkg/models/shared/destinationdevnull.go @@ -80,30 +80,30 @@ func (o *DestinationDevNullSilent) GetTestDestinationType() *DestinationDevNullT type DestinationDevNullTestDestinationUnionType string const ( - DestinationDevNullTestDestinationUnionTypeSilent DestinationDevNullTestDestinationUnionType = "Silent" + DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent DestinationDevNullTestDestinationUnionType = "destination-dev-null_Silent" ) type DestinationDevNullTestDestination struct { - Silent *DestinationDevNullSilent + DestinationDevNullSilent *DestinationDevNullSilent Type DestinationDevNullTestDestinationUnionType } -func CreateDestinationDevNullTestDestinationSilent(silent DestinationDevNullSilent) DestinationDevNullTestDestination { - typ := DestinationDevNullTestDestinationUnionTypeSilent +func CreateDestinationDevNullTestDestinationDestinationDevNullSilent(destinationDevNullSilent DestinationDevNullSilent) DestinationDevNullTestDestination { + typ := DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent return DestinationDevNullTestDestination{ - Silent: &silent, - Type: typ, + DestinationDevNullSilent: &destinationDevNullSilent, + Type: typ, } } func (u *DestinationDevNullTestDestination) UnmarshalJSON(data []byte) error { - silent := new(DestinationDevNullSilent) - if err := utils.UnmarshalJSON(data, &silent, "", true, true); err == nil { - u.Silent = silent - u.Type = DestinationDevNullTestDestinationUnionTypeSilent + destinationDevNullSilent := new(DestinationDevNullSilent) + if err := utils.UnmarshalJSON(data, &destinationDevNullSilent, "", true, true); err == nil { + u.DestinationDevNullSilent = destinationDevNullSilent + u.Type = DestinationDevNullTestDestinationUnionTypeDestinationDevNullSilent return nil } @@ -111,8 +111,8 @@ func (u *DestinationDevNullTestDestination) UnmarshalJSON(data []byte) error { } func (u DestinationDevNullTestDestination) MarshalJSON() ([]byte, error) { - if u.Silent != nil { - return utils.MarshalJSON(u.Silent, "", true) + if u.DestinationDevNullSilent != nil { + return utils.MarshalJSON(u.DestinationDevNullSilent, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearch.go b/internal/sdk/pkg/models/shared/destinationelasticsearch.go index fde38b770..c08f0ed02 100644 --- a/internal/sdk/pkg/models/shared/destinationelasticsearch.go +++ b/internal/sdk/pkg/models/shared/destinationelasticsearch.go @@ -136,48 +136,48 @@ func (o *DestinationElasticsearchAPIKeySecret) GetMethod() DestinationElasticsea type DestinationElasticsearchAuthenticationMethodType string const ( - DestinationElasticsearchAuthenticationMethodTypeAPIKeySecret DestinationElasticsearchAuthenticationMethodType = "APIKeySecret" - DestinationElasticsearchAuthenticationMethodTypeUsernamePassword DestinationElasticsearchAuthenticationMethodType = "UsernamePassword" + DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAPIKeySecret DestinationElasticsearchAuthenticationMethodType = "destination-elasticsearch_Api Key/Secret" + DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchUsernamePassword DestinationElasticsearchAuthenticationMethodType = "destination-elasticsearch_Username/Password" ) type DestinationElasticsearchAuthenticationMethod struct { - APIKeySecret *DestinationElasticsearchAPIKeySecret - UsernamePassword *DestinationElasticsearchUsernamePassword + DestinationElasticsearchAPIKeySecret *DestinationElasticsearchAPIKeySecret + DestinationElasticsearchUsernamePassword *DestinationElasticsearchUsernamePassword Type DestinationElasticsearchAuthenticationMethodType } -func CreateDestinationElasticsearchAuthenticationMethodAPIKeySecret(apiKeySecret DestinationElasticsearchAPIKeySecret) DestinationElasticsearchAuthenticationMethod { - typ := DestinationElasticsearchAuthenticationMethodTypeAPIKeySecret +func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchAPIKeySecret(destinationElasticsearchAPIKeySecret DestinationElasticsearchAPIKeySecret) DestinationElasticsearchAuthenticationMethod { + typ := DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAPIKeySecret return DestinationElasticsearchAuthenticationMethod{ - APIKeySecret: &apiKeySecret, - Type: typ, + DestinationElasticsearchAPIKeySecret: &destinationElasticsearchAPIKeySecret, + Type: typ, } } -func CreateDestinationElasticsearchAuthenticationMethodUsernamePassword(usernamePassword DestinationElasticsearchUsernamePassword) DestinationElasticsearchAuthenticationMethod { - typ := DestinationElasticsearchAuthenticationMethodTypeUsernamePassword +func CreateDestinationElasticsearchAuthenticationMethodDestinationElasticsearchUsernamePassword(destinationElasticsearchUsernamePassword DestinationElasticsearchUsernamePassword) DestinationElasticsearchAuthenticationMethod { + typ := DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchUsernamePassword return DestinationElasticsearchAuthenticationMethod{ - UsernamePassword: &usernamePassword, - Type: typ, + DestinationElasticsearchUsernamePassword: &destinationElasticsearchUsernamePassword, + Type: typ, } } func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte) error { - apiKeySecret := new(DestinationElasticsearchAPIKeySecret) - if err := utils.UnmarshalJSON(data, &apiKeySecret, "", true, true); err == nil { - u.APIKeySecret = apiKeySecret - u.Type = DestinationElasticsearchAuthenticationMethodTypeAPIKeySecret + destinationElasticsearchAPIKeySecret := new(DestinationElasticsearchAPIKeySecret) + if err := utils.UnmarshalJSON(data, &destinationElasticsearchAPIKeySecret, "", true, true); err == nil { + u.DestinationElasticsearchAPIKeySecret = destinationElasticsearchAPIKeySecret + u.Type = DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchAPIKeySecret return nil } - usernamePassword := new(DestinationElasticsearchUsernamePassword) - if err := utils.UnmarshalJSON(data, &usernamePassword, "", true, true); err == nil { - u.UsernamePassword = usernamePassword - u.Type = DestinationElasticsearchAuthenticationMethodTypeUsernamePassword + destinationElasticsearchUsernamePassword := new(DestinationElasticsearchUsernamePassword) + if err := utils.UnmarshalJSON(data, &destinationElasticsearchUsernamePassword, "", true, true); err == nil { + u.DestinationElasticsearchUsernamePassword = destinationElasticsearchUsernamePassword + u.Type = DestinationElasticsearchAuthenticationMethodTypeDestinationElasticsearchUsernamePassword return nil } @@ -185,12 +185,12 @@ func (u *DestinationElasticsearchAuthenticationMethod) UnmarshalJSON(data []byte } func (u DestinationElasticsearchAuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.APIKeySecret != nil { - return utils.MarshalJSON(u.APIKeySecret, "", true) + if u.DestinationElasticsearchAPIKeySecret != nil { + return utils.MarshalJSON(u.DestinationElasticsearchAPIKeySecret, "", true) } - if u.UsernamePassword != nil { - return utils.MarshalJSON(u.UsernamePassword, "", true) + if u.DestinationElasticsearchUsernamePassword != nil { + return utils.MarshalJSON(u.DestinationElasticsearchUsernamePassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go b/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go index 846deb10d..a9c7d0c6d 100644 --- a/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go +++ b/internal/sdk/pkg/models/shared/destinationelasticsearchupdate.go @@ -136,8 +136,8 @@ func (o *APIKeySecret) GetMethod() DestinationElasticsearchUpdateMethod { type AuthenticationMethodType string const ( - AuthenticationMethodTypeAPIKeySecret AuthenticationMethodType = "APIKeySecret" - AuthenticationMethodTypeUsernamePassword AuthenticationMethodType = "UsernamePassword" + AuthenticationMethodTypeAPIKeySecret AuthenticationMethodType = "Api Key/Secret" + AuthenticationMethodTypeUsernamePassword AuthenticationMethodType = "Username/Password" ) type AuthenticationMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinationfirebolt.go b/internal/sdk/pkg/models/shared/destinationfirebolt.go index 6e945e045..40405b0cb 100644 --- a/internal/sdk/pkg/models/shared/destinationfirebolt.go +++ b/internal/sdk/pkg/models/shared/destinationfirebolt.go @@ -160,48 +160,48 @@ func (o *DestinationFireboltSQLInserts) GetMethod() DestinationFireboltMethod { type DestinationFireboltLoadingMethodType string const ( - DestinationFireboltLoadingMethodTypeSQLInserts DestinationFireboltLoadingMethodType = "SQLInserts" - DestinationFireboltLoadingMethodTypeExternalTableViaS3 DestinationFireboltLoadingMethodType = "ExternalTableViaS3" + DestinationFireboltLoadingMethodTypeDestinationFireboltSQLInserts DestinationFireboltLoadingMethodType = "destination-firebolt_SQL Inserts" + DestinationFireboltLoadingMethodTypeDestinationFireboltExternalTableViaS3 DestinationFireboltLoadingMethodType = "destination-firebolt_External Table via S3" ) type DestinationFireboltLoadingMethod struct { - SQLInserts *DestinationFireboltSQLInserts - ExternalTableViaS3 *DestinationFireboltExternalTableViaS3 + DestinationFireboltSQLInserts *DestinationFireboltSQLInserts + DestinationFireboltExternalTableViaS3 *DestinationFireboltExternalTableViaS3 Type DestinationFireboltLoadingMethodType } -func CreateDestinationFireboltLoadingMethodSQLInserts(sqlInserts DestinationFireboltSQLInserts) DestinationFireboltLoadingMethod { - typ := DestinationFireboltLoadingMethodTypeSQLInserts +func CreateDestinationFireboltLoadingMethodDestinationFireboltSQLInserts(destinationFireboltSQLInserts DestinationFireboltSQLInserts) DestinationFireboltLoadingMethod { + typ := DestinationFireboltLoadingMethodTypeDestinationFireboltSQLInserts return DestinationFireboltLoadingMethod{ - SQLInserts: &sqlInserts, - Type: typ, + DestinationFireboltSQLInserts: &destinationFireboltSQLInserts, + Type: typ, } } -func CreateDestinationFireboltLoadingMethodExternalTableViaS3(externalTableViaS3 DestinationFireboltExternalTableViaS3) DestinationFireboltLoadingMethod { - typ := DestinationFireboltLoadingMethodTypeExternalTableViaS3 +func CreateDestinationFireboltLoadingMethodDestinationFireboltExternalTableViaS3(destinationFireboltExternalTableViaS3 DestinationFireboltExternalTableViaS3) DestinationFireboltLoadingMethod { + typ := DestinationFireboltLoadingMethodTypeDestinationFireboltExternalTableViaS3 return DestinationFireboltLoadingMethod{ - ExternalTableViaS3: &externalTableViaS3, - Type: typ, + DestinationFireboltExternalTableViaS3: &destinationFireboltExternalTableViaS3, + Type: typ, } } func (u *DestinationFireboltLoadingMethod) UnmarshalJSON(data []byte) error { - sqlInserts := new(DestinationFireboltSQLInserts) - if err := utils.UnmarshalJSON(data, &sqlInserts, "", true, true); err == nil { - u.SQLInserts = sqlInserts - u.Type = DestinationFireboltLoadingMethodTypeSQLInserts + destinationFireboltSQLInserts := new(DestinationFireboltSQLInserts) + if err := utils.UnmarshalJSON(data, &destinationFireboltSQLInserts, "", true, true); err == nil { + u.DestinationFireboltSQLInserts = destinationFireboltSQLInserts + u.Type = DestinationFireboltLoadingMethodTypeDestinationFireboltSQLInserts return nil } - externalTableViaS3 := new(DestinationFireboltExternalTableViaS3) - if err := utils.UnmarshalJSON(data, &externalTableViaS3, "", true, true); err == nil { - u.ExternalTableViaS3 = externalTableViaS3 - u.Type = DestinationFireboltLoadingMethodTypeExternalTableViaS3 + destinationFireboltExternalTableViaS3 := new(DestinationFireboltExternalTableViaS3) + if err := utils.UnmarshalJSON(data, &destinationFireboltExternalTableViaS3, "", true, true); err == nil { + u.DestinationFireboltExternalTableViaS3 = destinationFireboltExternalTableViaS3 + u.Type = DestinationFireboltLoadingMethodTypeDestinationFireboltExternalTableViaS3 return nil } @@ -209,12 +209,12 @@ func (u *DestinationFireboltLoadingMethod) UnmarshalJSON(data []byte) error { } func (u DestinationFireboltLoadingMethod) MarshalJSON() ([]byte, error) { - if u.SQLInserts != nil { - return utils.MarshalJSON(u.SQLInserts, "", true) + if u.DestinationFireboltSQLInserts != nil { + return utils.MarshalJSON(u.DestinationFireboltSQLInserts, "", true) } - if u.ExternalTableViaS3 != nil { - return utils.MarshalJSON(u.ExternalTableViaS3, "", true) + if u.DestinationFireboltExternalTableViaS3 != nil { + return utils.MarshalJSON(u.DestinationFireboltExternalTableViaS3, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationfireboltupdate.go b/internal/sdk/pkg/models/shared/destinationfireboltupdate.go index 89f652f38..730a2ae54 100644 --- a/internal/sdk/pkg/models/shared/destinationfireboltupdate.go +++ b/internal/sdk/pkg/models/shared/destinationfireboltupdate.go @@ -136,8 +136,8 @@ func (o *SQLInserts) GetMethod() DestinationFireboltUpdateMethod { type DestinationFireboltUpdateLoadingMethodType string const ( - DestinationFireboltUpdateLoadingMethodTypeSQLInserts DestinationFireboltUpdateLoadingMethodType = "SQLInserts" - DestinationFireboltUpdateLoadingMethodTypeExternalTableViaS3 DestinationFireboltUpdateLoadingMethodType = "ExternalTableViaS3" + DestinationFireboltUpdateLoadingMethodTypeSQLInserts DestinationFireboltUpdateLoadingMethodType = "SQL Inserts" + DestinationFireboltUpdateLoadingMethodTypeExternalTableViaS3 DestinationFireboltUpdateLoadingMethodType = "External Table via S3" ) type DestinationFireboltUpdateLoadingMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinationgcs.go b/internal/sdk/pkg/models/shared/destinationgcs.go index 3d1599ce1..30f754eb6 100644 --- a/internal/sdk/pkg/models/shared/destinationgcs.go +++ b/internal/sdk/pkg/models/shared/destinationgcs.go @@ -77,30 +77,30 @@ func (o *DestinationGcsHMACKey) GetHmacKeySecret() string { type DestinationGcsAuthenticationType string const ( - DestinationGcsAuthenticationTypeHMACKey DestinationGcsAuthenticationType = "HMACKey" + DestinationGcsAuthenticationTypeDestinationGcsHMACKey DestinationGcsAuthenticationType = "destination-gcs_HMAC Key" ) type DestinationGcsAuthentication struct { - HMACKey *DestinationGcsHMACKey + DestinationGcsHMACKey *DestinationGcsHMACKey Type DestinationGcsAuthenticationType } -func CreateDestinationGcsAuthenticationHMACKey(hmacKey DestinationGcsHMACKey) DestinationGcsAuthentication { - typ := DestinationGcsAuthenticationTypeHMACKey +func CreateDestinationGcsAuthenticationDestinationGcsHMACKey(destinationGcsHMACKey DestinationGcsHMACKey) DestinationGcsAuthentication { + typ := DestinationGcsAuthenticationTypeDestinationGcsHMACKey return DestinationGcsAuthentication{ - HMACKey: &hmacKey, - Type: typ, + DestinationGcsHMACKey: &destinationGcsHMACKey, + Type: typ, } } func (u *DestinationGcsAuthentication) UnmarshalJSON(data []byte) error { - hmacKey := new(DestinationGcsHMACKey) - if err := utils.UnmarshalJSON(data, &hmacKey, "", true, true); err == nil { - u.HMACKey = hmacKey - u.Type = DestinationGcsAuthenticationTypeHMACKey + destinationGcsHMACKey := new(DestinationGcsHMACKey) + if err := utils.UnmarshalJSON(data, &destinationGcsHMACKey, "", true, true); err == nil { + u.DestinationGcsHMACKey = destinationGcsHMACKey + u.Type = DestinationGcsAuthenticationTypeDestinationGcsHMACKey return nil } @@ -108,8 +108,8 @@ func (u *DestinationGcsAuthentication) UnmarshalJSON(data []byte) error { } func (u DestinationGcsAuthentication) MarshalJSON() ([]byte, error) { - if u.HMACKey != nil { - return utils.MarshalJSON(u.HMACKey, "", true) + if u.DestinationGcsHMACKey != nil { + return utils.MarshalJSON(u.DestinationGcsHMACKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -380,48 +380,48 @@ func (o *DestinationGcsSchemasFormatNoCompression) GetCompressionType() *Destina type DestinationGcsSchemasCompressionUnionType string const ( - DestinationGcsSchemasCompressionUnionTypeNoCompression DestinationGcsSchemasCompressionUnionType = "NoCompression" - DestinationGcsSchemasCompressionUnionTypeGzip DestinationGcsSchemasCompressionUnionType = "Gzip" + DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasFormatNoCompression DestinationGcsSchemasCompressionUnionType = "destination-gcs_Schemas_format_No Compression" + DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasGZIP DestinationGcsSchemasCompressionUnionType = "destination-gcs_Schemas_GZIP" ) type DestinationGcsSchemasCompression struct { - NoCompression *DestinationGcsSchemasFormatNoCompression - Gzip *DestinationGcsSchemasGZIP + DestinationGcsSchemasFormatNoCompression *DestinationGcsSchemasFormatNoCompression + DestinationGcsSchemasGZIP *DestinationGcsSchemasGZIP Type DestinationGcsSchemasCompressionUnionType } -func CreateDestinationGcsSchemasCompressionNoCompression(noCompression DestinationGcsSchemasFormatNoCompression) DestinationGcsSchemasCompression { - typ := DestinationGcsSchemasCompressionUnionTypeNoCompression +func CreateDestinationGcsSchemasCompressionDestinationGcsSchemasFormatNoCompression(destinationGcsSchemasFormatNoCompression DestinationGcsSchemasFormatNoCompression) DestinationGcsSchemasCompression { + typ := DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasFormatNoCompression return DestinationGcsSchemasCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationGcsSchemasFormatNoCompression: &destinationGcsSchemasFormatNoCompression, + Type: typ, } } -func CreateDestinationGcsSchemasCompressionGzip(gzip DestinationGcsSchemasGZIP) DestinationGcsSchemasCompression { - typ := DestinationGcsSchemasCompressionUnionTypeGzip +func CreateDestinationGcsSchemasCompressionDestinationGcsSchemasGZIP(destinationGcsSchemasGZIP DestinationGcsSchemasGZIP) DestinationGcsSchemasCompression { + typ := DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasGZIP return DestinationGcsSchemasCompression{ - Gzip: &gzip, - Type: typ, + DestinationGcsSchemasGZIP: &destinationGcsSchemasGZIP, + Type: typ, } } func (u *DestinationGcsSchemasCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationGcsSchemasFormatNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationGcsSchemasCompressionUnionTypeNoCompression + destinationGcsSchemasFormatNoCompression := new(DestinationGcsSchemasFormatNoCompression) + if err := utils.UnmarshalJSON(data, &destinationGcsSchemasFormatNoCompression, "", true, true); err == nil { + u.DestinationGcsSchemasFormatNoCompression = destinationGcsSchemasFormatNoCompression + u.Type = DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasFormatNoCompression return nil } - gzip := new(DestinationGcsSchemasGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationGcsSchemasCompressionUnionTypeGzip + destinationGcsSchemasGZIP := new(DestinationGcsSchemasGZIP) + if err := utils.UnmarshalJSON(data, &destinationGcsSchemasGZIP, "", true, true); err == nil { + u.DestinationGcsSchemasGZIP = destinationGcsSchemasGZIP + u.Type = DestinationGcsSchemasCompressionUnionTypeDestinationGcsSchemasGZIP return nil } @@ -429,12 +429,12 @@ func (u *DestinationGcsSchemasCompression) UnmarshalJSON(data []byte) error { } func (u DestinationGcsSchemasCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationGcsSchemasFormatNoCompression != nil { + return utils.MarshalJSON(u.DestinationGcsSchemasFormatNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationGcsSchemasGZIP != nil { + return utils.MarshalJSON(u.DestinationGcsSchemasGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -593,48 +593,48 @@ func (o *DestinationGcsSchemasNoCompression) GetCompressionType() *DestinationGc type DestinationGcsCompressionUnionType string const ( - DestinationGcsCompressionUnionTypeNoCompression DestinationGcsCompressionUnionType = "NoCompression" - DestinationGcsCompressionUnionTypeGzip DestinationGcsCompressionUnionType = "Gzip" + DestinationGcsCompressionUnionTypeDestinationGcsSchemasNoCompression DestinationGcsCompressionUnionType = "destination-gcs_Schemas_No Compression" + DestinationGcsCompressionUnionTypeDestinationGcsGZIP DestinationGcsCompressionUnionType = "destination-gcs_GZIP" ) type DestinationGcsCompression struct { - NoCompression *DestinationGcsSchemasNoCompression - Gzip *DestinationGcsGZIP + DestinationGcsSchemasNoCompression *DestinationGcsSchemasNoCompression + DestinationGcsGZIP *DestinationGcsGZIP Type DestinationGcsCompressionUnionType } -func CreateDestinationGcsCompressionNoCompression(noCompression DestinationGcsSchemasNoCompression) DestinationGcsCompression { - typ := DestinationGcsCompressionUnionTypeNoCompression +func CreateDestinationGcsCompressionDestinationGcsSchemasNoCompression(destinationGcsSchemasNoCompression DestinationGcsSchemasNoCompression) DestinationGcsCompression { + typ := DestinationGcsCompressionUnionTypeDestinationGcsSchemasNoCompression return DestinationGcsCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationGcsSchemasNoCompression: &destinationGcsSchemasNoCompression, + Type: typ, } } -func CreateDestinationGcsCompressionGzip(gzip DestinationGcsGZIP) DestinationGcsCompression { - typ := DestinationGcsCompressionUnionTypeGzip +func CreateDestinationGcsCompressionDestinationGcsGZIP(destinationGcsGZIP DestinationGcsGZIP) DestinationGcsCompression { + typ := DestinationGcsCompressionUnionTypeDestinationGcsGZIP return DestinationGcsCompression{ - Gzip: &gzip, - Type: typ, + DestinationGcsGZIP: &destinationGcsGZIP, + Type: typ, } } func (u *DestinationGcsCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationGcsSchemasNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationGcsCompressionUnionTypeNoCompression + destinationGcsSchemasNoCompression := new(DestinationGcsSchemasNoCompression) + if err := utils.UnmarshalJSON(data, &destinationGcsSchemasNoCompression, "", true, true); err == nil { + u.DestinationGcsSchemasNoCompression = destinationGcsSchemasNoCompression + u.Type = DestinationGcsCompressionUnionTypeDestinationGcsSchemasNoCompression return nil } - gzip := new(DestinationGcsGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationGcsCompressionUnionTypeGzip + destinationGcsGZIP := new(DestinationGcsGZIP) + if err := utils.UnmarshalJSON(data, &destinationGcsGZIP, "", true, true); err == nil { + u.DestinationGcsGZIP = destinationGcsGZIP + u.Type = DestinationGcsCompressionUnionTypeDestinationGcsGZIP return nil } @@ -642,12 +642,12 @@ func (u *DestinationGcsCompression) UnmarshalJSON(data []byte) error { } func (u DestinationGcsCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationGcsSchemasNoCompression != nil { + return utils.MarshalJSON(u.DestinationGcsSchemasNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationGcsGZIP != nil { + return utils.MarshalJSON(u.DestinationGcsGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1067,120 +1067,120 @@ func (o *DestinationGcsNoCompression) GetCodec() *DestinationGcsCodec { type DestinationGcsCompressionCodecType string const ( - DestinationGcsCompressionCodecTypeNoCompression DestinationGcsCompressionCodecType = "NoCompression" - DestinationGcsCompressionCodecTypeDeflate DestinationGcsCompressionCodecType = "Deflate" - DestinationGcsCompressionCodecTypeBzip2 DestinationGcsCompressionCodecType = "Bzip2" - DestinationGcsCompressionCodecTypeXz DestinationGcsCompressionCodecType = "Xz" - DestinationGcsCompressionCodecTypeZstandard DestinationGcsCompressionCodecType = "Zstandard" - DestinationGcsCompressionCodecTypeSnappy DestinationGcsCompressionCodecType = "Snappy" + DestinationGcsCompressionCodecTypeDestinationGcsNoCompression DestinationGcsCompressionCodecType = "destination-gcs_No Compression" + DestinationGcsCompressionCodecTypeDestinationGcsDeflate DestinationGcsCompressionCodecType = "destination-gcs_Deflate" + DestinationGcsCompressionCodecTypeDestinationGcsBzip2 DestinationGcsCompressionCodecType = "destination-gcs_bzip2" + DestinationGcsCompressionCodecTypeDestinationGcsXz DestinationGcsCompressionCodecType = "destination-gcs_xz" + DestinationGcsCompressionCodecTypeDestinationGcsZstandard DestinationGcsCompressionCodecType = "destination-gcs_zstandard" + DestinationGcsCompressionCodecTypeDestinationGcsSnappy DestinationGcsCompressionCodecType = "destination-gcs_snappy" ) type DestinationGcsCompressionCodec struct { - NoCompression *DestinationGcsNoCompression - Deflate *DestinationGcsDeflate - Bzip2 *DestinationGcsBzip2 - Xz *DestinationGcsXz - Zstandard *DestinationGcsZstandard - Snappy *DestinationGcsSnappy + DestinationGcsNoCompression *DestinationGcsNoCompression + DestinationGcsDeflate *DestinationGcsDeflate + DestinationGcsBzip2 *DestinationGcsBzip2 + DestinationGcsXz *DestinationGcsXz + DestinationGcsZstandard *DestinationGcsZstandard + DestinationGcsSnappy *DestinationGcsSnappy Type DestinationGcsCompressionCodecType } -func CreateDestinationGcsCompressionCodecNoCompression(noCompression DestinationGcsNoCompression) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeNoCompression +func CreateDestinationGcsCompressionCodecDestinationGcsNoCompression(destinationGcsNoCompression DestinationGcsNoCompression) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsNoCompression return DestinationGcsCompressionCodec{ - NoCompression: &noCompression, - Type: typ, + DestinationGcsNoCompression: &destinationGcsNoCompression, + Type: typ, } } -func CreateDestinationGcsCompressionCodecDeflate(deflate DestinationGcsDeflate) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeDeflate +func CreateDestinationGcsCompressionCodecDestinationGcsDeflate(destinationGcsDeflate DestinationGcsDeflate) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsDeflate return DestinationGcsCompressionCodec{ - Deflate: &deflate, - Type: typ, + DestinationGcsDeflate: &destinationGcsDeflate, + Type: typ, } } -func CreateDestinationGcsCompressionCodecBzip2(bzip2 DestinationGcsBzip2) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeBzip2 +func CreateDestinationGcsCompressionCodecDestinationGcsBzip2(destinationGcsBzip2 DestinationGcsBzip2) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsBzip2 return DestinationGcsCompressionCodec{ - Bzip2: &bzip2, - Type: typ, + DestinationGcsBzip2: &destinationGcsBzip2, + Type: typ, } } -func CreateDestinationGcsCompressionCodecXz(xz DestinationGcsXz) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeXz +func CreateDestinationGcsCompressionCodecDestinationGcsXz(destinationGcsXz DestinationGcsXz) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsXz return DestinationGcsCompressionCodec{ - Xz: &xz, - Type: typ, + DestinationGcsXz: &destinationGcsXz, + Type: typ, } } -func CreateDestinationGcsCompressionCodecZstandard(zstandard DestinationGcsZstandard) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeZstandard +func CreateDestinationGcsCompressionCodecDestinationGcsZstandard(destinationGcsZstandard DestinationGcsZstandard) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsZstandard return DestinationGcsCompressionCodec{ - Zstandard: &zstandard, - Type: typ, + DestinationGcsZstandard: &destinationGcsZstandard, + Type: typ, } } -func CreateDestinationGcsCompressionCodecSnappy(snappy DestinationGcsSnappy) DestinationGcsCompressionCodec { - typ := DestinationGcsCompressionCodecTypeSnappy +func CreateDestinationGcsCompressionCodecDestinationGcsSnappy(destinationGcsSnappy DestinationGcsSnappy) DestinationGcsCompressionCodec { + typ := DestinationGcsCompressionCodecTypeDestinationGcsSnappy return DestinationGcsCompressionCodec{ - Snappy: &snappy, - Type: typ, + DestinationGcsSnappy: &destinationGcsSnappy, + Type: typ, } } func (u *DestinationGcsCompressionCodec) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationGcsNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationGcsCompressionCodecTypeNoCompression + destinationGcsNoCompression := new(DestinationGcsNoCompression) + if err := utils.UnmarshalJSON(data, &destinationGcsNoCompression, "", true, true); err == nil { + u.DestinationGcsNoCompression = destinationGcsNoCompression + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsNoCompression return nil } - bzip2 := new(DestinationGcsBzip2) - if err := utils.UnmarshalJSON(data, &bzip2, "", true, true); err == nil { - u.Bzip2 = bzip2 - u.Type = DestinationGcsCompressionCodecTypeBzip2 + destinationGcsBzip2 := new(DestinationGcsBzip2) + if err := utils.UnmarshalJSON(data, &destinationGcsBzip2, "", true, true); err == nil { + u.DestinationGcsBzip2 = destinationGcsBzip2 + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsBzip2 return nil } - snappy := new(DestinationGcsSnappy) - if err := utils.UnmarshalJSON(data, &snappy, "", true, true); err == nil { - u.Snappy = snappy - u.Type = DestinationGcsCompressionCodecTypeSnappy + destinationGcsSnappy := new(DestinationGcsSnappy) + if err := utils.UnmarshalJSON(data, &destinationGcsSnappy, "", true, true); err == nil { + u.DestinationGcsSnappy = destinationGcsSnappy + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsSnappy return nil } - deflate := new(DestinationGcsDeflate) - if err := utils.UnmarshalJSON(data, &deflate, "", true, true); err == nil { - u.Deflate = deflate - u.Type = DestinationGcsCompressionCodecTypeDeflate + destinationGcsDeflate := new(DestinationGcsDeflate) + if err := utils.UnmarshalJSON(data, &destinationGcsDeflate, "", true, true); err == nil { + u.DestinationGcsDeflate = destinationGcsDeflate + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsDeflate return nil } - xz := new(DestinationGcsXz) - if err := utils.UnmarshalJSON(data, &xz, "", true, true); err == nil { - u.Xz = xz - u.Type = DestinationGcsCompressionCodecTypeXz + destinationGcsXz := new(DestinationGcsXz) + if err := utils.UnmarshalJSON(data, &destinationGcsXz, "", true, true); err == nil { + u.DestinationGcsXz = destinationGcsXz + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsXz return nil } - zstandard := new(DestinationGcsZstandard) - if err := utils.UnmarshalJSON(data, &zstandard, "", true, true); err == nil { - u.Zstandard = zstandard - u.Type = DestinationGcsCompressionCodecTypeZstandard + destinationGcsZstandard := new(DestinationGcsZstandard) + if err := utils.UnmarshalJSON(data, &destinationGcsZstandard, "", true, true); err == nil { + u.DestinationGcsZstandard = destinationGcsZstandard + u.Type = DestinationGcsCompressionCodecTypeDestinationGcsZstandard return nil } @@ -1188,28 +1188,28 @@ func (u *DestinationGcsCompressionCodec) UnmarshalJSON(data []byte) error { } func (u DestinationGcsCompressionCodec) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationGcsNoCompression != nil { + return utils.MarshalJSON(u.DestinationGcsNoCompression, "", true) } - if u.Deflate != nil { - return utils.MarshalJSON(u.Deflate, "", true) + if u.DestinationGcsDeflate != nil { + return utils.MarshalJSON(u.DestinationGcsDeflate, "", true) } - if u.Bzip2 != nil { - return utils.MarshalJSON(u.Bzip2, "", true) + if u.DestinationGcsBzip2 != nil { + return utils.MarshalJSON(u.DestinationGcsBzip2, "", true) } - if u.Xz != nil { - return utils.MarshalJSON(u.Xz, "", true) + if u.DestinationGcsXz != nil { + return utils.MarshalJSON(u.DestinationGcsXz, "", true) } - if u.Zstandard != nil { - return utils.MarshalJSON(u.Zstandard, "", true) + if u.DestinationGcsZstandard != nil { + return utils.MarshalJSON(u.DestinationGcsZstandard, "", true) } - if u.Snappy != nil { - return utils.MarshalJSON(u.Snappy, "", true) + if u.DestinationGcsSnappy != nil { + return utils.MarshalJSON(u.DestinationGcsSnappy, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1274,84 +1274,84 @@ func (o *DestinationGcsAvroApacheAvro) GetFormatType() *DestinationGcsFormatType type DestinationGcsOutputFormatType string const ( - DestinationGcsOutputFormatTypeAvroApacheAvro DestinationGcsOutputFormatType = "AvroApacheAvro" - DestinationGcsOutputFormatTypeCSVCommaSeparatedValues DestinationGcsOutputFormatType = "CSVCommaSeparatedValues" - DestinationGcsOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationGcsOutputFormatType = "JSONLinesNewlineDelimitedJSON" - DestinationGcsOutputFormatTypeParquetColumnarStorage DestinationGcsOutputFormatType = "ParquetColumnarStorage" + DestinationGcsOutputFormatTypeDestinationGcsAvroApacheAvro DestinationGcsOutputFormatType = "destination-gcs_Avro: Apache Avro" + DestinationGcsOutputFormatTypeDestinationGcsCSVCommaSeparatedValues DestinationGcsOutputFormatType = "destination-gcs_CSV: Comma-Separated Values" + DestinationGcsOutputFormatTypeDestinationGcsJSONLinesNewlineDelimitedJSON DestinationGcsOutputFormatType = "destination-gcs_JSON Lines: newline-delimited JSON" + DestinationGcsOutputFormatTypeDestinationGcsParquetColumnarStorage DestinationGcsOutputFormatType = "destination-gcs_Parquet: Columnar Storage" ) type DestinationGcsOutputFormat struct { - AvroApacheAvro *DestinationGcsAvroApacheAvro - CSVCommaSeparatedValues *DestinationGcsCSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationGcsJSONLinesNewlineDelimitedJSON - ParquetColumnarStorage *DestinationGcsParquetColumnarStorage + DestinationGcsAvroApacheAvro *DestinationGcsAvroApacheAvro + DestinationGcsCSVCommaSeparatedValues *DestinationGcsCSVCommaSeparatedValues + DestinationGcsJSONLinesNewlineDelimitedJSON *DestinationGcsJSONLinesNewlineDelimitedJSON + DestinationGcsParquetColumnarStorage *DestinationGcsParquetColumnarStorage Type DestinationGcsOutputFormatType } -func CreateDestinationGcsOutputFormatAvroApacheAvro(avroApacheAvro DestinationGcsAvroApacheAvro) DestinationGcsOutputFormat { - typ := DestinationGcsOutputFormatTypeAvroApacheAvro +func CreateDestinationGcsOutputFormatDestinationGcsAvroApacheAvro(destinationGcsAvroApacheAvro DestinationGcsAvroApacheAvro) DestinationGcsOutputFormat { + typ := DestinationGcsOutputFormatTypeDestinationGcsAvroApacheAvro return DestinationGcsOutputFormat{ - AvroApacheAvro: &avroApacheAvro, - Type: typ, + DestinationGcsAvroApacheAvro: &destinationGcsAvroApacheAvro, + Type: typ, } } -func CreateDestinationGcsOutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues DestinationGcsCSVCommaSeparatedValues) DestinationGcsOutputFormat { - typ := DestinationGcsOutputFormatTypeCSVCommaSeparatedValues +func CreateDestinationGcsOutputFormatDestinationGcsCSVCommaSeparatedValues(destinationGcsCSVCommaSeparatedValues DestinationGcsCSVCommaSeparatedValues) DestinationGcsOutputFormat { + typ := DestinationGcsOutputFormatTypeDestinationGcsCSVCommaSeparatedValues return DestinationGcsOutputFormat{ - CSVCommaSeparatedValues: &csvCommaSeparatedValues, - Type: typ, + DestinationGcsCSVCommaSeparatedValues: &destinationGcsCSVCommaSeparatedValues, + Type: typ, } } -func CreateDestinationGcsOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationGcsJSONLinesNewlineDelimitedJSON) DestinationGcsOutputFormat { - typ := DestinationGcsOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationGcsOutputFormatDestinationGcsJSONLinesNewlineDelimitedJSON(destinationGcsJSONLinesNewlineDelimitedJSON DestinationGcsJSONLinesNewlineDelimitedJSON) DestinationGcsOutputFormat { + typ := DestinationGcsOutputFormatTypeDestinationGcsJSONLinesNewlineDelimitedJSON return DestinationGcsOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationGcsJSONLinesNewlineDelimitedJSON: &destinationGcsJSONLinesNewlineDelimitedJSON, + Type: typ, } } -func CreateDestinationGcsOutputFormatParquetColumnarStorage(parquetColumnarStorage DestinationGcsParquetColumnarStorage) DestinationGcsOutputFormat { - typ := DestinationGcsOutputFormatTypeParquetColumnarStorage +func CreateDestinationGcsOutputFormatDestinationGcsParquetColumnarStorage(destinationGcsParquetColumnarStorage DestinationGcsParquetColumnarStorage) DestinationGcsOutputFormat { + typ := DestinationGcsOutputFormatTypeDestinationGcsParquetColumnarStorage return DestinationGcsOutputFormat{ - ParquetColumnarStorage: &parquetColumnarStorage, - Type: typ, + DestinationGcsParquetColumnarStorage: &destinationGcsParquetColumnarStorage, + Type: typ, } } func (u *DestinationGcsOutputFormat) UnmarshalJSON(data []byte) error { - avroApacheAvro := new(DestinationGcsAvroApacheAvro) - if err := utils.UnmarshalJSON(data, &avroApacheAvro, "", true, true); err == nil { - u.AvroApacheAvro = avroApacheAvro - u.Type = DestinationGcsOutputFormatTypeAvroApacheAvro + destinationGcsAvroApacheAvro := new(DestinationGcsAvroApacheAvro) + if err := utils.UnmarshalJSON(data, &destinationGcsAvroApacheAvro, "", true, true); err == nil { + u.DestinationGcsAvroApacheAvro = destinationGcsAvroApacheAvro + u.Type = DestinationGcsOutputFormatTypeDestinationGcsAvroApacheAvro return nil } - jsonLinesNewlineDelimitedJSON := new(DestinationGcsJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationGcsOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationGcsJSONLinesNewlineDelimitedJSON := new(DestinationGcsJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationGcsJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationGcsJSONLinesNewlineDelimitedJSON = destinationGcsJSONLinesNewlineDelimitedJSON + u.Type = DestinationGcsOutputFormatTypeDestinationGcsJSONLinesNewlineDelimitedJSON return nil } - csvCommaSeparatedValues := new(DestinationGcsCSVCommaSeparatedValues) - if err := utils.UnmarshalJSON(data, &csvCommaSeparatedValues, "", true, true); err == nil { - u.CSVCommaSeparatedValues = csvCommaSeparatedValues - u.Type = DestinationGcsOutputFormatTypeCSVCommaSeparatedValues + destinationGcsCSVCommaSeparatedValues := new(DestinationGcsCSVCommaSeparatedValues) + if err := utils.UnmarshalJSON(data, &destinationGcsCSVCommaSeparatedValues, "", true, true); err == nil { + u.DestinationGcsCSVCommaSeparatedValues = destinationGcsCSVCommaSeparatedValues + u.Type = DestinationGcsOutputFormatTypeDestinationGcsCSVCommaSeparatedValues return nil } - parquetColumnarStorage := new(DestinationGcsParquetColumnarStorage) - if err := utils.UnmarshalJSON(data, &parquetColumnarStorage, "", true, true); err == nil { - u.ParquetColumnarStorage = parquetColumnarStorage - u.Type = DestinationGcsOutputFormatTypeParquetColumnarStorage + destinationGcsParquetColumnarStorage := new(DestinationGcsParquetColumnarStorage) + if err := utils.UnmarshalJSON(data, &destinationGcsParquetColumnarStorage, "", true, true); err == nil { + u.DestinationGcsParquetColumnarStorage = destinationGcsParquetColumnarStorage + u.Type = DestinationGcsOutputFormatTypeDestinationGcsParquetColumnarStorage return nil } @@ -1359,20 +1359,20 @@ func (u *DestinationGcsOutputFormat) UnmarshalJSON(data []byte) error { } func (u DestinationGcsOutputFormat) MarshalJSON() ([]byte, error) { - if u.AvroApacheAvro != nil { - return utils.MarshalJSON(u.AvroApacheAvro, "", true) + if u.DestinationGcsAvroApacheAvro != nil { + return utils.MarshalJSON(u.DestinationGcsAvroApacheAvro, "", true) } - if u.CSVCommaSeparatedValues != nil { - return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) + if u.DestinationGcsCSVCommaSeparatedValues != nil { + return utils.MarshalJSON(u.DestinationGcsCSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationGcsJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationGcsJSONLinesNewlineDelimitedJSON, "", true) } - if u.ParquetColumnarStorage != nil { - return utils.MarshalJSON(u.ParquetColumnarStorage, "", true) + if u.DestinationGcsParquetColumnarStorage != nil { + return utils.MarshalJSON(u.DestinationGcsParquetColumnarStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationgcsupdate.go b/internal/sdk/pkg/models/shared/destinationgcsupdate.go index 95af99e7f..9109750fc 100644 --- a/internal/sdk/pkg/models/shared/destinationgcsupdate.go +++ b/internal/sdk/pkg/models/shared/destinationgcsupdate.go @@ -77,7 +77,7 @@ func (o *HMACKey) GetHmacKeySecret() string { type AuthenticationUnionType string const ( - AuthenticationUnionTypeHMACKey AuthenticationUnionType = "HMACKey" + AuthenticationUnionTypeHMACKey AuthenticationUnionType = "HMAC Key" ) type Authentication struct { @@ -356,48 +356,48 @@ func (o *DestinationGcsUpdateSchemasNoCompression) GetCompressionType() *Destina type DestinationGcsUpdateCompressionUnionType string const ( - DestinationGcsUpdateCompressionUnionTypeNoCompression DestinationGcsUpdateCompressionUnionType = "NoCompression" - DestinationGcsUpdateCompressionUnionTypeGzip DestinationGcsUpdateCompressionUnionType = "Gzip" + DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateSchemasNoCompression DestinationGcsUpdateCompressionUnionType = "destination-gcs-update_Schemas_No Compression" + DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateGZIP DestinationGcsUpdateCompressionUnionType = "destination-gcs-update_GZIP" ) type DestinationGcsUpdateCompression struct { - NoCompression *DestinationGcsUpdateSchemasNoCompression - Gzip *DestinationGcsUpdateGZIP + DestinationGcsUpdateSchemasNoCompression *DestinationGcsUpdateSchemasNoCompression + DestinationGcsUpdateGZIP *DestinationGcsUpdateGZIP Type DestinationGcsUpdateCompressionUnionType } -func CreateDestinationGcsUpdateCompressionNoCompression(noCompression DestinationGcsUpdateSchemasNoCompression) DestinationGcsUpdateCompression { - typ := DestinationGcsUpdateCompressionUnionTypeNoCompression +func CreateDestinationGcsUpdateCompressionDestinationGcsUpdateSchemasNoCompression(destinationGcsUpdateSchemasNoCompression DestinationGcsUpdateSchemasNoCompression) DestinationGcsUpdateCompression { + typ := DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateSchemasNoCompression return DestinationGcsUpdateCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationGcsUpdateSchemasNoCompression: &destinationGcsUpdateSchemasNoCompression, + Type: typ, } } -func CreateDestinationGcsUpdateCompressionGzip(gzip DestinationGcsUpdateGZIP) DestinationGcsUpdateCompression { - typ := DestinationGcsUpdateCompressionUnionTypeGzip +func CreateDestinationGcsUpdateCompressionDestinationGcsUpdateGZIP(destinationGcsUpdateGZIP DestinationGcsUpdateGZIP) DestinationGcsUpdateCompression { + typ := DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateGZIP return DestinationGcsUpdateCompression{ - Gzip: &gzip, - Type: typ, + DestinationGcsUpdateGZIP: &destinationGcsUpdateGZIP, + Type: typ, } } func (u *DestinationGcsUpdateCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationGcsUpdateSchemasNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationGcsUpdateCompressionUnionTypeNoCompression + destinationGcsUpdateSchemasNoCompression := new(DestinationGcsUpdateSchemasNoCompression) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateSchemasNoCompression, "", true, true); err == nil { + u.DestinationGcsUpdateSchemasNoCompression = destinationGcsUpdateSchemasNoCompression + u.Type = DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateSchemasNoCompression return nil } - gzip := new(DestinationGcsUpdateGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationGcsUpdateCompressionUnionTypeGzip + destinationGcsUpdateGZIP := new(DestinationGcsUpdateGZIP) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateGZIP, "", true, true); err == nil { + u.DestinationGcsUpdateGZIP = destinationGcsUpdateGZIP + u.Type = DestinationGcsUpdateCompressionUnionTypeDestinationGcsUpdateGZIP return nil } @@ -405,12 +405,12 @@ func (u *DestinationGcsUpdateCompression) UnmarshalJSON(data []byte) error { } func (u DestinationGcsUpdateCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationGcsUpdateSchemasNoCompression != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateSchemasNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationGcsUpdateGZIP != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -569,23 +569,23 @@ func (o *DestinationGcsUpdateNoCompression) GetCompressionType() *CompressionTyp type CompressionUnionType string const ( - CompressionUnionTypeNoCompression CompressionUnionType = "NoCompression" - CompressionUnionTypeGzip CompressionUnionType = "Gzip" + CompressionUnionTypeDestinationGcsUpdateNoCompression CompressionUnionType = "destination-gcs-update_No Compression" + CompressionUnionTypeGzip CompressionUnionType = "GZIP" ) type Compression struct { - NoCompression *DestinationGcsUpdateNoCompression - Gzip *Gzip + DestinationGcsUpdateNoCompression *DestinationGcsUpdateNoCompression + Gzip *Gzip Type CompressionUnionType } -func CreateCompressionNoCompression(noCompression DestinationGcsUpdateNoCompression) Compression { - typ := CompressionUnionTypeNoCompression +func CreateCompressionDestinationGcsUpdateNoCompression(destinationGcsUpdateNoCompression DestinationGcsUpdateNoCompression) Compression { + typ := CompressionUnionTypeDestinationGcsUpdateNoCompression return Compression{ - NoCompression: &noCompression, - Type: typ, + DestinationGcsUpdateNoCompression: &destinationGcsUpdateNoCompression, + Type: typ, } } @@ -600,10 +600,10 @@ func CreateCompressionGzip(gzip Gzip) Compression { func (u *Compression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationGcsUpdateNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = CompressionUnionTypeNoCompression + destinationGcsUpdateNoCompression := new(DestinationGcsUpdateNoCompression) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateNoCompression, "", true, true); err == nil { + u.DestinationGcsUpdateNoCompression = destinationGcsUpdateNoCompression + u.Type = CompressionUnionTypeDestinationGcsUpdateNoCompression return nil } @@ -618,8 +618,8 @@ func (u *Compression) UnmarshalJSON(data []byte) error { } func (u Compression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationGcsUpdateNoCompression != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateNoCompression, "", true) } if u.Gzip != nil { @@ -1043,12 +1043,12 @@ func (o *NoCompression) GetCodec() *Codec { type CompressionCodecType string const ( - CompressionCodecTypeNoCompression CompressionCodecType = "NoCompression" + CompressionCodecTypeNoCompression CompressionCodecType = "No Compression" CompressionCodecTypeDeflate CompressionCodecType = "Deflate" - CompressionCodecTypeBzip2 CompressionCodecType = "Bzip2" - CompressionCodecTypeXz CompressionCodecType = "Xz" - CompressionCodecTypeZstandard CompressionCodecType = "Zstandard" - CompressionCodecTypeSnappy CompressionCodecType = "Snappy" + CompressionCodecTypeBzip2 CompressionCodecType = "bzip2" + CompressionCodecTypeXz CompressionCodecType = "xz" + CompressionCodecTypeZstandard CompressionCodecType = "zstandard" + CompressionCodecTypeSnappy CompressionCodecType = "snappy" ) type CompressionCodec struct { @@ -1250,17 +1250,17 @@ func (o *AvroApacheAvro) GetFormatType() *DestinationGcsUpdateFormatType { type DestinationGcsUpdateOutputFormatType string const ( - DestinationGcsUpdateOutputFormatTypeAvroApacheAvro DestinationGcsUpdateOutputFormatType = "AvroApacheAvro" - DestinationGcsUpdateOutputFormatTypeCSVCommaSeparatedValues DestinationGcsUpdateOutputFormatType = "CSVCommaSeparatedValues" - DestinationGcsUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationGcsUpdateOutputFormatType = "JSONLinesNewlineDelimitedJSON" - DestinationGcsUpdateOutputFormatTypeParquetColumnarStorage DestinationGcsUpdateOutputFormatType = "ParquetColumnarStorage" + DestinationGcsUpdateOutputFormatTypeAvroApacheAvro DestinationGcsUpdateOutputFormatType = "Avro: Apache Avro" + DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateCSVCommaSeparatedValues DestinationGcsUpdateOutputFormatType = "destination-gcs-update_CSV: Comma-Separated Values" + DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateJSONLinesNewlineDelimitedJSON DestinationGcsUpdateOutputFormatType = "destination-gcs-update_JSON Lines: newline-delimited JSON" + DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateParquetColumnarStorage DestinationGcsUpdateOutputFormatType = "destination-gcs-update_Parquet: Columnar Storage" ) type DestinationGcsUpdateOutputFormat struct { - AvroApacheAvro *AvroApacheAvro - CSVCommaSeparatedValues *DestinationGcsUpdateCSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationGcsUpdateJSONLinesNewlineDelimitedJSON - ParquetColumnarStorage *DestinationGcsUpdateParquetColumnarStorage + AvroApacheAvro *AvroApacheAvro + DestinationGcsUpdateCSVCommaSeparatedValues *DestinationGcsUpdateCSVCommaSeparatedValues + DestinationGcsUpdateJSONLinesNewlineDelimitedJSON *DestinationGcsUpdateJSONLinesNewlineDelimitedJSON + DestinationGcsUpdateParquetColumnarStorage *DestinationGcsUpdateParquetColumnarStorage Type DestinationGcsUpdateOutputFormatType } @@ -1274,30 +1274,30 @@ func CreateDestinationGcsUpdateOutputFormatAvroApacheAvro(avroApacheAvro AvroApa } } -func CreateDestinationGcsUpdateOutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues DestinationGcsUpdateCSVCommaSeparatedValues) DestinationGcsUpdateOutputFormat { - typ := DestinationGcsUpdateOutputFormatTypeCSVCommaSeparatedValues +func CreateDestinationGcsUpdateOutputFormatDestinationGcsUpdateCSVCommaSeparatedValues(destinationGcsUpdateCSVCommaSeparatedValues DestinationGcsUpdateCSVCommaSeparatedValues) DestinationGcsUpdateOutputFormat { + typ := DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateCSVCommaSeparatedValues return DestinationGcsUpdateOutputFormat{ - CSVCommaSeparatedValues: &csvCommaSeparatedValues, - Type: typ, + DestinationGcsUpdateCSVCommaSeparatedValues: &destinationGcsUpdateCSVCommaSeparatedValues, + Type: typ, } } -func CreateDestinationGcsUpdateOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationGcsUpdateJSONLinesNewlineDelimitedJSON) DestinationGcsUpdateOutputFormat { - typ := DestinationGcsUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationGcsUpdateOutputFormatDestinationGcsUpdateJSONLinesNewlineDelimitedJSON(destinationGcsUpdateJSONLinesNewlineDelimitedJSON DestinationGcsUpdateJSONLinesNewlineDelimitedJSON) DestinationGcsUpdateOutputFormat { + typ := DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateJSONLinesNewlineDelimitedJSON return DestinationGcsUpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationGcsUpdateJSONLinesNewlineDelimitedJSON: &destinationGcsUpdateJSONLinesNewlineDelimitedJSON, + Type: typ, } } -func CreateDestinationGcsUpdateOutputFormatParquetColumnarStorage(parquetColumnarStorage DestinationGcsUpdateParquetColumnarStorage) DestinationGcsUpdateOutputFormat { - typ := DestinationGcsUpdateOutputFormatTypeParquetColumnarStorage +func CreateDestinationGcsUpdateOutputFormatDestinationGcsUpdateParquetColumnarStorage(destinationGcsUpdateParquetColumnarStorage DestinationGcsUpdateParquetColumnarStorage) DestinationGcsUpdateOutputFormat { + typ := DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateParquetColumnarStorage return DestinationGcsUpdateOutputFormat{ - ParquetColumnarStorage: &parquetColumnarStorage, - Type: typ, + DestinationGcsUpdateParquetColumnarStorage: &destinationGcsUpdateParquetColumnarStorage, + Type: typ, } } @@ -1310,24 +1310,24 @@ func (u *DestinationGcsUpdateOutputFormat) UnmarshalJSON(data []byte) error { return nil } - jsonLinesNewlineDelimitedJSON := new(DestinationGcsUpdateJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationGcsUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationGcsUpdateJSONLinesNewlineDelimitedJSON := new(DestinationGcsUpdateJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationGcsUpdateJSONLinesNewlineDelimitedJSON = destinationGcsUpdateJSONLinesNewlineDelimitedJSON + u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateJSONLinesNewlineDelimitedJSON return nil } - csvCommaSeparatedValues := new(DestinationGcsUpdateCSVCommaSeparatedValues) - if err := utils.UnmarshalJSON(data, &csvCommaSeparatedValues, "", true, true); err == nil { - u.CSVCommaSeparatedValues = csvCommaSeparatedValues - u.Type = DestinationGcsUpdateOutputFormatTypeCSVCommaSeparatedValues + destinationGcsUpdateCSVCommaSeparatedValues := new(DestinationGcsUpdateCSVCommaSeparatedValues) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateCSVCommaSeparatedValues, "", true, true); err == nil { + u.DestinationGcsUpdateCSVCommaSeparatedValues = destinationGcsUpdateCSVCommaSeparatedValues + u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateCSVCommaSeparatedValues return nil } - parquetColumnarStorage := new(DestinationGcsUpdateParquetColumnarStorage) - if err := utils.UnmarshalJSON(data, &parquetColumnarStorage, "", true, true); err == nil { - u.ParquetColumnarStorage = parquetColumnarStorage - u.Type = DestinationGcsUpdateOutputFormatTypeParquetColumnarStorage + destinationGcsUpdateParquetColumnarStorage := new(DestinationGcsUpdateParquetColumnarStorage) + if err := utils.UnmarshalJSON(data, &destinationGcsUpdateParquetColumnarStorage, "", true, true); err == nil { + u.DestinationGcsUpdateParquetColumnarStorage = destinationGcsUpdateParquetColumnarStorage + u.Type = DestinationGcsUpdateOutputFormatTypeDestinationGcsUpdateParquetColumnarStorage return nil } @@ -1339,16 +1339,16 @@ func (u DestinationGcsUpdateOutputFormat) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.AvroApacheAvro, "", true) } - if u.CSVCommaSeparatedValues != nil { - return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) + if u.DestinationGcsUpdateCSVCommaSeparatedValues != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateCSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationGcsUpdateJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateJSONLinesNewlineDelimitedJSON, "", true) } - if u.ParquetColumnarStorage != nil { - return utils.MarshalJSON(u.ParquetColumnarStorage, "", true) + if u.DestinationGcsUpdateParquetColumnarStorage != nil { + return utils.MarshalJSON(u.DestinationGcsUpdateParquetColumnarStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationlangchain.go b/internal/sdk/pkg/models/shared/destinationlangchain.go index 020914f76..27443e36c 100644 --- a/internal/sdk/pkg/models/shared/destinationlangchain.go +++ b/internal/sdk/pkg/models/shared/destinationlangchain.go @@ -132,48 +132,48 @@ func (o *DestinationLangchainOpenAI) GetOpenaiKey() string { type DestinationLangchainEmbeddingType string const ( - DestinationLangchainEmbeddingTypeOpenAI DestinationLangchainEmbeddingType = "OpenAI" - DestinationLangchainEmbeddingTypeFake DestinationLangchainEmbeddingType = "Fake" + DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI DestinationLangchainEmbeddingType = "destination-langchain_OpenAI" + DestinationLangchainEmbeddingTypeDestinationLangchainFake DestinationLangchainEmbeddingType = "destination-langchain_Fake" ) type DestinationLangchainEmbedding struct { - OpenAI *DestinationLangchainOpenAI - Fake *DestinationLangchainFake + DestinationLangchainOpenAI *DestinationLangchainOpenAI + DestinationLangchainFake *DestinationLangchainFake Type DestinationLangchainEmbeddingType } -func CreateDestinationLangchainEmbeddingOpenAI(openAI DestinationLangchainOpenAI) DestinationLangchainEmbedding { - typ := DestinationLangchainEmbeddingTypeOpenAI +func CreateDestinationLangchainEmbeddingDestinationLangchainOpenAI(destinationLangchainOpenAI DestinationLangchainOpenAI) DestinationLangchainEmbedding { + typ := DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI return DestinationLangchainEmbedding{ - OpenAI: &openAI, - Type: typ, + DestinationLangchainOpenAI: &destinationLangchainOpenAI, + Type: typ, } } -func CreateDestinationLangchainEmbeddingFake(fake DestinationLangchainFake) DestinationLangchainEmbedding { - typ := DestinationLangchainEmbeddingTypeFake +func CreateDestinationLangchainEmbeddingDestinationLangchainFake(destinationLangchainFake DestinationLangchainFake) DestinationLangchainEmbedding { + typ := DestinationLangchainEmbeddingTypeDestinationLangchainFake return DestinationLangchainEmbedding{ - Fake: &fake, - Type: typ, + DestinationLangchainFake: &destinationLangchainFake, + Type: typ, } } func (u *DestinationLangchainEmbedding) UnmarshalJSON(data []byte) error { - fake := new(DestinationLangchainFake) - if err := utils.UnmarshalJSON(data, &fake, "", true, true); err == nil { - u.Fake = fake - u.Type = DestinationLangchainEmbeddingTypeFake + destinationLangchainFake := new(DestinationLangchainFake) + if err := utils.UnmarshalJSON(data, &destinationLangchainFake, "", true, true); err == nil { + u.DestinationLangchainFake = destinationLangchainFake + u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainFake return nil } - openAI := new(DestinationLangchainOpenAI) - if err := utils.UnmarshalJSON(data, &openAI, "", true, true); err == nil { - u.OpenAI = openAI - u.Type = DestinationLangchainEmbeddingTypeOpenAI + destinationLangchainOpenAI := new(DestinationLangchainOpenAI) + if err := utils.UnmarshalJSON(data, &destinationLangchainOpenAI, "", true, true); err == nil { + u.DestinationLangchainOpenAI = destinationLangchainOpenAI + u.Type = DestinationLangchainEmbeddingTypeDestinationLangchainOpenAI return nil } @@ -181,12 +181,12 @@ func (u *DestinationLangchainEmbedding) UnmarshalJSON(data []byte) error { } func (u DestinationLangchainEmbedding) MarshalJSON() ([]byte, error) { - if u.OpenAI != nil { - return utils.MarshalJSON(u.OpenAI, "", true) + if u.DestinationLangchainOpenAI != nil { + return utils.MarshalJSON(u.DestinationLangchainOpenAI, "", true) } - if u.Fake != nil { - return utils.MarshalJSON(u.Fake, "", true) + if u.DestinationLangchainFake != nil { + return utils.MarshalJSON(u.DestinationLangchainFake, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -380,66 +380,66 @@ func (o *DestinationLangchainPinecone) GetPineconeKey() string { type DestinationLangchainIndexingType string const ( - DestinationLangchainIndexingTypePinecone DestinationLangchainIndexingType = "Pinecone" - DestinationLangchainIndexingTypeDocArrayHnswSearch DestinationLangchainIndexingType = "DocArrayHnswSearch" - DestinationLangchainIndexingTypeChromaLocalPersistance DestinationLangchainIndexingType = "ChromaLocalPersistance" + DestinationLangchainIndexingTypeDestinationLangchainPinecone DestinationLangchainIndexingType = "destination-langchain_Pinecone" + DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch DestinationLangchainIndexingType = "destination-langchain_DocArrayHnswSearch" + DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance DestinationLangchainIndexingType = "destination-langchain_Chroma (local persistance)" ) type DestinationLangchainIndexing struct { - Pinecone *DestinationLangchainPinecone - DocArrayHnswSearch *DestinationLangchainDocArrayHnswSearch - ChromaLocalPersistance *DestinationLangchainChromaLocalPersistance + DestinationLangchainPinecone *DestinationLangchainPinecone + DestinationLangchainDocArrayHnswSearch *DestinationLangchainDocArrayHnswSearch + DestinationLangchainChromaLocalPersistance *DestinationLangchainChromaLocalPersistance Type DestinationLangchainIndexingType } -func CreateDestinationLangchainIndexingPinecone(pinecone DestinationLangchainPinecone) DestinationLangchainIndexing { - typ := DestinationLangchainIndexingTypePinecone +func CreateDestinationLangchainIndexingDestinationLangchainPinecone(destinationLangchainPinecone DestinationLangchainPinecone) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainPinecone return DestinationLangchainIndexing{ - Pinecone: &pinecone, - Type: typ, + DestinationLangchainPinecone: &destinationLangchainPinecone, + Type: typ, } } -func CreateDestinationLangchainIndexingDocArrayHnswSearch(docArrayHnswSearch DestinationLangchainDocArrayHnswSearch) DestinationLangchainIndexing { - typ := DestinationLangchainIndexingTypeDocArrayHnswSearch +func CreateDestinationLangchainIndexingDestinationLangchainDocArrayHnswSearch(destinationLangchainDocArrayHnswSearch DestinationLangchainDocArrayHnswSearch) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch return DestinationLangchainIndexing{ - DocArrayHnswSearch: &docArrayHnswSearch, - Type: typ, + DestinationLangchainDocArrayHnswSearch: &destinationLangchainDocArrayHnswSearch, + Type: typ, } } -func CreateDestinationLangchainIndexingChromaLocalPersistance(chromaLocalPersistance DestinationLangchainChromaLocalPersistance) DestinationLangchainIndexing { - typ := DestinationLangchainIndexingTypeChromaLocalPersistance +func CreateDestinationLangchainIndexingDestinationLangchainChromaLocalPersistance(destinationLangchainChromaLocalPersistance DestinationLangchainChromaLocalPersistance) DestinationLangchainIndexing { + typ := DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance return DestinationLangchainIndexing{ - ChromaLocalPersistance: &chromaLocalPersistance, - Type: typ, + DestinationLangchainChromaLocalPersistance: &destinationLangchainChromaLocalPersistance, + Type: typ, } } func (u *DestinationLangchainIndexing) UnmarshalJSON(data []byte) error { - docArrayHnswSearch := new(DestinationLangchainDocArrayHnswSearch) - if err := utils.UnmarshalJSON(data, &docArrayHnswSearch, "", true, true); err == nil { - u.DocArrayHnswSearch = docArrayHnswSearch - u.Type = DestinationLangchainIndexingTypeDocArrayHnswSearch + destinationLangchainDocArrayHnswSearch := new(DestinationLangchainDocArrayHnswSearch) + if err := utils.UnmarshalJSON(data, &destinationLangchainDocArrayHnswSearch, "", true, true); err == nil { + u.DestinationLangchainDocArrayHnswSearch = destinationLangchainDocArrayHnswSearch + u.Type = DestinationLangchainIndexingTypeDestinationLangchainDocArrayHnswSearch return nil } - chromaLocalPersistance := new(DestinationLangchainChromaLocalPersistance) - if err := utils.UnmarshalJSON(data, &chromaLocalPersistance, "", true, true); err == nil { - u.ChromaLocalPersistance = chromaLocalPersistance - u.Type = DestinationLangchainIndexingTypeChromaLocalPersistance + destinationLangchainChromaLocalPersistance := new(DestinationLangchainChromaLocalPersistance) + if err := utils.UnmarshalJSON(data, &destinationLangchainChromaLocalPersistance, "", true, true); err == nil { + u.DestinationLangchainChromaLocalPersistance = destinationLangchainChromaLocalPersistance + u.Type = DestinationLangchainIndexingTypeDestinationLangchainChromaLocalPersistance return nil } - pinecone := new(DestinationLangchainPinecone) - if err := utils.UnmarshalJSON(data, &pinecone, "", true, true); err == nil { - u.Pinecone = pinecone - u.Type = DestinationLangchainIndexingTypePinecone + destinationLangchainPinecone := new(DestinationLangchainPinecone) + if err := utils.UnmarshalJSON(data, &destinationLangchainPinecone, "", true, true); err == nil { + u.DestinationLangchainPinecone = destinationLangchainPinecone + u.Type = DestinationLangchainIndexingTypeDestinationLangchainPinecone return nil } @@ -447,16 +447,16 @@ func (u *DestinationLangchainIndexing) UnmarshalJSON(data []byte) error { } func (u DestinationLangchainIndexing) MarshalJSON() ([]byte, error) { - if u.Pinecone != nil { - return utils.MarshalJSON(u.Pinecone, "", true) + if u.DestinationLangchainPinecone != nil { + return utils.MarshalJSON(u.DestinationLangchainPinecone, "", true) } - if u.DocArrayHnswSearch != nil { - return utils.MarshalJSON(u.DocArrayHnswSearch, "", true) + if u.DestinationLangchainDocArrayHnswSearch != nil { + return utils.MarshalJSON(u.DestinationLangchainDocArrayHnswSearch, "", true) } - if u.ChromaLocalPersistance != nil { - return utils.MarshalJSON(u.ChromaLocalPersistance, "", true) + if u.DestinationLangchainChromaLocalPersistance != nil { + return utils.MarshalJSON(u.DestinationLangchainChromaLocalPersistance, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationlangchainupdate.go b/internal/sdk/pkg/models/shared/destinationlangchainupdate.go index ae04b01f4..b62d8554e 100644 --- a/internal/sdk/pkg/models/shared/destinationlangchainupdate.go +++ b/internal/sdk/pkg/models/shared/destinationlangchainupdate.go @@ -356,25 +356,25 @@ func (o *DestinationLangchainUpdatePinecone) GetPineconeKey() string { type IndexingType string const ( - IndexingTypePinecone IndexingType = "Pinecone" - IndexingTypeDocArrayHnswSearch IndexingType = "DocArrayHnswSearch" - IndexingTypeChromaLocalPersistance IndexingType = "ChromaLocalPersistance" + IndexingTypeDestinationLangchainUpdatePinecone IndexingType = "destination-langchain-update_Pinecone" + IndexingTypeDocArrayHnswSearch IndexingType = "DocArrayHnswSearch" + IndexingTypeChromaLocalPersistance IndexingType = "Chroma (local persistance)" ) type Indexing struct { - Pinecone *DestinationLangchainUpdatePinecone - DocArrayHnswSearch *DocArrayHnswSearch - ChromaLocalPersistance *ChromaLocalPersistance + DestinationLangchainUpdatePinecone *DestinationLangchainUpdatePinecone + DocArrayHnswSearch *DocArrayHnswSearch + ChromaLocalPersistance *ChromaLocalPersistance Type IndexingType } -func CreateIndexingPinecone(pinecone DestinationLangchainUpdatePinecone) Indexing { - typ := IndexingTypePinecone +func CreateIndexingDestinationLangchainUpdatePinecone(destinationLangchainUpdatePinecone DestinationLangchainUpdatePinecone) Indexing { + typ := IndexingTypeDestinationLangchainUpdatePinecone return Indexing{ - Pinecone: &pinecone, - Type: typ, + DestinationLangchainUpdatePinecone: &destinationLangchainUpdatePinecone, + Type: typ, } } @@ -412,10 +412,10 @@ func (u *Indexing) UnmarshalJSON(data []byte) error { return nil } - pinecone := new(DestinationLangchainUpdatePinecone) - if err := utils.UnmarshalJSON(data, &pinecone, "", true, true); err == nil { - u.Pinecone = pinecone - u.Type = IndexingTypePinecone + destinationLangchainUpdatePinecone := new(DestinationLangchainUpdatePinecone) + if err := utils.UnmarshalJSON(data, &destinationLangchainUpdatePinecone, "", true, true); err == nil { + u.DestinationLangchainUpdatePinecone = destinationLangchainUpdatePinecone + u.Type = IndexingTypeDestinationLangchainUpdatePinecone return nil } @@ -423,8 +423,8 @@ func (u *Indexing) UnmarshalJSON(data []byte) error { } func (u Indexing) MarshalJSON() ([]byte, error) { - if u.Pinecone != nil { - return utils.MarshalJSON(u.Pinecone, "", true) + if u.DestinationLangchainUpdatePinecone != nil { + return utils.MarshalJSON(u.DestinationLangchainUpdatePinecone, "", true) } if u.DocArrayHnswSearch != nil { diff --git a/internal/sdk/pkg/models/shared/destinationmilvus.go b/internal/sdk/pkg/models/shared/destinationmilvus.go index 2e3353450..f40feca3c 100644 --- a/internal/sdk/pkg/models/shared/destinationmilvus.go +++ b/internal/sdk/pkg/models/shared/destinationmilvus.go @@ -246,84 +246,84 @@ func (o *DestinationMilvusOpenAI) GetOpenaiKey() string { type DestinationMilvusEmbeddingType string const ( - DestinationMilvusEmbeddingTypeOpenAI DestinationMilvusEmbeddingType = "OpenAI" - DestinationMilvusEmbeddingTypeCohere DestinationMilvusEmbeddingType = "Cohere" - DestinationMilvusEmbeddingTypeFake DestinationMilvusEmbeddingType = "Fake" - DestinationMilvusEmbeddingTypeFromField DestinationMilvusEmbeddingType = "FromField" + DestinationMilvusEmbeddingTypeDestinationMilvusOpenAI DestinationMilvusEmbeddingType = "destination-milvus_OpenAI" + DestinationMilvusEmbeddingTypeDestinationMilvusCohere DestinationMilvusEmbeddingType = "destination-milvus_Cohere" + DestinationMilvusEmbeddingTypeDestinationMilvusFake DestinationMilvusEmbeddingType = "destination-milvus_Fake" + DestinationMilvusEmbeddingTypeDestinationMilvusFromField DestinationMilvusEmbeddingType = "destination-milvus_From Field" ) type DestinationMilvusEmbedding struct { - OpenAI *DestinationMilvusOpenAI - Cohere *DestinationMilvusCohere - Fake *DestinationMilvusFake - FromField *DestinationMilvusFromField + DestinationMilvusOpenAI *DestinationMilvusOpenAI + DestinationMilvusCohere *DestinationMilvusCohere + DestinationMilvusFake *DestinationMilvusFake + DestinationMilvusFromField *DestinationMilvusFromField Type DestinationMilvusEmbeddingType } -func CreateDestinationMilvusEmbeddingOpenAI(openAI DestinationMilvusOpenAI) DestinationMilvusEmbedding { - typ := DestinationMilvusEmbeddingTypeOpenAI +func CreateDestinationMilvusEmbeddingDestinationMilvusOpenAI(destinationMilvusOpenAI DestinationMilvusOpenAI) DestinationMilvusEmbedding { + typ := DestinationMilvusEmbeddingTypeDestinationMilvusOpenAI return DestinationMilvusEmbedding{ - OpenAI: &openAI, - Type: typ, + DestinationMilvusOpenAI: &destinationMilvusOpenAI, + Type: typ, } } -func CreateDestinationMilvusEmbeddingCohere(cohere DestinationMilvusCohere) DestinationMilvusEmbedding { - typ := DestinationMilvusEmbeddingTypeCohere +func CreateDestinationMilvusEmbeddingDestinationMilvusCohere(destinationMilvusCohere DestinationMilvusCohere) DestinationMilvusEmbedding { + typ := DestinationMilvusEmbeddingTypeDestinationMilvusCohere return DestinationMilvusEmbedding{ - Cohere: &cohere, - Type: typ, + DestinationMilvusCohere: &destinationMilvusCohere, + Type: typ, } } -func CreateDestinationMilvusEmbeddingFake(fake DestinationMilvusFake) DestinationMilvusEmbedding { - typ := DestinationMilvusEmbeddingTypeFake +func CreateDestinationMilvusEmbeddingDestinationMilvusFake(destinationMilvusFake DestinationMilvusFake) DestinationMilvusEmbedding { + typ := DestinationMilvusEmbeddingTypeDestinationMilvusFake return DestinationMilvusEmbedding{ - Fake: &fake, - Type: typ, + DestinationMilvusFake: &destinationMilvusFake, + Type: typ, } } -func CreateDestinationMilvusEmbeddingFromField(fromField DestinationMilvusFromField) DestinationMilvusEmbedding { - typ := DestinationMilvusEmbeddingTypeFromField +func CreateDestinationMilvusEmbeddingDestinationMilvusFromField(destinationMilvusFromField DestinationMilvusFromField) DestinationMilvusEmbedding { + typ := DestinationMilvusEmbeddingTypeDestinationMilvusFromField return DestinationMilvusEmbedding{ - FromField: &fromField, - Type: typ, + DestinationMilvusFromField: &destinationMilvusFromField, + Type: typ, } } func (u *DestinationMilvusEmbedding) UnmarshalJSON(data []byte) error { - fake := new(DestinationMilvusFake) - if err := utils.UnmarshalJSON(data, &fake, "", true, true); err == nil { - u.Fake = fake - u.Type = DestinationMilvusEmbeddingTypeFake + destinationMilvusFake := new(DestinationMilvusFake) + if err := utils.UnmarshalJSON(data, &destinationMilvusFake, "", true, true); err == nil { + u.DestinationMilvusFake = destinationMilvusFake + u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusFake return nil } - openAI := new(DestinationMilvusOpenAI) - if err := utils.UnmarshalJSON(data, &openAI, "", true, true); err == nil { - u.OpenAI = openAI - u.Type = DestinationMilvusEmbeddingTypeOpenAI + destinationMilvusOpenAI := new(DestinationMilvusOpenAI) + if err := utils.UnmarshalJSON(data, &destinationMilvusOpenAI, "", true, true); err == nil { + u.DestinationMilvusOpenAI = destinationMilvusOpenAI + u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusOpenAI return nil } - cohere := new(DestinationMilvusCohere) - if err := utils.UnmarshalJSON(data, &cohere, "", true, true); err == nil { - u.Cohere = cohere - u.Type = DestinationMilvusEmbeddingTypeCohere + destinationMilvusCohere := new(DestinationMilvusCohere) + if err := utils.UnmarshalJSON(data, &destinationMilvusCohere, "", true, true); err == nil { + u.DestinationMilvusCohere = destinationMilvusCohere + u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusCohere return nil } - fromField := new(DestinationMilvusFromField) - if err := utils.UnmarshalJSON(data, &fromField, "", true, true); err == nil { - u.FromField = fromField - u.Type = DestinationMilvusEmbeddingTypeFromField + destinationMilvusFromField := new(DestinationMilvusFromField) + if err := utils.UnmarshalJSON(data, &destinationMilvusFromField, "", true, true); err == nil { + u.DestinationMilvusFromField = destinationMilvusFromField + u.Type = DestinationMilvusEmbeddingTypeDestinationMilvusFromField return nil } @@ -331,20 +331,20 @@ func (u *DestinationMilvusEmbedding) UnmarshalJSON(data []byte) error { } func (u DestinationMilvusEmbedding) MarshalJSON() ([]byte, error) { - if u.OpenAI != nil { - return utils.MarshalJSON(u.OpenAI, "", true) + if u.DestinationMilvusOpenAI != nil { + return utils.MarshalJSON(u.DestinationMilvusOpenAI, "", true) } - if u.Cohere != nil { - return utils.MarshalJSON(u.Cohere, "", true) + if u.DestinationMilvusCohere != nil { + return utils.MarshalJSON(u.DestinationMilvusCohere, "", true) } - if u.Fake != nil { - return utils.MarshalJSON(u.Fake, "", true) + if u.DestinationMilvusFake != nil { + return utils.MarshalJSON(u.DestinationMilvusFake, "", true) } - if u.FromField != nil { - return utils.MarshalJSON(u.FromField, "", true) + if u.DestinationMilvusFromField != nil { + return utils.MarshalJSON(u.DestinationMilvusFromField, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -512,66 +512,66 @@ func (o *DestinationMilvusAPIToken) GetToken() string { type DestinationMilvusAuthenticationType string const ( - DestinationMilvusAuthenticationTypeAPIToken DestinationMilvusAuthenticationType = "APIToken" - DestinationMilvusAuthenticationTypeUsernamePassword DestinationMilvusAuthenticationType = "UsernamePassword" - DestinationMilvusAuthenticationTypeNoAuth DestinationMilvusAuthenticationType = "NoAuth" + DestinationMilvusAuthenticationTypeDestinationMilvusAPIToken DestinationMilvusAuthenticationType = "destination-milvus_API Token" + DestinationMilvusAuthenticationTypeDestinationMilvusUsernamePassword DestinationMilvusAuthenticationType = "destination-milvus_Username/Password" + DestinationMilvusAuthenticationTypeDestinationMilvusNoAuth DestinationMilvusAuthenticationType = "destination-milvus_No auth" ) type DestinationMilvusAuthentication struct { - APIToken *DestinationMilvusAPIToken - UsernamePassword *DestinationMilvusUsernamePassword - NoAuth *DestinationMilvusNoAuth + DestinationMilvusAPIToken *DestinationMilvusAPIToken + DestinationMilvusUsernamePassword *DestinationMilvusUsernamePassword + DestinationMilvusNoAuth *DestinationMilvusNoAuth Type DestinationMilvusAuthenticationType } -func CreateDestinationMilvusAuthenticationAPIToken(apiToken DestinationMilvusAPIToken) DestinationMilvusAuthentication { - typ := DestinationMilvusAuthenticationTypeAPIToken +func CreateDestinationMilvusAuthenticationDestinationMilvusAPIToken(destinationMilvusAPIToken DestinationMilvusAPIToken) DestinationMilvusAuthentication { + typ := DestinationMilvusAuthenticationTypeDestinationMilvusAPIToken return DestinationMilvusAuthentication{ - APIToken: &apiToken, - Type: typ, + DestinationMilvusAPIToken: &destinationMilvusAPIToken, + Type: typ, } } -func CreateDestinationMilvusAuthenticationUsernamePassword(usernamePassword DestinationMilvusUsernamePassword) DestinationMilvusAuthentication { - typ := DestinationMilvusAuthenticationTypeUsernamePassword +func CreateDestinationMilvusAuthenticationDestinationMilvusUsernamePassword(destinationMilvusUsernamePassword DestinationMilvusUsernamePassword) DestinationMilvusAuthentication { + typ := DestinationMilvusAuthenticationTypeDestinationMilvusUsernamePassword return DestinationMilvusAuthentication{ - UsernamePassword: &usernamePassword, - Type: typ, + DestinationMilvusUsernamePassword: &destinationMilvusUsernamePassword, + Type: typ, } } -func CreateDestinationMilvusAuthenticationNoAuth(noAuth DestinationMilvusNoAuth) DestinationMilvusAuthentication { - typ := DestinationMilvusAuthenticationTypeNoAuth +func CreateDestinationMilvusAuthenticationDestinationMilvusNoAuth(destinationMilvusNoAuth DestinationMilvusNoAuth) DestinationMilvusAuthentication { + typ := DestinationMilvusAuthenticationTypeDestinationMilvusNoAuth return DestinationMilvusAuthentication{ - NoAuth: &noAuth, - Type: typ, + DestinationMilvusNoAuth: &destinationMilvusNoAuth, + Type: typ, } } func (u *DestinationMilvusAuthentication) UnmarshalJSON(data []byte) error { - noAuth := new(DestinationMilvusNoAuth) - if err := utils.UnmarshalJSON(data, &noAuth, "", true, true); err == nil { - u.NoAuth = noAuth - u.Type = DestinationMilvusAuthenticationTypeNoAuth + destinationMilvusNoAuth := new(DestinationMilvusNoAuth) + if err := utils.UnmarshalJSON(data, &destinationMilvusNoAuth, "", true, true); err == nil { + u.DestinationMilvusNoAuth = destinationMilvusNoAuth + u.Type = DestinationMilvusAuthenticationTypeDestinationMilvusNoAuth return nil } - apiToken := new(DestinationMilvusAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = DestinationMilvusAuthenticationTypeAPIToken + destinationMilvusAPIToken := new(DestinationMilvusAPIToken) + if err := utils.UnmarshalJSON(data, &destinationMilvusAPIToken, "", true, true); err == nil { + u.DestinationMilvusAPIToken = destinationMilvusAPIToken + u.Type = DestinationMilvusAuthenticationTypeDestinationMilvusAPIToken return nil } - usernamePassword := new(DestinationMilvusUsernamePassword) - if err := utils.UnmarshalJSON(data, &usernamePassword, "", true, true); err == nil { - u.UsernamePassword = usernamePassword - u.Type = DestinationMilvusAuthenticationTypeUsernamePassword + destinationMilvusUsernamePassword := new(DestinationMilvusUsernamePassword) + if err := utils.UnmarshalJSON(data, &destinationMilvusUsernamePassword, "", true, true); err == nil { + u.DestinationMilvusUsernamePassword = destinationMilvusUsernamePassword + u.Type = DestinationMilvusAuthenticationTypeDestinationMilvusUsernamePassword return nil } @@ -579,16 +579,16 @@ func (u *DestinationMilvusAuthentication) UnmarshalJSON(data []byte) error { } func (u DestinationMilvusAuthentication) MarshalJSON() ([]byte, error) { - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.DestinationMilvusAPIToken != nil { + return utils.MarshalJSON(u.DestinationMilvusAPIToken, "", true) } - if u.UsernamePassword != nil { - return utils.MarshalJSON(u.UsernamePassword, "", true) + if u.DestinationMilvusUsernamePassword != nil { + return utils.MarshalJSON(u.DestinationMilvusUsernamePassword, "", true) } - if u.NoAuth != nil { - return utils.MarshalJSON(u.NoAuth, "", true) + if u.DestinationMilvusNoAuth != nil { + return utils.MarshalJSON(u.DestinationMilvusNoAuth, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmilvusupdate.go b/internal/sdk/pkg/models/shared/destinationmilvusupdate.go index 60f0c2f18..352de2804 100644 --- a/internal/sdk/pkg/models/shared/destinationmilvusupdate.go +++ b/internal/sdk/pkg/models/shared/destinationmilvusupdate.go @@ -222,27 +222,27 @@ func (o *DestinationMilvusUpdateOpenAI) GetOpenaiKey() string { type DestinationMilvusUpdateEmbeddingType string const ( - DestinationMilvusUpdateEmbeddingTypeOpenAI DestinationMilvusUpdateEmbeddingType = "OpenAI" - DestinationMilvusUpdateEmbeddingTypeCohere DestinationMilvusUpdateEmbeddingType = "Cohere" - DestinationMilvusUpdateEmbeddingTypeFake DestinationMilvusUpdateEmbeddingType = "Fake" - DestinationMilvusUpdateEmbeddingTypeFromField DestinationMilvusUpdateEmbeddingType = "FromField" + DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateOpenAI DestinationMilvusUpdateEmbeddingType = "destination-milvus-update_OpenAI" + DestinationMilvusUpdateEmbeddingTypeCohere DestinationMilvusUpdateEmbeddingType = "Cohere" + DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateFake DestinationMilvusUpdateEmbeddingType = "destination-milvus-update_Fake" + DestinationMilvusUpdateEmbeddingTypeFromField DestinationMilvusUpdateEmbeddingType = "From Field" ) type DestinationMilvusUpdateEmbedding struct { - OpenAI *DestinationMilvusUpdateOpenAI - Cohere *Cohere - Fake *DestinationMilvusUpdateFake - FromField *FromField + DestinationMilvusUpdateOpenAI *DestinationMilvusUpdateOpenAI + Cohere *Cohere + DestinationMilvusUpdateFake *DestinationMilvusUpdateFake + FromField *FromField Type DestinationMilvusUpdateEmbeddingType } -func CreateDestinationMilvusUpdateEmbeddingOpenAI(openAI DestinationMilvusUpdateOpenAI) DestinationMilvusUpdateEmbedding { - typ := DestinationMilvusUpdateEmbeddingTypeOpenAI +func CreateDestinationMilvusUpdateEmbeddingDestinationMilvusUpdateOpenAI(destinationMilvusUpdateOpenAI DestinationMilvusUpdateOpenAI) DestinationMilvusUpdateEmbedding { + typ := DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateOpenAI return DestinationMilvusUpdateEmbedding{ - OpenAI: &openAI, - Type: typ, + DestinationMilvusUpdateOpenAI: &destinationMilvusUpdateOpenAI, + Type: typ, } } @@ -255,12 +255,12 @@ func CreateDestinationMilvusUpdateEmbeddingCohere(cohere Cohere) DestinationMilv } } -func CreateDestinationMilvusUpdateEmbeddingFake(fake DestinationMilvusUpdateFake) DestinationMilvusUpdateEmbedding { - typ := DestinationMilvusUpdateEmbeddingTypeFake +func CreateDestinationMilvusUpdateEmbeddingDestinationMilvusUpdateFake(destinationMilvusUpdateFake DestinationMilvusUpdateFake) DestinationMilvusUpdateEmbedding { + typ := DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateFake return DestinationMilvusUpdateEmbedding{ - Fake: &fake, - Type: typ, + DestinationMilvusUpdateFake: &destinationMilvusUpdateFake, + Type: typ, } } @@ -275,17 +275,17 @@ func CreateDestinationMilvusUpdateEmbeddingFromField(fromField FromField) Destin func (u *DestinationMilvusUpdateEmbedding) UnmarshalJSON(data []byte) error { - fake := new(DestinationMilvusUpdateFake) - if err := utils.UnmarshalJSON(data, &fake, "", true, true); err == nil { - u.Fake = fake - u.Type = DestinationMilvusUpdateEmbeddingTypeFake + destinationMilvusUpdateFake := new(DestinationMilvusUpdateFake) + if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateFake, "", true, true); err == nil { + u.DestinationMilvusUpdateFake = destinationMilvusUpdateFake + u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateFake return nil } - openAI := new(DestinationMilvusUpdateOpenAI) - if err := utils.UnmarshalJSON(data, &openAI, "", true, true); err == nil { - u.OpenAI = openAI - u.Type = DestinationMilvusUpdateEmbeddingTypeOpenAI + destinationMilvusUpdateOpenAI := new(DestinationMilvusUpdateOpenAI) + if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateOpenAI, "", true, true); err == nil { + u.DestinationMilvusUpdateOpenAI = destinationMilvusUpdateOpenAI + u.Type = DestinationMilvusUpdateEmbeddingTypeDestinationMilvusUpdateOpenAI return nil } @@ -307,16 +307,16 @@ func (u *DestinationMilvusUpdateEmbedding) UnmarshalJSON(data []byte) error { } func (u DestinationMilvusUpdateEmbedding) MarshalJSON() ([]byte, error) { - if u.OpenAI != nil { - return utils.MarshalJSON(u.OpenAI, "", true) + if u.DestinationMilvusUpdateOpenAI != nil { + return utils.MarshalJSON(u.DestinationMilvusUpdateOpenAI, "", true) } if u.Cohere != nil { return utils.MarshalJSON(u.Cohere, "", true) } - if u.Fake != nil { - return utils.MarshalJSON(u.Fake, "", true) + if u.DestinationMilvusUpdateFake != nil { + return utils.MarshalJSON(u.DestinationMilvusUpdateFake, "", true) } if u.FromField != nil { @@ -488,34 +488,34 @@ func (o *DestinationMilvusUpdateAPIToken) GetToken() string { type DestinationMilvusUpdateAuthenticationType string const ( - DestinationMilvusUpdateAuthenticationTypeAPIToken DestinationMilvusUpdateAuthenticationType = "APIToken" - DestinationMilvusUpdateAuthenticationTypeUsernamePassword DestinationMilvusUpdateAuthenticationType = "UsernamePassword" - DestinationMilvusUpdateAuthenticationTypeNoAuth DestinationMilvusUpdateAuthenticationType = "NoAuth" + DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateAPIToken DestinationMilvusUpdateAuthenticationType = "destination-milvus-update_API Token" + DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateUsernamePassword DestinationMilvusUpdateAuthenticationType = "destination-milvus-update_Username/Password" + DestinationMilvusUpdateAuthenticationTypeNoAuth DestinationMilvusUpdateAuthenticationType = "No auth" ) type DestinationMilvusUpdateAuthentication struct { - APIToken *DestinationMilvusUpdateAPIToken - UsernamePassword *DestinationMilvusUpdateUsernamePassword - NoAuth *NoAuth + DestinationMilvusUpdateAPIToken *DestinationMilvusUpdateAPIToken + DestinationMilvusUpdateUsernamePassword *DestinationMilvusUpdateUsernamePassword + NoAuth *NoAuth Type DestinationMilvusUpdateAuthenticationType } -func CreateDestinationMilvusUpdateAuthenticationAPIToken(apiToken DestinationMilvusUpdateAPIToken) DestinationMilvusUpdateAuthentication { - typ := DestinationMilvusUpdateAuthenticationTypeAPIToken +func CreateDestinationMilvusUpdateAuthenticationDestinationMilvusUpdateAPIToken(destinationMilvusUpdateAPIToken DestinationMilvusUpdateAPIToken) DestinationMilvusUpdateAuthentication { + typ := DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateAPIToken return DestinationMilvusUpdateAuthentication{ - APIToken: &apiToken, - Type: typ, + DestinationMilvusUpdateAPIToken: &destinationMilvusUpdateAPIToken, + Type: typ, } } -func CreateDestinationMilvusUpdateAuthenticationUsernamePassword(usernamePassword DestinationMilvusUpdateUsernamePassword) DestinationMilvusUpdateAuthentication { - typ := DestinationMilvusUpdateAuthenticationTypeUsernamePassword +func CreateDestinationMilvusUpdateAuthenticationDestinationMilvusUpdateUsernamePassword(destinationMilvusUpdateUsernamePassword DestinationMilvusUpdateUsernamePassword) DestinationMilvusUpdateAuthentication { + typ := DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateUsernamePassword return DestinationMilvusUpdateAuthentication{ - UsernamePassword: &usernamePassword, - Type: typ, + DestinationMilvusUpdateUsernamePassword: &destinationMilvusUpdateUsernamePassword, + Type: typ, } } @@ -537,17 +537,17 @@ func (u *DestinationMilvusUpdateAuthentication) UnmarshalJSON(data []byte) error return nil } - apiToken := new(DestinationMilvusUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = DestinationMilvusUpdateAuthenticationTypeAPIToken + destinationMilvusUpdateAPIToken := new(DestinationMilvusUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateAPIToken, "", true, true); err == nil { + u.DestinationMilvusUpdateAPIToken = destinationMilvusUpdateAPIToken + u.Type = DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateAPIToken return nil } - usernamePassword := new(DestinationMilvusUpdateUsernamePassword) - if err := utils.UnmarshalJSON(data, &usernamePassword, "", true, true); err == nil { - u.UsernamePassword = usernamePassword - u.Type = DestinationMilvusUpdateAuthenticationTypeUsernamePassword + destinationMilvusUpdateUsernamePassword := new(DestinationMilvusUpdateUsernamePassword) + if err := utils.UnmarshalJSON(data, &destinationMilvusUpdateUsernamePassword, "", true, true); err == nil { + u.DestinationMilvusUpdateUsernamePassword = destinationMilvusUpdateUsernamePassword + u.Type = DestinationMilvusUpdateAuthenticationTypeDestinationMilvusUpdateUsernamePassword return nil } @@ -555,12 +555,12 @@ func (u *DestinationMilvusUpdateAuthentication) UnmarshalJSON(data []byte) error } func (u DestinationMilvusUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.DestinationMilvusUpdateAPIToken != nil { + return utils.MarshalJSON(u.DestinationMilvusUpdateAPIToken, "", true) } - if u.UsernamePassword != nil { - return utils.MarshalJSON(u.UsernamePassword, "", true) + if u.DestinationMilvusUpdateUsernamePassword != nil { + return utils.MarshalJSON(u.DestinationMilvusUpdateUsernamePassword, "", true) } if u.NoAuth != nil { diff --git a/internal/sdk/pkg/models/shared/destinationmongodb.go b/internal/sdk/pkg/models/shared/destinationmongodb.go index 2ee939add..cae92a805 100644 --- a/internal/sdk/pkg/models/shared/destinationmongodb.go +++ b/internal/sdk/pkg/models/shared/destinationmongodb.go @@ -118,48 +118,48 @@ func (o *DestinationMongodbNone) GetAuthorization() DestinationMongodbAuthorizat type DestinationMongodbAuthorizationTypeType string const ( - DestinationMongodbAuthorizationTypeTypeNone DestinationMongodbAuthorizationTypeType = "None" - DestinationMongodbAuthorizationTypeTypeLoginPassword DestinationMongodbAuthorizationTypeType = "LoginPassword" + DestinationMongodbAuthorizationTypeTypeDestinationMongodbNone DestinationMongodbAuthorizationTypeType = "destination-mongodb_None" + DestinationMongodbAuthorizationTypeTypeDestinationMongodbLoginPassword DestinationMongodbAuthorizationTypeType = "destination-mongodb_Login/Password" ) type DestinationMongodbAuthorizationType struct { - None *DestinationMongodbNone - LoginPassword *DestinationMongodbLoginPassword + DestinationMongodbNone *DestinationMongodbNone + DestinationMongodbLoginPassword *DestinationMongodbLoginPassword Type DestinationMongodbAuthorizationTypeType } -func CreateDestinationMongodbAuthorizationTypeNone(none DestinationMongodbNone) DestinationMongodbAuthorizationType { - typ := DestinationMongodbAuthorizationTypeTypeNone +func CreateDestinationMongodbAuthorizationTypeDestinationMongodbNone(destinationMongodbNone DestinationMongodbNone) DestinationMongodbAuthorizationType { + typ := DestinationMongodbAuthorizationTypeTypeDestinationMongodbNone return DestinationMongodbAuthorizationType{ - None: &none, - Type: typ, + DestinationMongodbNone: &destinationMongodbNone, + Type: typ, } } -func CreateDestinationMongodbAuthorizationTypeLoginPassword(loginPassword DestinationMongodbLoginPassword) DestinationMongodbAuthorizationType { - typ := DestinationMongodbAuthorizationTypeTypeLoginPassword +func CreateDestinationMongodbAuthorizationTypeDestinationMongodbLoginPassword(destinationMongodbLoginPassword DestinationMongodbLoginPassword) DestinationMongodbAuthorizationType { + typ := DestinationMongodbAuthorizationTypeTypeDestinationMongodbLoginPassword return DestinationMongodbAuthorizationType{ - LoginPassword: &loginPassword, - Type: typ, + DestinationMongodbLoginPassword: &destinationMongodbLoginPassword, + Type: typ, } } func (u *DestinationMongodbAuthorizationType) UnmarshalJSON(data []byte) error { - none := new(DestinationMongodbNone) - if err := utils.UnmarshalJSON(data, &none, "", true, true); err == nil { - u.None = none - u.Type = DestinationMongodbAuthorizationTypeTypeNone + destinationMongodbNone := new(DestinationMongodbNone) + if err := utils.UnmarshalJSON(data, &destinationMongodbNone, "", true, true); err == nil { + u.DestinationMongodbNone = destinationMongodbNone + u.Type = DestinationMongodbAuthorizationTypeTypeDestinationMongodbNone return nil } - loginPassword := new(DestinationMongodbLoginPassword) - if err := utils.UnmarshalJSON(data, &loginPassword, "", true, true); err == nil { - u.LoginPassword = loginPassword - u.Type = DestinationMongodbAuthorizationTypeTypeLoginPassword + destinationMongodbLoginPassword := new(DestinationMongodbLoginPassword) + if err := utils.UnmarshalJSON(data, &destinationMongodbLoginPassword, "", true, true); err == nil { + u.DestinationMongodbLoginPassword = destinationMongodbLoginPassword + u.Type = DestinationMongodbAuthorizationTypeTypeDestinationMongodbLoginPassword return nil } @@ -167,12 +167,12 @@ func (u *DestinationMongodbAuthorizationType) UnmarshalJSON(data []byte) error { } func (u DestinationMongodbAuthorizationType) MarshalJSON() ([]byte, error) { - if u.None != nil { - return utils.MarshalJSON(u.None, "", true) + if u.DestinationMongodbNone != nil { + return utils.MarshalJSON(u.DestinationMongodbNone, "", true) } - if u.LoginPassword != nil { - return utils.MarshalJSON(u.LoginPassword, "", true) + if u.DestinationMongodbLoginPassword != nil { + return utils.MarshalJSON(u.DestinationMongodbLoginPassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -391,66 +391,66 @@ func (o *DestinationMongodbStandaloneMongoDbInstance) GetPort() *int64 { type DestinationMongodbMongoDbInstanceTypeType string const ( - DestinationMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance DestinationMongodbMongoDbInstanceTypeType = "StandaloneMongoDbInstance" - DestinationMongodbMongoDbInstanceTypeTypeReplicaSet DestinationMongodbMongoDbInstanceTypeType = "ReplicaSet" - DestinationMongodbMongoDbInstanceTypeTypeMongoDBAtlas DestinationMongodbMongoDbInstanceTypeType = "MongoDBAtlas" + DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbStandaloneMongoDbInstance DestinationMongodbMongoDbInstanceTypeType = "destination-mongodb_Standalone MongoDb Instance" + DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbReplicaSet DestinationMongodbMongoDbInstanceTypeType = "destination-mongodb_Replica Set" + DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDBAtlas DestinationMongodbMongoDbInstanceTypeType = "destination-mongodb_MongoDB Atlas" ) type DestinationMongodbMongoDbInstanceType struct { - StandaloneMongoDbInstance *DestinationMongodbStandaloneMongoDbInstance - ReplicaSet *DestinationMongodbReplicaSet - MongoDBAtlas *DestinationMongodbMongoDBAtlas + DestinationMongodbStandaloneMongoDbInstance *DestinationMongodbStandaloneMongoDbInstance + DestinationMongodbReplicaSet *DestinationMongodbReplicaSet + DestinationMongodbMongoDBAtlas *DestinationMongodbMongoDBAtlas Type DestinationMongodbMongoDbInstanceTypeType } -func CreateDestinationMongodbMongoDbInstanceTypeStandaloneMongoDbInstance(standaloneMongoDbInstance DestinationMongodbStandaloneMongoDbInstance) DestinationMongodbMongoDbInstanceType { - typ := DestinationMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance +func CreateDestinationMongodbMongoDbInstanceTypeDestinationMongodbStandaloneMongoDbInstance(destinationMongodbStandaloneMongoDbInstance DestinationMongodbStandaloneMongoDbInstance) DestinationMongodbMongoDbInstanceType { + typ := DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbStandaloneMongoDbInstance return DestinationMongodbMongoDbInstanceType{ - StandaloneMongoDbInstance: &standaloneMongoDbInstance, - Type: typ, + DestinationMongodbStandaloneMongoDbInstance: &destinationMongodbStandaloneMongoDbInstance, + Type: typ, } } -func CreateDestinationMongodbMongoDbInstanceTypeReplicaSet(replicaSet DestinationMongodbReplicaSet) DestinationMongodbMongoDbInstanceType { - typ := DestinationMongodbMongoDbInstanceTypeTypeReplicaSet +func CreateDestinationMongodbMongoDbInstanceTypeDestinationMongodbReplicaSet(destinationMongodbReplicaSet DestinationMongodbReplicaSet) DestinationMongodbMongoDbInstanceType { + typ := DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbReplicaSet return DestinationMongodbMongoDbInstanceType{ - ReplicaSet: &replicaSet, - Type: typ, + DestinationMongodbReplicaSet: &destinationMongodbReplicaSet, + Type: typ, } } -func CreateDestinationMongodbMongoDbInstanceTypeMongoDBAtlas(mongoDBAtlas DestinationMongodbMongoDBAtlas) DestinationMongodbMongoDbInstanceType { - typ := DestinationMongodbMongoDbInstanceTypeTypeMongoDBAtlas +func CreateDestinationMongodbMongoDbInstanceTypeDestinationMongodbMongoDBAtlas(destinationMongodbMongoDBAtlas DestinationMongodbMongoDBAtlas) DestinationMongodbMongoDbInstanceType { + typ := DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDBAtlas return DestinationMongodbMongoDbInstanceType{ - MongoDBAtlas: &mongoDBAtlas, - Type: typ, + DestinationMongodbMongoDBAtlas: &destinationMongodbMongoDBAtlas, + Type: typ, } } func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error { - mongoDBAtlas := new(DestinationMongodbMongoDBAtlas) - if err := utils.UnmarshalJSON(data, &mongoDBAtlas, "", true, true); err == nil { - u.MongoDBAtlas = mongoDBAtlas - u.Type = DestinationMongodbMongoDbInstanceTypeTypeMongoDBAtlas + destinationMongodbMongoDBAtlas := new(DestinationMongodbMongoDBAtlas) + if err := utils.UnmarshalJSON(data, &destinationMongodbMongoDBAtlas, "", true, true); err == nil { + u.DestinationMongodbMongoDBAtlas = destinationMongodbMongoDBAtlas + u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbMongoDBAtlas return nil } - standaloneMongoDbInstance := new(DestinationMongodbStandaloneMongoDbInstance) - if err := utils.UnmarshalJSON(data, &standaloneMongoDbInstance, "", true, true); err == nil { - u.StandaloneMongoDbInstance = standaloneMongoDbInstance - u.Type = DestinationMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance + destinationMongodbStandaloneMongoDbInstance := new(DestinationMongodbStandaloneMongoDbInstance) + if err := utils.UnmarshalJSON(data, &destinationMongodbStandaloneMongoDbInstance, "", true, true); err == nil { + u.DestinationMongodbStandaloneMongoDbInstance = destinationMongodbStandaloneMongoDbInstance + u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbStandaloneMongoDbInstance return nil } - replicaSet := new(DestinationMongodbReplicaSet) - if err := utils.UnmarshalJSON(data, &replicaSet, "", true, true); err == nil { - u.ReplicaSet = replicaSet - u.Type = DestinationMongodbMongoDbInstanceTypeTypeReplicaSet + destinationMongodbReplicaSet := new(DestinationMongodbReplicaSet) + if err := utils.UnmarshalJSON(data, &destinationMongodbReplicaSet, "", true, true); err == nil { + u.DestinationMongodbReplicaSet = destinationMongodbReplicaSet + u.Type = DestinationMongodbMongoDbInstanceTypeTypeDestinationMongodbReplicaSet return nil } @@ -458,16 +458,16 @@ func (u *DestinationMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error } func (u DestinationMongodbMongoDbInstanceType) MarshalJSON() ([]byte, error) { - if u.StandaloneMongoDbInstance != nil { - return utils.MarshalJSON(u.StandaloneMongoDbInstance, "", true) + if u.DestinationMongodbStandaloneMongoDbInstance != nil { + return utils.MarshalJSON(u.DestinationMongodbStandaloneMongoDbInstance, "", true) } - if u.ReplicaSet != nil { - return utils.MarshalJSON(u.ReplicaSet, "", true) + if u.DestinationMongodbReplicaSet != nil { + return utils.MarshalJSON(u.DestinationMongodbReplicaSet, "", true) } - if u.MongoDBAtlas != nil { - return utils.MarshalJSON(u.MongoDBAtlas, "", true) + if u.DestinationMongodbMongoDBAtlas != nil { + return utils.MarshalJSON(u.DestinationMongodbMongoDBAtlas, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -686,66 +686,66 @@ func (o *DestinationMongodbNoTunnel) GetTunnelMethod() DestinationMongodbTunnelM type DestinationMongodbSSHTunnelMethodType string const ( - DestinationMongodbSSHTunnelMethodTypeNoTunnel DestinationMongodbSSHTunnelMethodType = "NoTunnel" - DestinationMongodbSSHTunnelMethodTypeSSHKeyAuthentication DestinationMongodbSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMongodbSSHTunnelMethodTypePasswordAuthentication DestinationMongodbSSHTunnelMethodType = "PasswordAuthentication" + DestinationMongodbSSHTunnelMethodTypeDestinationMongodbNoTunnel DestinationMongodbSSHTunnelMethodType = "destination-mongodb_No Tunnel" + DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHKeyAuthentication DestinationMongodbSSHTunnelMethodType = "destination-mongodb_SSH Key Authentication" + DestinationMongodbSSHTunnelMethodTypeDestinationMongodbPasswordAuthentication DestinationMongodbSSHTunnelMethodType = "destination-mongodb_Password Authentication" ) type DestinationMongodbSSHTunnelMethod struct { - NoTunnel *DestinationMongodbNoTunnel - SSHKeyAuthentication *DestinationMongodbSSHKeyAuthentication - PasswordAuthentication *DestinationMongodbPasswordAuthentication + DestinationMongodbNoTunnel *DestinationMongodbNoTunnel + DestinationMongodbSSHKeyAuthentication *DestinationMongodbSSHKeyAuthentication + DestinationMongodbPasswordAuthentication *DestinationMongodbPasswordAuthentication Type DestinationMongodbSSHTunnelMethodType } -func CreateDestinationMongodbSSHTunnelMethodNoTunnel(noTunnel DestinationMongodbNoTunnel) DestinationMongodbSSHTunnelMethod { - typ := DestinationMongodbSSHTunnelMethodTypeNoTunnel +func CreateDestinationMongodbSSHTunnelMethodDestinationMongodbNoTunnel(destinationMongodbNoTunnel DestinationMongodbNoTunnel) DestinationMongodbSSHTunnelMethod { + typ := DestinationMongodbSSHTunnelMethodTypeDestinationMongodbNoTunnel return DestinationMongodbSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMongodbNoTunnel: &destinationMongodbNoTunnel, + Type: typ, } } -func CreateDestinationMongodbSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMongodbSSHKeyAuthentication) DestinationMongodbSSHTunnelMethod { - typ := DestinationMongodbSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMongodbSSHTunnelMethodDestinationMongodbSSHKeyAuthentication(destinationMongodbSSHKeyAuthentication DestinationMongodbSSHKeyAuthentication) DestinationMongodbSSHTunnelMethod { + typ := DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHKeyAuthentication return DestinationMongodbSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMongodbSSHKeyAuthentication: &destinationMongodbSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMongodbSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMongodbPasswordAuthentication) DestinationMongodbSSHTunnelMethod { - typ := DestinationMongodbSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMongodbSSHTunnelMethodDestinationMongodbPasswordAuthentication(destinationMongodbPasswordAuthentication DestinationMongodbPasswordAuthentication) DestinationMongodbSSHTunnelMethod { + typ := DestinationMongodbSSHTunnelMethodTypeDestinationMongodbPasswordAuthentication return DestinationMongodbSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMongodbPasswordAuthentication: &destinationMongodbPasswordAuthentication, + Type: typ, } } func (u *DestinationMongodbSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMongodbNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMongodbSSHTunnelMethodTypeNoTunnel + destinationMongodbNoTunnel := new(DestinationMongodbNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMongodbNoTunnel, "", true, true); err == nil { + u.DestinationMongodbNoTunnel = destinationMongodbNoTunnel + u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbNoTunnel return nil } - sshKeyAuthentication := new(DestinationMongodbSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMongodbSSHTunnelMethodTypeSSHKeyAuthentication + destinationMongodbSSHKeyAuthentication := new(DestinationMongodbSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMongodbSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMongodbSSHKeyAuthentication = destinationMongodbSSHKeyAuthentication + u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMongodbPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMongodbSSHTunnelMethodTypePasswordAuthentication + destinationMongodbPasswordAuthentication := new(DestinationMongodbPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMongodbPasswordAuthentication, "", true, true); err == nil { + u.DestinationMongodbPasswordAuthentication = destinationMongodbPasswordAuthentication + u.Type = DestinationMongodbSSHTunnelMethodTypeDestinationMongodbPasswordAuthentication return nil } @@ -753,16 +753,16 @@ func (u *DestinationMongodbSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationMongodbSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMongodbNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMongodbNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMongodbSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMongodbSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMongodbPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMongodbPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmongodbupdate.go b/internal/sdk/pkg/models/shared/destinationmongodbupdate.go index 2f5059118..5a01f94cd 100644 --- a/internal/sdk/pkg/models/shared/destinationmongodbupdate.go +++ b/internal/sdk/pkg/models/shared/destinationmongodbupdate.go @@ -119,7 +119,7 @@ type AuthorizationTypeType string const ( AuthorizationTypeTypeNone AuthorizationTypeType = "None" - AuthorizationTypeTypeLoginPassword AuthorizationTypeType = "LoginPassword" + AuthorizationTypeTypeLoginPassword AuthorizationTypeType = "Login/Password" ) type AuthorizationType struct { @@ -367,9 +367,9 @@ func (o *StandaloneMongoDbInstance) GetPort() *int64 { type MongoDbInstanceTypeType string const ( - MongoDbInstanceTypeTypeStandaloneMongoDbInstance MongoDbInstanceTypeType = "StandaloneMongoDbInstance" - MongoDbInstanceTypeTypeReplicaSet MongoDbInstanceTypeType = "ReplicaSet" - MongoDbInstanceTypeTypeMongoDBAtlas MongoDbInstanceTypeType = "MongoDBAtlas" + MongoDbInstanceTypeTypeStandaloneMongoDbInstance MongoDbInstanceTypeType = "Standalone MongoDb Instance" + MongoDbInstanceTypeTypeReplicaSet MongoDbInstanceTypeType = "Replica Set" + MongoDbInstanceTypeTypeMongoDBAtlas MongoDbInstanceTypeType = "MongoDB Atlas" ) type MongoDbInstanceType struct { @@ -662,66 +662,66 @@ func (o *DestinationMongodbUpdateNoTunnel) GetTunnelMethod() DestinationMongodbU type DestinationMongodbUpdateSSHTunnelMethodType string const ( - DestinationMongodbUpdateSSHTunnelMethodTypeNoTunnel DestinationMongodbUpdateSSHTunnelMethodType = "NoTunnel" - DestinationMongodbUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationMongodbUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMongodbUpdateSSHTunnelMethodTypePasswordAuthentication DestinationMongodbUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateNoTunnel DestinationMongodbUpdateSSHTunnelMethodType = "destination-mongodb-update_No Tunnel" + DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHKeyAuthentication DestinationMongodbUpdateSSHTunnelMethodType = "destination-mongodb-update_SSH Key Authentication" + DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdatePasswordAuthentication DestinationMongodbUpdateSSHTunnelMethodType = "destination-mongodb-update_Password Authentication" ) type DestinationMongodbUpdateSSHTunnelMethod struct { - NoTunnel *DestinationMongodbUpdateNoTunnel - SSHKeyAuthentication *DestinationMongodbUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationMongodbUpdatePasswordAuthentication + DestinationMongodbUpdateNoTunnel *DestinationMongodbUpdateNoTunnel + DestinationMongodbUpdateSSHKeyAuthentication *DestinationMongodbUpdateSSHKeyAuthentication + DestinationMongodbUpdatePasswordAuthentication *DestinationMongodbUpdatePasswordAuthentication Type DestinationMongodbUpdateSSHTunnelMethodType } -func CreateDestinationMongodbUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationMongodbUpdateNoTunnel) DestinationMongodbUpdateSSHTunnelMethod { - typ := DestinationMongodbUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationMongodbUpdateSSHTunnelMethodDestinationMongodbUpdateNoTunnel(destinationMongodbUpdateNoTunnel DestinationMongodbUpdateNoTunnel) DestinationMongodbUpdateSSHTunnelMethod { + typ := DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateNoTunnel return DestinationMongodbUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMongodbUpdateNoTunnel: &destinationMongodbUpdateNoTunnel, + Type: typ, } } -func CreateDestinationMongodbUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMongodbUpdateSSHKeyAuthentication) DestinationMongodbUpdateSSHTunnelMethod { - typ := DestinationMongodbUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMongodbUpdateSSHTunnelMethodDestinationMongodbUpdateSSHKeyAuthentication(destinationMongodbUpdateSSHKeyAuthentication DestinationMongodbUpdateSSHKeyAuthentication) DestinationMongodbUpdateSSHTunnelMethod { + typ := DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHKeyAuthentication return DestinationMongodbUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMongodbUpdateSSHKeyAuthentication: &destinationMongodbUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMongodbUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMongodbUpdatePasswordAuthentication) DestinationMongodbUpdateSSHTunnelMethod { - typ := DestinationMongodbUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMongodbUpdateSSHTunnelMethodDestinationMongodbUpdatePasswordAuthentication(destinationMongodbUpdatePasswordAuthentication DestinationMongodbUpdatePasswordAuthentication) DestinationMongodbUpdateSSHTunnelMethod { + typ := DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdatePasswordAuthentication return DestinationMongodbUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMongodbUpdatePasswordAuthentication: &destinationMongodbUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationMongodbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMongodbUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeNoTunnel + destinationMongodbUpdateNoTunnel := new(DestinationMongodbUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateNoTunnel, "", true, true); err == nil { + u.DestinationMongodbUpdateNoTunnel = destinationMongodbUpdateNoTunnel + u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationMongodbUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationMongodbUpdateSSHKeyAuthentication := new(DestinationMongodbUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMongodbUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMongodbUpdateSSHKeyAuthentication = destinationMongodbUpdateSSHKeyAuthentication + u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMongodbUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMongodbUpdateSSHTunnelMethodTypePasswordAuthentication + destinationMongodbUpdatePasswordAuthentication := new(DestinationMongodbUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMongodbUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationMongodbUpdatePasswordAuthentication = destinationMongodbUpdatePasswordAuthentication + u.Type = DestinationMongodbUpdateSSHTunnelMethodTypeDestinationMongodbUpdatePasswordAuthentication return nil } @@ -729,16 +729,16 @@ func (u *DestinationMongodbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) err } func (u DestinationMongodbUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMongodbUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMongodbUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMongodbUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMongodbUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMongodbUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMongodbUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmssql.go b/internal/sdk/pkg/models/shared/destinationmssql.go index 138320925..06351198c 100644 --- a/internal/sdk/pkg/models/shared/destinationmssql.go +++ b/internal/sdk/pkg/models/shared/destinationmssql.go @@ -133,48 +133,48 @@ func (o *DestinationMssqlEncryptedTrustServerCertificate) GetSslMethod() *Destin type DestinationMssqlSSLMethodType string const ( - DestinationMssqlSSLMethodTypeEncryptedTrustServerCertificate DestinationMssqlSSLMethodType = "EncryptedTrustServerCertificate" - DestinationMssqlSSLMethodTypeEncryptedVerifyCertificate DestinationMssqlSSLMethodType = "EncryptedVerifyCertificate" + DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedTrustServerCertificate DestinationMssqlSSLMethodType = "destination-mssql_Encrypted (trust server certificate)" + DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedVerifyCertificate DestinationMssqlSSLMethodType = "destination-mssql_Encrypted (verify certificate)" ) type DestinationMssqlSSLMethod struct { - EncryptedTrustServerCertificate *DestinationMssqlEncryptedTrustServerCertificate - EncryptedVerifyCertificate *DestinationMssqlEncryptedVerifyCertificate + DestinationMssqlEncryptedTrustServerCertificate *DestinationMssqlEncryptedTrustServerCertificate + DestinationMssqlEncryptedVerifyCertificate *DestinationMssqlEncryptedVerifyCertificate Type DestinationMssqlSSLMethodType } -func CreateDestinationMssqlSSLMethodEncryptedTrustServerCertificate(encryptedTrustServerCertificate DestinationMssqlEncryptedTrustServerCertificate) DestinationMssqlSSLMethod { - typ := DestinationMssqlSSLMethodTypeEncryptedTrustServerCertificate +func CreateDestinationMssqlSSLMethodDestinationMssqlEncryptedTrustServerCertificate(destinationMssqlEncryptedTrustServerCertificate DestinationMssqlEncryptedTrustServerCertificate) DestinationMssqlSSLMethod { + typ := DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedTrustServerCertificate return DestinationMssqlSSLMethod{ - EncryptedTrustServerCertificate: &encryptedTrustServerCertificate, - Type: typ, + DestinationMssqlEncryptedTrustServerCertificate: &destinationMssqlEncryptedTrustServerCertificate, + Type: typ, } } -func CreateDestinationMssqlSSLMethodEncryptedVerifyCertificate(encryptedVerifyCertificate DestinationMssqlEncryptedVerifyCertificate) DestinationMssqlSSLMethod { - typ := DestinationMssqlSSLMethodTypeEncryptedVerifyCertificate +func CreateDestinationMssqlSSLMethodDestinationMssqlEncryptedVerifyCertificate(destinationMssqlEncryptedVerifyCertificate DestinationMssqlEncryptedVerifyCertificate) DestinationMssqlSSLMethod { + typ := DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedVerifyCertificate return DestinationMssqlSSLMethod{ - EncryptedVerifyCertificate: &encryptedVerifyCertificate, - Type: typ, + DestinationMssqlEncryptedVerifyCertificate: &destinationMssqlEncryptedVerifyCertificate, + Type: typ, } } func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error { - encryptedTrustServerCertificate := new(DestinationMssqlEncryptedTrustServerCertificate) - if err := utils.UnmarshalJSON(data, &encryptedTrustServerCertificate, "", true, true); err == nil { - u.EncryptedTrustServerCertificate = encryptedTrustServerCertificate - u.Type = DestinationMssqlSSLMethodTypeEncryptedTrustServerCertificate + destinationMssqlEncryptedTrustServerCertificate := new(DestinationMssqlEncryptedTrustServerCertificate) + if err := utils.UnmarshalJSON(data, &destinationMssqlEncryptedTrustServerCertificate, "", true, true); err == nil { + u.DestinationMssqlEncryptedTrustServerCertificate = destinationMssqlEncryptedTrustServerCertificate + u.Type = DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedTrustServerCertificate return nil } - encryptedVerifyCertificate := new(DestinationMssqlEncryptedVerifyCertificate) - if err := utils.UnmarshalJSON(data, &encryptedVerifyCertificate, "", true, true); err == nil { - u.EncryptedVerifyCertificate = encryptedVerifyCertificate - u.Type = DestinationMssqlSSLMethodTypeEncryptedVerifyCertificate + destinationMssqlEncryptedVerifyCertificate := new(DestinationMssqlEncryptedVerifyCertificate) + if err := utils.UnmarshalJSON(data, &destinationMssqlEncryptedVerifyCertificate, "", true, true); err == nil { + u.DestinationMssqlEncryptedVerifyCertificate = destinationMssqlEncryptedVerifyCertificate + u.Type = DestinationMssqlSSLMethodTypeDestinationMssqlEncryptedVerifyCertificate return nil } @@ -182,12 +182,12 @@ func (u *DestinationMssqlSSLMethod) UnmarshalJSON(data []byte) error { } func (u DestinationMssqlSSLMethod) MarshalJSON() ([]byte, error) { - if u.EncryptedTrustServerCertificate != nil { - return utils.MarshalJSON(u.EncryptedTrustServerCertificate, "", true) + if u.DestinationMssqlEncryptedTrustServerCertificate != nil { + return utils.MarshalJSON(u.DestinationMssqlEncryptedTrustServerCertificate, "", true) } - if u.EncryptedVerifyCertificate != nil { - return utils.MarshalJSON(u.EncryptedVerifyCertificate, "", true) + if u.DestinationMssqlEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.DestinationMssqlEncryptedVerifyCertificate, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -406,66 +406,66 @@ func (o *DestinationMssqlNoTunnel) GetTunnelMethod() DestinationMssqlTunnelMetho type DestinationMssqlSSHTunnelMethodType string const ( - DestinationMssqlSSHTunnelMethodTypeNoTunnel DestinationMssqlSSHTunnelMethodType = "NoTunnel" - DestinationMssqlSSHTunnelMethodTypeSSHKeyAuthentication DestinationMssqlSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMssqlSSHTunnelMethodTypePasswordAuthentication DestinationMssqlSSHTunnelMethodType = "PasswordAuthentication" + DestinationMssqlSSHTunnelMethodTypeDestinationMssqlNoTunnel DestinationMssqlSSHTunnelMethodType = "destination-mssql_No Tunnel" + DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHKeyAuthentication DestinationMssqlSSHTunnelMethodType = "destination-mssql_SSH Key Authentication" + DestinationMssqlSSHTunnelMethodTypeDestinationMssqlPasswordAuthentication DestinationMssqlSSHTunnelMethodType = "destination-mssql_Password Authentication" ) type DestinationMssqlSSHTunnelMethod struct { - NoTunnel *DestinationMssqlNoTunnel - SSHKeyAuthentication *DestinationMssqlSSHKeyAuthentication - PasswordAuthentication *DestinationMssqlPasswordAuthentication + DestinationMssqlNoTunnel *DestinationMssqlNoTunnel + DestinationMssqlSSHKeyAuthentication *DestinationMssqlSSHKeyAuthentication + DestinationMssqlPasswordAuthentication *DestinationMssqlPasswordAuthentication Type DestinationMssqlSSHTunnelMethodType } -func CreateDestinationMssqlSSHTunnelMethodNoTunnel(noTunnel DestinationMssqlNoTunnel) DestinationMssqlSSHTunnelMethod { - typ := DestinationMssqlSSHTunnelMethodTypeNoTunnel +func CreateDestinationMssqlSSHTunnelMethodDestinationMssqlNoTunnel(destinationMssqlNoTunnel DestinationMssqlNoTunnel) DestinationMssqlSSHTunnelMethod { + typ := DestinationMssqlSSHTunnelMethodTypeDestinationMssqlNoTunnel return DestinationMssqlSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMssqlNoTunnel: &destinationMssqlNoTunnel, + Type: typ, } } -func CreateDestinationMssqlSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMssqlSSHKeyAuthentication) DestinationMssqlSSHTunnelMethod { - typ := DestinationMssqlSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMssqlSSHTunnelMethodDestinationMssqlSSHKeyAuthentication(destinationMssqlSSHKeyAuthentication DestinationMssqlSSHKeyAuthentication) DestinationMssqlSSHTunnelMethod { + typ := DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHKeyAuthentication return DestinationMssqlSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMssqlSSHKeyAuthentication: &destinationMssqlSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMssqlSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMssqlPasswordAuthentication) DestinationMssqlSSHTunnelMethod { - typ := DestinationMssqlSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMssqlSSHTunnelMethodDestinationMssqlPasswordAuthentication(destinationMssqlPasswordAuthentication DestinationMssqlPasswordAuthentication) DestinationMssqlSSHTunnelMethod { + typ := DestinationMssqlSSHTunnelMethodTypeDestinationMssqlPasswordAuthentication return DestinationMssqlSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMssqlPasswordAuthentication: &destinationMssqlPasswordAuthentication, + Type: typ, } } func (u *DestinationMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMssqlNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMssqlSSHTunnelMethodTypeNoTunnel + destinationMssqlNoTunnel := new(DestinationMssqlNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMssqlNoTunnel, "", true, true); err == nil { + u.DestinationMssqlNoTunnel = destinationMssqlNoTunnel + u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlNoTunnel return nil } - sshKeyAuthentication := new(DestinationMssqlSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMssqlSSHTunnelMethodTypeSSHKeyAuthentication + destinationMssqlSSHKeyAuthentication := new(DestinationMssqlSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMssqlSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMssqlSSHKeyAuthentication = destinationMssqlSSHKeyAuthentication + u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMssqlPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMssqlSSHTunnelMethodTypePasswordAuthentication + destinationMssqlPasswordAuthentication := new(DestinationMssqlPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMssqlPasswordAuthentication, "", true, true); err == nil { + u.DestinationMssqlPasswordAuthentication = destinationMssqlPasswordAuthentication + u.Type = DestinationMssqlSSHTunnelMethodTypeDestinationMssqlPasswordAuthentication return nil } @@ -473,16 +473,16 @@ func (u *DestinationMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationMssqlSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMssqlNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMssqlNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMssqlSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMssqlSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMssqlPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMssqlPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmssqlupdate.go b/internal/sdk/pkg/models/shared/destinationmssqlupdate.go index 11b7acb37..db963d1fe 100644 --- a/internal/sdk/pkg/models/shared/destinationmssqlupdate.go +++ b/internal/sdk/pkg/models/shared/destinationmssqlupdate.go @@ -109,8 +109,8 @@ func (o *EncryptedTrustServerCertificate) GetSslMethod() *DestinationMssqlUpdate type SSLMethodType string const ( - SSLMethodTypeEncryptedTrustServerCertificate SSLMethodType = "EncryptedTrustServerCertificate" - SSLMethodTypeEncryptedVerifyCertificate SSLMethodType = "EncryptedVerifyCertificate" + SSLMethodTypeEncryptedTrustServerCertificate SSLMethodType = "Encrypted (trust server certificate)" + SSLMethodTypeEncryptedVerifyCertificate SSLMethodType = "Encrypted (verify certificate)" ) type SSLMethod struct { @@ -382,66 +382,66 @@ func (o *DestinationMssqlUpdateNoTunnel) GetTunnelMethod() DestinationMssqlUpdat type DestinationMssqlUpdateSSHTunnelMethodType string const ( - DestinationMssqlUpdateSSHTunnelMethodTypeNoTunnel DestinationMssqlUpdateSSHTunnelMethodType = "NoTunnel" - DestinationMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationMssqlUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMssqlUpdateSSHTunnelMethodTypePasswordAuthentication DestinationMssqlUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateNoTunnel DestinationMssqlUpdateSSHTunnelMethodType = "destination-mssql-update_No Tunnel" + DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHKeyAuthentication DestinationMssqlUpdateSSHTunnelMethodType = "destination-mssql-update_SSH Key Authentication" + DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdatePasswordAuthentication DestinationMssqlUpdateSSHTunnelMethodType = "destination-mssql-update_Password Authentication" ) type DestinationMssqlUpdateSSHTunnelMethod struct { - NoTunnel *DestinationMssqlUpdateNoTunnel - SSHKeyAuthentication *DestinationMssqlUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationMssqlUpdatePasswordAuthentication + DestinationMssqlUpdateNoTunnel *DestinationMssqlUpdateNoTunnel + DestinationMssqlUpdateSSHKeyAuthentication *DestinationMssqlUpdateSSHKeyAuthentication + DestinationMssqlUpdatePasswordAuthentication *DestinationMssqlUpdatePasswordAuthentication Type DestinationMssqlUpdateSSHTunnelMethodType } -func CreateDestinationMssqlUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationMssqlUpdateNoTunnel) DestinationMssqlUpdateSSHTunnelMethod { - typ := DestinationMssqlUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationMssqlUpdateSSHTunnelMethodDestinationMssqlUpdateNoTunnel(destinationMssqlUpdateNoTunnel DestinationMssqlUpdateNoTunnel) DestinationMssqlUpdateSSHTunnelMethod { + typ := DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateNoTunnel return DestinationMssqlUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMssqlUpdateNoTunnel: &destinationMssqlUpdateNoTunnel, + Type: typ, } } -func CreateDestinationMssqlUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMssqlUpdateSSHKeyAuthentication) DestinationMssqlUpdateSSHTunnelMethod { - typ := DestinationMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMssqlUpdateSSHTunnelMethodDestinationMssqlUpdateSSHKeyAuthentication(destinationMssqlUpdateSSHKeyAuthentication DestinationMssqlUpdateSSHKeyAuthentication) DestinationMssqlUpdateSSHTunnelMethod { + typ := DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHKeyAuthentication return DestinationMssqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMssqlUpdateSSHKeyAuthentication: &destinationMssqlUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMssqlUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMssqlUpdatePasswordAuthentication) DestinationMssqlUpdateSSHTunnelMethod { - typ := DestinationMssqlUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMssqlUpdateSSHTunnelMethodDestinationMssqlUpdatePasswordAuthentication(destinationMssqlUpdatePasswordAuthentication DestinationMssqlUpdatePasswordAuthentication) DestinationMssqlUpdateSSHTunnelMethod { + typ := DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdatePasswordAuthentication return DestinationMssqlUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMssqlUpdatePasswordAuthentication: &destinationMssqlUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMssqlUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeNoTunnel + destinationMssqlUpdateNoTunnel := new(DestinationMssqlUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateNoTunnel, "", true, true); err == nil { + u.DestinationMssqlUpdateNoTunnel = destinationMssqlUpdateNoTunnel + u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationMssqlUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationMssqlUpdateSSHKeyAuthentication := new(DestinationMssqlUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMssqlUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMssqlUpdateSSHKeyAuthentication = destinationMssqlUpdateSSHKeyAuthentication + u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMssqlUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMssqlUpdateSSHTunnelMethodTypePasswordAuthentication + destinationMssqlUpdatePasswordAuthentication := new(DestinationMssqlUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMssqlUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationMssqlUpdatePasswordAuthentication = destinationMssqlUpdatePasswordAuthentication + u.Type = DestinationMssqlUpdateSSHTunnelMethodTypeDestinationMssqlUpdatePasswordAuthentication return nil } @@ -449,16 +449,16 @@ func (u *DestinationMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error } func (u DestinationMssqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMssqlUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMssqlUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMssqlUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMssqlUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMssqlUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMssqlUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmysql.go b/internal/sdk/pkg/models/shared/destinationmysql.go index 495f55dbc..d145768b0 100644 --- a/internal/sdk/pkg/models/shared/destinationmysql.go +++ b/internal/sdk/pkg/models/shared/destinationmysql.go @@ -246,66 +246,66 @@ func (o *DestinationMysqlNoTunnel) GetTunnelMethod() DestinationMysqlTunnelMetho type DestinationMysqlSSHTunnelMethodType string const ( - DestinationMysqlSSHTunnelMethodTypeNoTunnel DestinationMysqlSSHTunnelMethodType = "NoTunnel" - DestinationMysqlSSHTunnelMethodTypeSSHKeyAuthentication DestinationMysqlSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMysqlSSHTunnelMethodTypePasswordAuthentication DestinationMysqlSSHTunnelMethodType = "PasswordAuthentication" + DestinationMysqlSSHTunnelMethodTypeDestinationMysqlNoTunnel DestinationMysqlSSHTunnelMethodType = "destination-mysql_No Tunnel" + DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHKeyAuthentication DestinationMysqlSSHTunnelMethodType = "destination-mysql_SSH Key Authentication" + DestinationMysqlSSHTunnelMethodTypeDestinationMysqlPasswordAuthentication DestinationMysqlSSHTunnelMethodType = "destination-mysql_Password Authentication" ) type DestinationMysqlSSHTunnelMethod struct { - NoTunnel *DestinationMysqlNoTunnel - SSHKeyAuthentication *DestinationMysqlSSHKeyAuthentication - PasswordAuthentication *DestinationMysqlPasswordAuthentication + DestinationMysqlNoTunnel *DestinationMysqlNoTunnel + DestinationMysqlSSHKeyAuthentication *DestinationMysqlSSHKeyAuthentication + DestinationMysqlPasswordAuthentication *DestinationMysqlPasswordAuthentication Type DestinationMysqlSSHTunnelMethodType } -func CreateDestinationMysqlSSHTunnelMethodNoTunnel(noTunnel DestinationMysqlNoTunnel) DestinationMysqlSSHTunnelMethod { - typ := DestinationMysqlSSHTunnelMethodTypeNoTunnel +func CreateDestinationMysqlSSHTunnelMethodDestinationMysqlNoTunnel(destinationMysqlNoTunnel DestinationMysqlNoTunnel) DestinationMysqlSSHTunnelMethod { + typ := DestinationMysqlSSHTunnelMethodTypeDestinationMysqlNoTunnel return DestinationMysqlSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMysqlNoTunnel: &destinationMysqlNoTunnel, + Type: typ, } } -func CreateDestinationMysqlSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMysqlSSHKeyAuthentication) DestinationMysqlSSHTunnelMethod { - typ := DestinationMysqlSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMysqlSSHTunnelMethodDestinationMysqlSSHKeyAuthentication(destinationMysqlSSHKeyAuthentication DestinationMysqlSSHKeyAuthentication) DestinationMysqlSSHTunnelMethod { + typ := DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHKeyAuthentication return DestinationMysqlSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMysqlSSHKeyAuthentication: &destinationMysqlSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMysqlSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMysqlPasswordAuthentication) DestinationMysqlSSHTunnelMethod { - typ := DestinationMysqlSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMysqlSSHTunnelMethodDestinationMysqlPasswordAuthentication(destinationMysqlPasswordAuthentication DestinationMysqlPasswordAuthentication) DestinationMysqlSSHTunnelMethod { + typ := DestinationMysqlSSHTunnelMethodTypeDestinationMysqlPasswordAuthentication return DestinationMysqlSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMysqlPasswordAuthentication: &destinationMysqlPasswordAuthentication, + Type: typ, } } func (u *DestinationMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMysqlNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMysqlSSHTunnelMethodTypeNoTunnel + destinationMysqlNoTunnel := new(DestinationMysqlNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMysqlNoTunnel, "", true, true); err == nil { + u.DestinationMysqlNoTunnel = destinationMysqlNoTunnel + u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlNoTunnel return nil } - sshKeyAuthentication := new(DestinationMysqlSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMysqlSSHTunnelMethodTypeSSHKeyAuthentication + destinationMysqlSSHKeyAuthentication := new(DestinationMysqlSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMysqlSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMysqlSSHKeyAuthentication = destinationMysqlSSHKeyAuthentication + u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMysqlPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMysqlSSHTunnelMethodTypePasswordAuthentication + destinationMysqlPasswordAuthentication := new(DestinationMysqlPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMysqlPasswordAuthentication, "", true, true); err == nil { + u.DestinationMysqlPasswordAuthentication = destinationMysqlPasswordAuthentication + u.Type = DestinationMysqlSSHTunnelMethodTypeDestinationMysqlPasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *DestinationMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationMysqlSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMysqlNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMysqlNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMysqlSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMysqlSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMysqlPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMysqlPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationmysqlupdate.go b/internal/sdk/pkg/models/shared/destinationmysqlupdate.go index 5aacf25f1..f75fe6348 100644 --- a/internal/sdk/pkg/models/shared/destinationmysqlupdate.go +++ b/internal/sdk/pkg/models/shared/destinationmysqlupdate.go @@ -222,66 +222,66 @@ func (o *DestinationMysqlUpdateNoTunnel) GetTunnelMethod() DestinationMysqlUpdat type DestinationMysqlUpdateSSHTunnelMethodType string const ( - DestinationMysqlUpdateSSHTunnelMethodTypeNoTunnel DestinationMysqlUpdateSSHTunnelMethodType = "NoTunnel" - DestinationMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationMysqlUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationMysqlUpdateSSHTunnelMethodTypePasswordAuthentication DestinationMysqlUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateNoTunnel DestinationMysqlUpdateSSHTunnelMethodType = "destination-mysql-update_No Tunnel" + DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHKeyAuthentication DestinationMysqlUpdateSSHTunnelMethodType = "destination-mysql-update_SSH Key Authentication" + DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdatePasswordAuthentication DestinationMysqlUpdateSSHTunnelMethodType = "destination-mysql-update_Password Authentication" ) type DestinationMysqlUpdateSSHTunnelMethod struct { - NoTunnel *DestinationMysqlUpdateNoTunnel - SSHKeyAuthentication *DestinationMysqlUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationMysqlUpdatePasswordAuthentication + DestinationMysqlUpdateNoTunnel *DestinationMysqlUpdateNoTunnel + DestinationMysqlUpdateSSHKeyAuthentication *DestinationMysqlUpdateSSHKeyAuthentication + DestinationMysqlUpdatePasswordAuthentication *DestinationMysqlUpdatePasswordAuthentication Type DestinationMysqlUpdateSSHTunnelMethodType } -func CreateDestinationMysqlUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationMysqlUpdateNoTunnel) DestinationMysqlUpdateSSHTunnelMethod { - typ := DestinationMysqlUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationMysqlUpdateSSHTunnelMethodDestinationMysqlUpdateNoTunnel(destinationMysqlUpdateNoTunnel DestinationMysqlUpdateNoTunnel) DestinationMysqlUpdateSSHTunnelMethod { + typ := DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateNoTunnel return DestinationMysqlUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationMysqlUpdateNoTunnel: &destinationMysqlUpdateNoTunnel, + Type: typ, } } -func CreateDestinationMysqlUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationMysqlUpdateSSHKeyAuthentication) DestinationMysqlUpdateSSHTunnelMethod { - typ := DestinationMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationMysqlUpdateSSHTunnelMethodDestinationMysqlUpdateSSHKeyAuthentication(destinationMysqlUpdateSSHKeyAuthentication DestinationMysqlUpdateSSHKeyAuthentication) DestinationMysqlUpdateSSHTunnelMethod { + typ := DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHKeyAuthentication return DestinationMysqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationMysqlUpdateSSHKeyAuthentication: &destinationMysqlUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationMysqlUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationMysqlUpdatePasswordAuthentication) DestinationMysqlUpdateSSHTunnelMethod { - typ := DestinationMysqlUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationMysqlUpdateSSHTunnelMethodDestinationMysqlUpdatePasswordAuthentication(destinationMysqlUpdatePasswordAuthentication DestinationMysqlUpdatePasswordAuthentication) DestinationMysqlUpdateSSHTunnelMethod { + typ := DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdatePasswordAuthentication return DestinationMysqlUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationMysqlUpdatePasswordAuthentication: &destinationMysqlUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationMysqlUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeNoTunnel + destinationMysqlUpdateNoTunnel := new(DestinationMysqlUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationMysqlUpdateNoTunnel, "", true, true); err == nil { + u.DestinationMysqlUpdateNoTunnel = destinationMysqlUpdateNoTunnel + u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationMysqlUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationMysqlUpdateSSHKeyAuthentication := new(DestinationMysqlUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMysqlUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationMysqlUpdateSSHKeyAuthentication = destinationMysqlUpdateSSHKeyAuthentication + u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationMysqlUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationMysqlUpdateSSHTunnelMethodTypePasswordAuthentication + destinationMysqlUpdatePasswordAuthentication := new(DestinationMysqlUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationMysqlUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationMysqlUpdatePasswordAuthentication = destinationMysqlUpdatePasswordAuthentication + u.Type = DestinationMysqlUpdateSSHTunnelMethodTypeDestinationMysqlUpdatePasswordAuthentication return nil } @@ -289,16 +289,16 @@ func (u *DestinationMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error } func (u DestinationMysqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationMysqlUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationMysqlUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationMysqlUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationMysqlUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationMysqlUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationMysqlUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationoracle.go b/internal/sdk/pkg/models/shared/destinationoracle.go index 1cc5eb8a4..d84c430f6 100644 --- a/internal/sdk/pkg/models/shared/destinationoracle.go +++ b/internal/sdk/pkg/models/shared/destinationoracle.go @@ -246,66 +246,66 @@ func (o *DestinationOracleNoTunnel) GetTunnelMethod() DestinationOracleTunnelMet type DestinationOracleSSHTunnelMethodType string const ( - DestinationOracleSSHTunnelMethodTypeNoTunnel DestinationOracleSSHTunnelMethodType = "NoTunnel" - DestinationOracleSSHTunnelMethodTypeSSHKeyAuthentication DestinationOracleSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationOracleSSHTunnelMethodTypePasswordAuthentication DestinationOracleSSHTunnelMethodType = "PasswordAuthentication" + DestinationOracleSSHTunnelMethodTypeDestinationOracleNoTunnel DestinationOracleSSHTunnelMethodType = "destination-oracle_No Tunnel" + DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHKeyAuthentication DestinationOracleSSHTunnelMethodType = "destination-oracle_SSH Key Authentication" + DestinationOracleSSHTunnelMethodTypeDestinationOraclePasswordAuthentication DestinationOracleSSHTunnelMethodType = "destination-oracle_Password Authentication" ) type DestinationOracleSSHTunnelMethod struct { - NoTunnel *DestinationOracleNoTunnel - SSHKeyAuthentication *DestinationOracleSSHKeyAuthentication - PasswordAuthentication *DestinationOraclePasswordAuthentication + DestinationOracleNoTunnel *DestinationOracleNoTunnel + DestinationOracleSSHKeyAuthentication *DestinationOracleSSHKeyAuthentication + DestinationOraclePasswordAuthentication *DestinationOraclePasswordAuthentication Type DestinationOracleSSHTunnelMethodType } -func CreateDestinationOracleSSHTunnelMethodNoTunnel(noTunnel DestinationOracleNoTunnel) DestinationOracleSSHTunnelMethod { - typ := DestinationOracleSSHTunnelMethodTypeNoTunnel +func CreateDestinationOracleSSHTunnelMethodDestinationOracleNoTunnel(destinationOracleNoTunnel DestinationOracleNoTunnel) DestinationOracleSSHTunnelMethod { + typ := DestinationOracleSSHTunnelMethodTypeDestinationOracleNoTunnel return DestinationOracleSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationOracleNoTunnel: &destinationOracleNoTunnel, + Type: typ, } } -func CreateDestinationOracleSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationOracleSSHKeyAuthentication) DestinationOracleSSHTunnelMethod { - typ := DestinationOracleSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationOracleSSHTunnelMethodDestinationOracleSSHKeyAuthentication(destinationOracleSSHKeyAuthentication DestinationOracleSSHKeyAuthentication) DestinationOracleSSHTunnelMethod { + typ := DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHKeyAuthentication return DestinationOracleSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationOracleSSHKeyAuthentication: &destinationOracleSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationOracleSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationOraclePasswordAuthentication) DestinationOracleSSHTunnelMethod { - typ := DestinationOracleSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationOracleSSHTunnelMethodDestinationOraclePasswordAuthentication(destinationOraclePasswordAuthentication DestinationOraclePasswordAuthentication) DestinationOracleSSHTunnelMethod { + typ := DestinationOracleSSHTunnelMethodTypeDestinationOraclePasswordAuthentication return DestinationOracleSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationOraclePasswordAuthentication: &destinationOraclePasswordAuthentication, + Type: typ, } } func (u *DestinationOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationOracleNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationOracleSSHTunnelMethodTypeNoTunnel + destinationOracleNoTunnel := new(DestinationOracleNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationOracleNoTunnel, "", true, true); err == nil { + u.DestinationOracleNoTunnel = destinationOracleNoTunnel + u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOracleNoTunnel return nil } - sshKeyAuthentication := new(DestinationOracleSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationOracleSSHTunnelMethodTypeSSHKeyAuthentication + destinationOracleSSHKeyAuthentication := new(DestinationOracleSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationOracleSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationOracleSSHKeyAuthentication = destinationOracleSSHKeyAuthentication + u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOracleSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationOraclePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationOracleSSHTunnelMethodTypePasswordAuthentication + destinationOraclePasswordAuthentication := new(DestinationOraclePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationOraclePasswordAuthentication, "", true, true); err == nil { + u.DestinationOraclePasswordAuthentication = destinationOraclePasswordAuthentication + u.Type = DestinationOracleSSHTunnelMethodTypeDestinationOraclePasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *DestinationOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationOracleSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationOracleNoTunnel != nil { + return utils.MarshalJSON(u.DestinationOracleNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationOracleSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationOracleSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationOraclePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationOraclePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationoracleupdate.go b/internal/sdk/pkg/models/shared/destinationoracleupdate.go index 48392bc75..020a21e11 100644 --- a/internal/sdk/pkg/models/shared/destinationoracleupdate.go +++ b/internal/sdk/pkg/models/shared/destinationoracleupdate.go @@ -222,66 +222,66 @@ func (o *DestinationOracleUpdateNoTunnel) GetTunnelMethod() DestinationOracleUpd type DestinationOracleUpdateSSHTunnelMethodType string const ( - DestinationOracleUpdateSSHTunnelMethodTypeNoTunnel DestinationOracleUpdateSSHTunnelMethodType = "NoTunnel" - DestinationOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationOracleUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationOracleUpdateSSHTunnelMethodTypePasswordAuthentication DestinationOracleUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateNoTunnel DestinationOracleUpdateSSHTunnelMethodType = "destination-oracle-update_No Tunnel" + DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHKeyAuthentication DestinationOracleUpdateSSHTunnelMethodType = "destination-oracle-update_SSH Key Authentication" + DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdatePasswordAuthentication DestinationOracleUpdateSSHTunnelMethodType = "destination-oracle-update_Password Authentication" ) type DestinationOracleUpdateSSHTunnelMethod struct { - NoTunnel *DestinationOracleUpdateNoTunnel - SSHKeyAuthentication *DestinationOracleUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationOracleUpdatePasswordAuthentication + DestinationOracleUpdateNoTunnel *DestinationOracleUpdateNoTunnel + DestinationOracleUpdateSSHKeyAuthentication *DestinationOracleUpdateSSHKeyAuthentication + DestinationOracleUpdatePasswordAuthentication *DestinationOracleUpdatePasswordAuthentication Type DestinationOracleUpdateSSHTunnelMethodType } -func CreateDestinationOracleUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationOracleUpdateNoTunnel) DestinationOracleUpdateSSHTunnelMethod { - typ := DestinationOracleUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationOracleUpdateSSHTunnelMethodDestinationOracleUpdateNoTunnel(destinationOracleUpdateNoTunnel DestinationOracleUpdateNoTunnel) DestinationOracleUpdateSSHTunnelMethod { + typ := DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateNoTunnel return DestinationOracleUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationOracleUpdateNoTunnel: &destinationOracleUpdateNoTunnel, + Type: typ, } } -func CreateDestinationOracleUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationOracleUpdateSSHKeyAuthentication) DestinationOracleUpdateSSHTunnelMethod { - typ := DestinationOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationOracleUpdateSSHTunnelMethodDestinationOracleUpdateSSHKeyAuthentication(destinationOracleUpdateSSHKeyAuthentication DestinationOracleUpdateSSHKeyAuthentication) DestinationOracleUpdateSSHTunnelMethod { + typ := DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHKeyAuthentication return DestinationOracleUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationOracleUpdateSSHKeyAuthentication: &destinationOracleUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationOracleUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationOracleUpdatePasswordAuthentication) DestinationOracleUpdateSSHTunnelMethod { - typ := DestinationOracleUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationOracleUpdateSSHTunnelMethodDestinationOracleUpdatePasswordAuthentication(destinationOracleUpdatePasswordAuthentication DestinationOracleUpdatePasswordAuthentication) DestinationOracleUpdateSSHTunnelMethod { + typ := DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdatePasswordAuthentication return DestinationOracleUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationOracleUpdatePasswordAuthentication: &destinationOracleUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationOracleUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationOracleUpdateSSHTunnelMethodTypeNoTunnel + destinationOracleUpdateNoTunnel := new(DestinationOracleUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationOracleUpdateNoTunnel, "", true, true); err == nil { + u.DestinationOracleUpdateNoTunnel = destinationOracleUpdateNoTunnel + u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationOracleUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationOracleUpdateSSHKeyAuthentication := new(DestinationOracleUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationOracleUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationOracleUpdateSSHKeyAuthentication = destinationOracleUpdateSSHKeyAuthentication + u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationOracleUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationOracleUpdateSSHTunnelMethodTypePasswordAuthentication + destinationOracleUpdatePasswordAuthentication := new(DestinationOracleUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationOracleUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationOracleUpdatePasswordAuthentication = destinationOracleUpdatePasswordAuthentication + u.Type = DestinationOracleUpdateSSHTunnelMethodTypeDestinationOracleUpdatePasswordAuthentication return nil } @@ -289,16 +289,16 @@ func (u *DestinationOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) erro } func (u DestinationOracleUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationOracleUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationOracleUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationOracleUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationOracleUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationOracleUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationOracleUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationpinecone.go b/internal/sdk/pkg/models/shared/destinationpinecone.go index 63ecc6193..b140bfd9b 100644 --- a/internal/sdk/pkg/models/shared/destinationpinecone.go +++ b/internal/sdk/pkg/models/shared/destinationpinecone.go @@ -184,66 +184,66 @@ func (o *DestinationPineconeOpenAI) GetOpenaiKey() string { type DestinationPineconeEmbeddingType string const ( - DestinationPineconeEmbeddingTypeOpenAI DestinationPineconeEmbeddingType = "OpenAI" - DestinationPineconeEmbeddingTypeCohere DestinationPineconeEmbeddingType = "Cohere" - DestinationPineconeEmbeddingTypeFake DestinationPineconeEmbeddingType = "Fake" + DestinationPineconeEmbeddingTypeDestinationPineconeOpenAI DestinationPineconeEmbeddingType = "destination-pinecone_OpenAI" + DestinationPineconeEmbeddingTypeDestinationPineconeCohere DestinationPineconeEmbeddingType = "destination-pinecone_Cohere" + DestinationPineconeEmbeddingTypeDestinationPineconeFake DestinationPineconeEmbeddingType = "destination-pinecone_Fake" ) type DestinationPineconeEmbedding struct { - OpenAI *DestinationPineconeOpenAI - Cohere *DestinationPineconeCohere - Fake *DestinationPineconeFake + DestinationPineconeOpenAI *DestinationPineconeOpenAI + DestinationPineconeCohere *DestinationPineconeCohere + DestinationPineconeFake *DestinationPineconeFake Type DestinationPineconeEmbeddingType } -func CreateDestinationPineconeEmbeddingOpenAI(openAI DestinationPineconeOpenAI) DestinationPineconeEmbedding { - typ := DestinationPineconeEmbeddingTypeOpenAI +func CreateDestinationPineconeEmbeddingDestinationPineconeOpenAI(destinationPineconeOpenAI DestinationPineconeOpenAI) DestinationPineconeEmbedding { + typ := DestinationPineconeEmbeddingTypeDestinationPineconeOpenAI return DestinationPineconeEmbedding{ - OpenAI: &openAI, - Type: typ, + DestinationPineconeOpenAI: &destinationPineconeOpenAI, + Type: typ, } } -func CreateDestinationPineconeEmbeddingCohere(cohere DestinationPineconeCohere) DestinationPineconeEmbedding { - typ := DestinationPineconeEmbeddingTypeCohere +func CreateDestinationPineconeEmbeddingDestinationPineconeCohere(destinationPineconeCohere DestinationPineconeCohere) DestinationPineconeEmbedding { + typ := DestinationPineconeEmbeddingTypeDestinationPineconeCohere return DestinationPineconeEmbedding{ - Cohere: &cohere, - Type: typ, + DestinationPineconeCohere: &destinationPineconeCohere, + Type: typ, } } -func CreateDestinationPineconeEmbeddingFake(fake DestinationPineconeFake) DestinationPineconeEmbedding { - typ := DestinationPineconeEmbeddingTypeFake +func CreateDestinationPineconeEmbeddingDestinationPineconeFake(destinationPineconeFake DestinationPineconeFake) DestinationPineconeEmbedding { + typ := DestinationPineconeEmbeddingTypeDestinationPineconeFake return DestinationPineconeEmbedding{ - Fake: &fake, - Type: typ, + DestinationPineconeFake: &destinationPineconeFake, + Type: typ, } } func (u *DestinationPineconeEmbedding) UnmarshalJSON(data []byte) error { - fake := new(DestinationPineconeFake) - if err := utils.UnmarshalJSON(data, &fake, "", true, true); err == nil { - u.Fake = fake - u.Type = DestinationPineconeEmbeddingTypeFake + destinationPineconeFake := new(DestinationPineconeFake) + if err := utils.UnmarshalJSON(data, &destinationPineconeFake, "", true, true); err == nil { + u.DestinationPineconeFake = destinationPineconeFake + u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeFake return nil } - openAI := new(DestinationPineconeOpenAI) - if err := utils.UnmarshalJSON(data, &openAI, "", true, true); err == nil { - u.OpenAI = openAI - u.Type = DestinationPineconeEmbeddingTypeOpenAI + destinationPineconeOpenAI := new(DestinationPineconeOpenAI) + if err := utils.UnmarshalJSON(data, &destinationPineconeOpenAI, "", true, true); err == nil { + u.DestinationPineconeOpenAI = destinationPineconeOpenAI + u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeOpenAI return nil } - cohere := new(DestinationPineconeCohere) - if err := utils.UnmarshalJSON(data, &cohere, "", true, true); err == nil { - u.Cohere = cohere - u.Type = DestinationPineconeEmbeddingTypeCohere + destinationPineconeCohere := new(DestinationPineconeCohere) + if err := utils.UnmarshalJSON(data, &destinationPineconeCohere, "", true, true); err == nil { + u.DestinationPineconeCohere = destinationPineconeCohere + u.Type = DestinationPineconeEmbeddingTypeDestinationPineconeCohere return nil } @@ -251,16 +251,16 @@ func (u *DestinationPineconeEmbedding) UnmarshalJSON(data []byte) error { } func (u DestinationPineconeEmbedding) MarshalJSON() ([]byte, error) { - if u.OpenAI != nil { - return utils.MarshalJSON(u.OpenAI, "", true) + if u.DestinationPineconeOpenAI != nil { + return utils.MarshalJSON(u.DestinationPineconeOpenAI, "", true) } - if u.Cohere != nil { - return utils.MarshalJSON(u.Cohere, "", true) + if u.DestinationPineconeCohere != nil { + return utils.MarshalJSON(u.DestinationPineconeCohere, "", true) } - if u.Fake != nil { - return utils.MarshalJSON(u.Fake, "", true) + if u.DestinationPineconeFake != nil { + return utils.MarshalJSON(u.DestinationPineconeFake, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationpineconeupdate.go b/internal/sdk/pkg/models/shared/destinationpineconeupdate.go index 4b707cfcd..5d4781890 100644 --- a/internal/sdk/pkg/models/shared/destinationpineconeupdate.go +++ b/internal/sdk/pkg/models/shared/destinationpineconeupdate.go @@ -160,66 +160,66 @@ func (o *DestinationPineconeUpdateOpenAI) GetOpenaiKey() string { type DestinationPineconeUpdateEmbeddingType string const ( - DestinationPineconeUpdateEmbeddingTypeOpenAI DestinationPineconeUpdateEmbeddingType = "OpenAI" - DestinationPineconeUpdateEmbeddingTypeCohere DestinationPineconeUpdateEmbeddingType = "Cohere" - DestinationPineconeUpdateEmbeddingTypeFake DestinationPineconeUpdateEmbeddingType = "Fake" + DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateOpenAI DestinationPineconeUpdateEmbeddingType = "destination-pinecone-update_OpenAI" + DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateCohere DestinationPineconeUpdateEmbeddingType = "destination-pinecone-update_Cohere" + DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateFake DestinationPineconeUpdateEmbeddingType = "destination-pinecone-update_Fake" ) type DestinationPineconeUpdateEmbedding struct { - OpenAI *DestinationPineconeUpdateOpenAI - Cohere *DestinationPineconeUpdateCohere - Fake *DestinationPineconeUpdateFake + DestinationPineconeUpdateOpenAI *DestinationPineconeUpdateOpenAI + DestinationPineconeUpdateCohere *DestinationPineconeUpdateCohere + DestinationPineconeUpdateFake *DestinationPineconeUpdateFake Type DestinationPineconeUpdateEmbeddingType } -func CreateDestinationPineconeUpdateEmbeddingOpenAI(openAI DestinationPineconeUpdateOpenAI) DestinationPineconeUpdateEmbedding { - typ := DestinationPineconeUpdateEmbeddingTypeOpenAI +func CreateDestinationPineconeUpdateEmbeddingDestinationPineconeUpdateOpenAI(destinationPineconeUpdateOpenAI DestinationPineconeUpdateOpenAI) DestinationPineconeUpdateEmbedding { + typ := DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateOpenAI return DestinationPineconeUpdateEmbedding{ - OpenAI: &openAI, - Type: typ, + DestinationPineconeUpdateOpenAI: &destinationPineconeUpdateOpenAI, + Type: typ, } } -func CreateDestinationPineconeUpdateEmbeddingCohere(cohere DestinationPineconeUpdateCohere) DestinationPineconeUpdateEmbedding { - typ := DestinationPineconeUpdateEmbeddingTypeCohere +func CreateDestinationPineconeUpdateEmbeddingDestinationPineconeUpdateCohere(destinationPineconeUpdateCohere DestinationPineconeUpdateCohere) DestinationPineconeUpdateEmbedding { + typ := DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateCohere return DestinationPineconeUpdateEmbedding{ - Cohere: &cohere, - Type: typ, + DestinationPineconeUpdateCohere: &destinationPineconeUpdateCohere, + Type: typ, } } -func CreateDestinationPineconeUpdateEmbeddingFake(fake DestinationPineconeUpdateFake) DestinationPineconeUpdateEmbedding { - typ := DestinationPineconeUpdateEmbeddingTypeFake +func CreateDestinationPineconeUpdateEmbeddingDestinationPineconeUpdateFake(destinationPineconeUpdateFake DestinationPineconeUpdateFake) DestinationPineconeUpdateEmbedding { + typ := DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateFake return DestinationPineconeUpdateEmbedding{ - Fake: &fake, - Type: typ, + DestinationPineconeUpdateFake: &destinationPineconeUpdateFake, + Type: typ, } } func (u *DestinationPineconeUpdateEmbedding) UnmarshalJSON(data []byte) error { - fake := new(DestinationPineconeUpdateFake) - if err := utils.UnmarshalJSON(data, &fake, "", true, true); err == nil { - u.Fake = fake - u.Type = DestinationPineconeUpdateEmbeddingTypeFake + destinationPineconeUpdateFake := new(DestinationPineconeUpdateFake) + if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateFake, "", true, true); err == nil { + u.DestinationPineconeUpdateFake = destinationPineconeUpdateFake + u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateFake return nil } - openAI := new(DestinationPineconeUpdateOpenAI) - if err := utils.UnmarshalJSON(data, &openAI, "", true, true); err == nil { - u.OpenAI = openAI - u.Type = DestinationPineconeUpdateEmbeddingTypeOpenAI + destinationPineconeUpdateOpenAI := new(DestinationPineconeUpdateOpenAI) + if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateOpenAI, "", true, true); err == nil { + u.DestinationPineconeUpdateOpenAI = destinationPineconeUpdateOpenAI + u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateOpenAI return nil } - cohere := new(DestinationPineconeUpdateCohere) - if err := utils.UnmarshalJSON(data, &cohere, "", true, true); err == nil { - u.Cohere = cohere - u.Type = DestinationPineconeUpdateEmbeddingTypeCohere + destinationPineconeUpdateCohere := new(DestinationPineconeUpdateCohere) + if err := utils.UnmarshalJSON(data, &destinationPineconeUpdateCohere, "", true, true); err == nil { + u.DestinationPineconeUpdateCohere = destinationPineconeUpdateCohere + u.Type = DestinationPineconeUpdateEmbeddingTypeDestinationPineconeUpdateCohere return nil } @@ -227,16 +227,16 @@ func (u *DestinationPineconeUpdateEmbedding) UnmarshalJSON(data []byte) error { } func (u DestinationPineconeUpdateEmbedding) MarshalJSON() ([]byte, error) { - if u.OpenAI != nil { - return utils.MarshalJSON(u.OpenAI, "", true) + if u.DestinationPineconeUpdateOpenAI != nil { + return utils.MarshalJSON(u.DestinationPineconeUpdateOpenAI, "", true) } - if u.Cohere != nil { - return utils.MarshalJSON(u.Cohere, "", true) + if u.DestinationPineconeUpdateCohere != nil { + return utils.MarshalJSON(u.DestinationPineconeUpdateCohere, "", true) } - if u.Fake != nil { - return utils.MarshalJSON(u.Fake, "", true) + if u.DestinationPineconeUpdateFake != nil { + return utils.MarshalJSON(u.DestinationPineconeUpdateFake, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationpostgres.go b/internal/sdk/pkg/models/shared/destinationpostgres.go index 416205105..61d63ef91 100644 --- a/internal/sdk/pkg/models/shared/destinationpostgres.go +++ b/internal/sdk/pkg/models/shared/destinationpostgres.go @@ -354,120 +354,120 @@ func (o *DestinationPostgresDisable) GetMode() *DestinationPostgresMode { type DestinationPostgresSSLModesType string const ( - DestinationPostgresSSLModesTypeDisable DestinationPostgresSSLModesType = "Disable" - DestinationPostgresSSLModesTypeAllow DestinationPostgresSSLModesType = "Allow" - DestinationPostgresSSLModesTypePrefer DestinationPostgresSSLModesType = "Prefer" - DestinationPostgresSSLModesTypeRequire DestinationPostgresSSLModesType = "Require" - DestinationPostgresSSLModesTypeVerifyCa DestinationPostgresSSLModesType = "VerifyCa" - DestinationPostgresSSLModesTypeVerifyFull DestinationPostgresSSLModesType = "VerifyFull" + DestinationPostgresSSLModesTypeDestinationPostgresDisable DestinationPostgresSSLModesType = "destination-postgres_disable" + DestinationPostgresSSLModesTypeDestinationPostgresAllow DestinationPostgresSSLModesType = "destination-postgres_allow" + DestinationPostgresSSLModesTypeDestinationPostgresPrefer DestinationPostgresSSLModesType = "destination-postgres_prefer" + DestinationPostgresSSLModesTypeDestinationPostgresRequire DestinationPostgresSSLModesType = "destination-postgres_require" + DestinationPostgresSSLModesTypeDestinationPostgresVerifyCa DestinationPostgresSSLModesType = "destination-postgres_verify-ca" + DestinationPostgresSSLModesTypeDestinationPostgresVerifyFull DestinationPostgresSSLModesType = "destination-postgres_verify-full" ) type DestinationPostgresSSLModes struct { - Disable *DestinationPostgresDisable - Allow *DestinationPostgresAllow - Prefer *DestinationPostgresPrefer - Require *DestinationPostgresRequire - VerifyCa *DestinationPostgresVerifyCa - VerifyFull *DestinationPostgresVerifyFull + DestinationPostgresDisable *DestinationPostgresDisable + DestinationPostgresAllow *DestinationPostgresAllow + DestinationPostgresPrefer *DestinationPostgresPrefer + DestinationPostgresRequire *DestinationPostgresRequire + DestinationPostgresVerifyCa *DestinationPostgresVerifyCa + DestinationPostgresVerifyFull *DestinationPostgresVerifyFull Type DestinationPostgresSSLModesType } -func CreateDestinationPostgresSSLModesDisable(disable DestinationPostgresDisable) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypeDisable +func CreateDestinationPostgresSSLModesDestinationPostgresDisable(destinationPostgresDisable DestinationPostgresDisable) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresDisable return DestinationPostgresSSLModes{ - Disable: &disable, - Type: typ, + DestinationPostgresDisable: &destinationPostgresDisable, + Type: typ, } } -func CreateDestinationPostgresSSLModesAllow(allow DestinationPostgresAllow) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypeAllow +func CreateDestinationPostgresSSLModesDestinationPostgresAllow(destinationPostgresAllow DestinationPostgresAllow) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresAllow return DestinationPostgresSSLModes{ - Allow: &allow, - Type: typ, + DestinationPostgresAllow: &destinationPostgresAllow, + Type: typ, } } -func CreateDestinationPostgresSSLModesPrefer(prefer DestinationPostgresPrefer) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypePrefer +func CreateDestinationPostgresSSLModesDestinationPostgresPrefer(destinationPostgresPrefer DestinationPostgresPrefer) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresPrefer return DestinationPostgresSSLModes{ - Prefer: &prefer, - Type: typ, + DestinationPostgresPrefer: &destinationPostgresPrefer, + Type: typ, } } -func CreateDestinationPostgresSSLModesRequire(require DestinationPostgresRequire) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypeRequire +func CreateDestinationPostgresSSLModesDestinationPostgresRequire(destinationPostgresRequire DestinationPostgresRequire) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresRequire return DestinationPostgresSSLModes{ - Require: &require, - Type: typ, + DestinationPostgresRequire: &destinationPostgresRequire, + Type: typ, } } -func CreateDestinationPostgresSSLModesVerifyCa(verifyCa DestinationPostgresVerifyCa) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypeVerifyCa +func CreateDestinationPostgresSSLModesDestinationPostgresVerifyCa(destinationPostgresVerifyCa DestinationPostgresVerifyCa) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresVerifyCa return DestinationPostgresSSLModes{ - VerifyCa: &verifyCa, - Type: typ, + DestinationPostgresVerifyCa: &destinationPostgresVerifyCa, + Type: typ, } } -func CreateDestinationPostgresSSLModesVerifyFull(verifyFull DestinationPostgresVerifyFull) DestinationPostgresSSLModes { - typ := DestinationPostgresSSLModesTypeVerifyFull +func CreateDestinationPostgresSSLModesDestinationPostgresVerifyFull(destinationPostgresVerifyFull DestinationPostgresVerifyFull) DestinationPostgresSSLModes { + typ := DestinationPostgresSSLModesTypeDestinationPostgresVerifyFull return DestinationPostgresSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + DestinationPostgresVerifyFull: &destinationPostgresVerifyFull, + Type: typ, } } func (u *DestinationPostgresSSLModes) UnmarshalJSON(data []byte) error { - disable := new(DestinationPostgresDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = DestinationPostgresSSLModesTypeDisable + destinationPostgresDisable := new(DestinationPostgresDisable) + if err := utils.UnmarshalJSON(data, &destinationPostgresDisable, "", true, true); err == nil { + u.DestinationPostgresDisable = destinationPostgresDisable + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresDisable return nil } - allow := new(DestinationPostgresAllow) - if err := utils.UnmarshalJSON(data, &allow, "", true, true); err == nil { - u.Allow = allow - u.Type = DestinationPostgresSSLModesTypeAllow + destinationPostgresAllow := new(DestinationPostgresAllow) + if err := utils.UnmarshalJSON(data, &destinationPostgresAllow, "", true, true); err == nil { + u.DestinationPostgresAllow = destinationPostgresAllow + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresAllow return nil } - prefer := new(DestinationPostgresPrefer) - if err := utils.UnmarshalJSON(data, &prefer, "", true, true); err == nil { - u.Prefer = prefer - u.Type = DestinationPostgresSSLModesTypePrefer + destinationPostgresPrefer := new(DestinationPostgresPrefer) + if err := utils.UnmarshalJSON(data, &destinationPostgresPrefer, "", true, true); err == nil { + u.DestinationPostgresPrefer = destinationPostgresPrefer + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresPrefer return nil } - require := new(DestinationPostgresRequire) - if err := utils.UnmarshalJSON(data, &require, "", true, true); err == nil { - u.Require = require - u.Type = DestinationPostgresSSLModesTypeRequire + destinationPostgresRequire := new(DestinationPostgresRequire) + if err := utils.UnmarshalJSON(data, &destinationPostgresRequire, "", true, true); err == nil { + u.DestinationPostgresRequire = destinationPostgresRequire + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresRequire return nil } - verifyCa := new(DestinationPostgresVerifyCa) - if err := utils.UnmarshalJSON(data, &verifyCa, "", true, true); err == nil { - u.VerifyCa = verifyCa - u.Type = DestinationPostgresSSLModesTypeVerifyCa + destinationPostgresVerifyCa := new(DestinationPostgresVerifyCa) + if err := utils.UnmarshalJSON(data, &destinationPostgresVerifyCa, "", true, true); err == nil { + u.DestinationPostgresVerifyCa = destinationPostgresVerifyCa + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresVerifyCa return nil } - verifyFull := new(DestinationPostgresVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = DestinationPostgresSSLModesTypeVerifyFull + destinationPostgresVerifyFull := new(DestinationPostgresVerifyFull) + if err := utils.UnmarshalJSON(data, &destinationPostgresVerifyFull, "", true, true); err == nil { + u.DestinationPostgresVerifyFull = destinationPostgresVerifyFull + u.Type = DestinationPostgresSSLModesTypeDestinationPostgresVerifyFull return nil } @@ -475,28 +475,28 @@ func (u *DestinationPostgresSSLModes) UnmarshalJSON(data []byte) error { } func (u DestinationPostgresSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.DestinationPostgresDisable != nil { + return utils.MarshalJSON(u.DestinationPostgresDisable, "", true) } - if u.Allow != nil { - return utils.MarshalJSON(u.Allow, "", true) + if u.DestinationPostgresAllow != nil { + return utils.MarshalJSON(u.DestinationPostgresAllow, "", true) } - if u.Prefer != nil { - return utils.MarshalJSON(u.Prefer, "", true) + if u.DestinationPostgresPrefer != nil { + return utils.MarshalJSON(u.DestinationPostgresPrefer, "", true) } - if u.Require != nil { - return utils.MarshalJSON(u.Require, "", true) + if u.DestinationPostgresRequire != nil { + return utils.MarshalJSON(u.DestinationPostgresRequire, "", true) } - if u.VerifyCa != nil { - return utils.MarshalJSON(u.VerifyCa, "", true) + if u.DestinationPostgresVerifyCa != nil { + return utils.MarshalJSON(u.DestinationPostgresVerifyCa, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.DestinationPostgresVerifyFull != nil { + return utils.MarshalJSON(u.DestinationPostgresVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -715,66 +715,66 @@ func (o *DestinationPostgresNoTunnel) GetTunnelMethod() DestinationPostgresTunne type DestinationPostgresSSHTunnelMethodType string const ( - DestinationPostgresSSHTunnelMethodTypeNoTunnel DestinationPostgresSSHTunnelMethodType = "NoTunnel" - DestinationPostgresSSHTunnelMethodTypeSSHKeyAuthentication DestinationPostgresSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationPostgresSSHTunnelMethodTypePasswordAuthentication DestinationPostgresSSHTunnelMethodType = "PasswordAuthentication" + DestinationPostgresSSHTunnelMethodTypeDestinationPostgresNoTunnel DestinationPostgresSSHTunnelMethodType = "destination-postgres_No Tunnel" + DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHKeyAuthentication DestinationPostgresSSHTunnelMethodType = "destination-postgres_SSH Key Authentication" + DestinationPostgresSSHTunnelMethodTypeDestinationPostgresPasswordAuthentication DestinationPostgresSSHTunnelMethodType = "destination-postgres_Password Authentication" ) type DestinationPostgresSSHTunnelMethod struct { - NoTunnel *DestinationPostgresNoTunnel - SSHKeyAuthentication *DestinationPostgresSSHKeyAuthentication - PasswordAuthentication *DestinationPostgresPasswordAuthentication + DestinationPostgresNoTunnel *DestinationPostgresNoTunnel + DestinationPostgresSSHKeyAuthentication *DestinationPostgresSSHKeyAuthentication + DestinationPostgresPasswordAuthentication *DestinationPostgresPasswordAuthentication Type DestinationPostgresSSHTunnelMethodType } -func CreateDestinationPostgresSSHTunnelMethodNoTunnel(noTunnel DestinationPostgresNoTunnel) DestinationPostgresSSHTunnelMethod { - typ := DestinationPostgresSSHTunnelMethodTypeNoTunnel +func CreateDestinationPostgresSSHTunnelMethodDestinationPostgresNoTunnel(destinationPostgresNoTunnel DestinationPostgresNoTunnel) DestinationPostgresSSHTunnelMethod { + typ := DestinationPostgresSSHTunnelMethodTypeDestinationPostgresNoTunnel return DestinationPostgresSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationPostgresNoTunnel: &destinationPostgresNoTunnel, + Type: typ, } } -func CreateDestinationPostgresSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationPostgresSSHKeyAuthentication) DestinationPostgresSSHTunnelMethod { - typ := DestinationPostgresSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationPostgresSSHTunnelMethodDestinationPostgresSSHKeyAuthentication(destinationPostgresSSHKeyAuthentication DestinationPostgresSSHKeyAuthentication) DestinationPostgresSSHTunnelMethod { + typ := DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHKeyAuthentication return DestinationPostgresSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationPostgresSSHKeyAuthentication: &destinationPostgresSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationPostgresSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationPostgresPasswordAuthentication) DestinationPostgresSSHTunnelMethod { - typ := DestinationPostgresSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationPostgresSSHTunnelMethodDestinationPostgresPasswordAuthentication(destinationPostgresPasswordAuthentication DestinationPostgresPasswordAuthentication) DestinationPostgresSSHTunnelMethod { + typ := DestinationPostgresSSHTunnelMethodTypeDestinationPostgresPasswordAuthentication return DestinationPostgresSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationPostgresPasswordAuthentication: &destinationPostgresPasswordAuthentication, + Type: typ, } } func (u *DestinationPostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationPostgresNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationPostgresSSHTunnelMethodTypeNoTunnel + destinationPostgresNoTunnel := new(DestinationPostgresNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationPostgresNoTunnel, "", true, true); err == nil { + u.DestinationPostgresNoTunnel = destinationPostgresNoTunnel + u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresNoTunnel return nil } - sshKeyAuthentication := new(DestinationPostgresSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationPostgresSSHTunnelMethodTypeSSHKeyAuthentication + destinationPostgresSSHKeyAuthentication := new(DestinationPostgresSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationPostgresSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationPostgresSSHKeyAuthentication = destinationPostgresSSHKeyAuthentication + u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationPostgresPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationPostgresSSHTunnelMethodTypePasswordAuthentication + destinationPostgresPasswordAuthentication := new(DestinationPostgresPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationPostgresPasswordAuthentication, "", true, true); err == nil { + u.DestinationPostgresPasswordAuthentication = destinationPostgresPasswordAuthentication + u.Type = DestinationPostgresSSHTunnelMethodTypeDestinationPostgresPasswordAuthentication return nil } @@ -782,16 +782,16 @@ func (u *DestinationPostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationPostgresSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationPostgresNoTunnel != nil { + return utils.MarshalJSON(u.DestinationPostgresNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationPostgresSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationPostgresSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationPostgresPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationPostgresPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationpostgresupdate.go b/internal/sdk/pkg/models/shared/destinationpostgresupdate.go index ab78f9c39..ab189797f 100644 --- a/internal/sdk/pkg/models/shared/destinationpostgresupdate.go +++ b/internal/sdk/pkg/models/shared/destinationpostgresupdate.go @@ -330,12 +330,12 @@ func (o *Disable) GetMode() *Mode { type SSLModesType string const ( - SSLModesTypeDisable SSLModesType = "Disable" - SSLModesTypeAllow SSLModesType = "Allow" - SSLModesTypePrefer SSLModesType = "Prefer" - SSLModesTypeRequire SSLModesType = "Require" - SSLModesTypeVerifyCa SSLModesType = "VerifyCa" - SSLModesTypeVerifyFull SSLModesType = "VerifyFull" + SSLModesTypeDisable SSLModesType = "disable" + SSLModesTypeAllow SSLModesType = "allow" + SSLModesTypePrefer SSLModesType = "prefer" + SSLModesTypeRequire SSLModesType = "require" + SSLModesTypeVerifyCa SSLModesType = "verify-ca" + SSLModesTypeVerifyFull SSLModesType = "verify-full" ) type SSLModes struct { @@ -691,66 +691,66 @@ func (o *DestinationPostgresUpdateNoTunnel) GetTunnelMethod() DestinationPostgre type DestinationPostgresUpdateSSHTunnelMethodType string const ( - DestinationPostgresUpdateSSHTunnelMethodTypeNoTunnel DestinationPostgresUpdateSSHTunnelMethodType = "NoTunnel" - DestinationPostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationPostgresUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationPostgresUpdateSSHTunnelMethodTypePasswordAuthentication DestinationPostgresUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateNoTunnel DestinationPostgresUpdateSSHTunnelMethodType = "destination-postgres-update_No Tunnel" + DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHKeyAuthentication DestinationPostgresUpdateSSHTunnelMethodType = "destination-postgres-update_SSH Key Authentication" + DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdatePasswordAuthentication DestinationPostgresUpdateSSHTunnelMethodType = "destination-postgres-update_Password Authentication" ) type DestinationPostgresUpdateSSHTunnelMethod struct { - NoTunnel *DestinationPostgresUpdateNoTunnel - SSHKeyAuthentication *DestinationPostgresUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationPostgresUpdatePasswordAuthentication + DestinationPostgresUpdateNoTunnel *DestinationPostgresUpdateNoTunnel + DestinationPostgresUpdateSSHKeyAuthentication *DestinationPostgresUpdateSSHKeyAuthentication + DestinationPostgresUpdatePasswordAuthentication *DestinationPostgresUpdatePasswordAuthentication Type DestinationPostgresUpdateSSHTunnelMethodType } -func CreateDestinationPostgresUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationPostgresUpdateNoTunnel) DestinationPostgresUpdateSSHTunnelMethod { - typ := DestinationPostgresUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationPostgresUpdateSSHTunnelMethodDestinationPostgresUpdateNoTunnel(destinationPostgresUpdateNoTunnel DestinationPostgresUpdateNoTunnel) DestinationPostgresUpdateSSHTunnelMethod { + typ := DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateNoTunnel return DestinationPostgresUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationPostgresUpdateNoTunnel: &destinationPostgresUpdateNoTunnel, + Type: typ, } } -func CreateDestinationPostgresUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationPostgresUpdateSSHKeyAuthentication) DestinationPostgresUpdateSSHTunnelMethod { - typ := DestinationPostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationPostgresUpdateSSHTunnelMethodDestinationPostgresUpdateSSHKeyAuthentication(destinationPostgresUpdateSSHKeyAuthentication DestinationPostgresUpdateSSHKeyAuthentication) DestinationPostgresUpdateSSHTunnelMethod { + typ := DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHKeyAuthentication return DestinationPostgresUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationPostgresUpdateSSHKeyAuthentication: &destinationPostgresUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationPostgresUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationPostgresUpdatePasswordAuthentication) DestinationPostgresUpdateSSHTunnelMethod { - typ := DestinationPostgresUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationPostgresUpdateSSHTunnelMethodDestinationPostgresUpdatePasswordAuthentication(destinationPostgresUpdatePasswordAuthentication DestinationPostgresUpdatePasswordAuthentication) DestinationPostgresUpdateSSHTunnelMethod { + typ := DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdatePasswordAuthentication return DestinationPostgresUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationPostgresUpdatePasswordAuthentication: &destinationPostgresUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationPostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationPostgresUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeNoTunnel + destinationPostgresUpdateNoTunnel := new(DestinationPostgresUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateNoTunnel, "", true, true); err == nil { + u.DestinationPostgresUpdateNoTunnel = destinationPostgresUpdateNoTunnel + u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationPostgresUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationPostgresUpdateSSHKeyAuthentication := new(DestinationPostgresUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationPostgresUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationPostgresUpdateSSHKeyAuthentication = destinationPostgresUpdateSSHKeyAuthentication + u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationPostgresUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationPostgresUpdateSSHTunnelMethodTypePasswordAuthentication + destinationPostgresUpdatePasswordAuthentication := new(DestinationPostgresUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationPostgresUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationPostgresUpdatePasswordAuthentication = destinationPostgresUpdatePasswordAuthentication + u.Type = DestinationPostgresUpdateSSHTunnelMethodTypeDestinationPostgresUpdatePasswordAuthentication return nil } @@ -758,16 +758,16 @@ func (u *DestinationPostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) er } func (u DestinationPostgresUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationPostgresUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationPostgresUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationPostgresUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationPostgresUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationPostgresUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationPostgresUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationredis.go b/internal/sdk/pkg/models/shared/destinationredis.go index 264f36705..d6be61888 100644 --- a/internal/sdk/pkg/models/shared/destinationredis.go +++ b/internal/sdk/pkg/models/shared/destinationredis.go @@ -185,48 +185,48 @@ func (o *DestinationRedisDisable) GetMode() *DestinationRedisMode { type DestinationRedisSSLModesType string const ( - DestinationRedisSSLModesTypeDisable DestinationRedisSSLModesType = "Disable" - DestinationRedisSSLModesTypeVerifyFull DestinationRedisSSLModesType = "VerifyFull" + DestinationRedisSSLModesTypeDestinationRedisDisable DestinationRedisSSLModesType = "destination-redis_disable" + DestinationRedisSSLModesTypeDestinationRedisVerifyFull DestinationRedisSSLModesType = "destination-redis_verify-full" ) type DestinationRedisSSLModes struct { - Disable *DestinationRedisDisable - VerifyFull *DestinationRedisVerifyFull + DestinationRedisDisable *DestinationRedisDisable + DestinationRedisVerifyFull *DestinationRedisVerifyFull Type DestinationRedisSSLModesType } -func CreateDestinationRedisSSLModesDisable(disable DestinationRedisDisable) DestinationRedisSSLModes { - typ := DestinationRedisSSLModesTypeDisable +func CreateDestinationRedisSSLModesDestinationRedisDisable(destinationRedisDisable DestinationRedisDisable) DestinationRedisSSLModes { + typ := DestinationRedisSSLModesTypeDestinationRedisDisable return DestinationRedisSSLModes{ - Disable: &disable, - Type: typ, + DestinationRedisDisable: &destinationRedisDisable, + Type: typ, } } -func CreateDestinationRedisSSLModesVerifyFull(verifyFull DestinationRedisVerifyFull) DestinationRedisSSLModes { - typ := DestinationRedisSSLModesTypeVerifyFull +func CreateDestinationRedisSSLModesDestinationRedisVerifyFull(destinationRedisVerifyFull DestinationRedisVerifyFull) DestinationRedisSSLModes { + typ := DestinationRedisSSLModesTypeDestinationRedisVerifyFull return DestinationRedisSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + DestinationRedisVerifyFull: &destinationRedisVerifyFull, + Type: typ, } } func (u *DestinationRedisSSLModes) UnmarshalJSON(data []byte) error { - disable := new(DestinationRedisDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = DestinationRedisSSLModesTypeDisable + destinationRedisDisable := new(DestinationRedisDisable) + if err := utils.UnmarshalJSON(data, &destinationRedisDisable, "", true, true); err == nil { + u.DestinationRedisDisable = destinationRedisDisable + u.Type = DestinationRedisSSLModesTypeDestinationRedisDisable return nil } - verifyFull := new(DestinationRedisVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = DestinationRedisSSLModesTypeVerifyFull + destinationRedisVerifyFull := new(DestinationRedisVerifyFull) + if err := utils.UnmarshalJSON(data, &destinationRedisVerifyFull, "", true, true); err == nil { + u.DestinationRedisVerifyFull = destinationRedisVerifyFull + u.Type = DestinationRedisSSLModesTypeDestinationRedisVerifyFull return nil } @@ -234,12 +234,12 @@ func (u *DestinationRedisSSLModes) UnmarshalJSON(data []byte) error { } func (u DestinationRedisSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.DestinationRedisDisable != nil { + return utils.MarshalJSON(u.DestinationRedisDisable, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.DestinationRedisVerifyFull != nil { + return utils.MarshalJSON(u.DestinationRedisVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -458,66 +458,66 @@ func (o *DestinationRedisNoTunnel) GetTunnelMethod() DestinationRedisTunnelMetho type DestinationRedisSSHTunnelMethodType string const ( - DestinationRedisSSHTunnelMethodTypeNoTunnel DestinationRedisSSHTunnelMethodType = "NoTunnel" - DestinationRedisSSHTunnelMethodTypeSSHKeyAuthentication DestinationRedisSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationRedisSSHTunnelMethodTypePasswordAuthentication DestinationRedisSSHTunnelMethodType = "PasswordAuthentication" + DestinationRedisSSHTunnelMethodTypeDestinationRedisNoTunnel DestinationRedisSSHTunnelMethodType = "destination-redis_No Tunnel" + DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHKeyAuthentication DestinationRedisSSHTunnelMethodType = "destination-redis_SSH Key Authentication" + DestinationRedisSSHTunnelMethodTypeDestinationRedisPasswordAuthentication DestinationRedisSSHTunnelMethodType = "destination-redis_Password Authentication" ) type DestinationRedisSSHTunnelMethod struct { - NoTunnel *DestinationRedisNoTunnel - SSHKeyAuthentication *DestinationRedisSSHKeyAuthentication - PasswordAuthentication *DestinationRedisPasswordAuthentication + DestinationRedisNoTunnel *DestinationRedisNoTunnel + DestinationRedisSSHKeyAuthentication *DestinationRedisSSHKeyAuthentication + DestinationRedisPasswordAuthentication *DestinationRedisPasswordAuthentication Type DestinationRedisSSHTunnelMethodType } -func CreateDestinationRedisSSHTunnelMethodNoTunnel(noTunnel DestinationRedisNoTunnel) DestinationRedisSSHTunnelMethod { - typ := DestinationRedisSSHTunnelMethodTypeNoTunnel +func CreateDestinationRedisSSHTunnelMethodDestinationRedisNoTunnel(destinationRedisNoTunnel DestinationRedisNoTunnel) DestinationRedisSSHTunnelMethod { + typ := DestinationRedisSSHTunnelMethodTypeDestinationRedisNoTunnel return DestinationRedisSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationRedisNoTunnel: &destinationRedisNoTunnel, + Type: typ, } } -func CreateDestinationRedisSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationRedisSSHKeyAuthentication) DestinationRedisSSHTunnelMethod { - typ := DestinationRedisSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationRedisSSHTunnelMethodDestinationRedisSSHKeyAuthentication(destinationRedisSSHKeyAuthentication DestinationRedisSSHKeyAuthentication) DestinationRedisSSHTunnelMethod { + typ := DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHKeyAuthentication return DestinationRedisSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationRedisSSHKeyAuthentication: &destinationRedisSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationRedisSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationRedisPasswordAuthentication) DestinationRedisSSHTunnelMethod { - typ := DestinationRedisSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationRedisSSHTunnelMethodDestinationRedisPasswordAuthentication(destinationRedisPasswordAuthentication DestinationRedisPasswordAuthentication) DestinationRedisSSHTunnelMethod { + typ := DestinationRedisSSHTunnelMethodTypeDestinationRedisPasswordAuthentication return DestinationRedisSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationRedisPasswordAuthentication: &destinationRedisPasswordAuthentication, + Type: typ, } } func (u *DestinationRedisSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationRedisNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationRedisSSHTunnelMethodTypeNoTunnel + destinationRedisNoTunnel := new(DestinationRedisNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationRedisNoTunnel, "", true, true); err == nil { + u.DestinationRedisNoTunnel = destinationRedisNoTunnel + u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisNoTunnel return nil } - sshKeyAuthentication := new(DestinationRedisSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationRedisSSHTunnelMethodTypeSSHKeyAuthentication + destinationRedisSSHKeyAuthentication := new(DestinationRedisSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedisSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationRedisSSHKeyAuthentication = destinationRedisSSHKeyAuthentication + u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationRedisPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationRedisSSHTunnelMethodTypePasswordAuthentication + destinationRedisPasswordAuthentication := new(DestinationRedisPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedisPasswordAuthentication, "", true, true); err == nil { + u.DestinationRedisPasswordAuthentication = destinationRedisPasswordAuthentication + u.Type = DestinationRedisSSHTunnelMethodTypeDestinationRedisPasswordAuthentication return nil } @@ -525,16 +525,16 @@ func (u *DestinationRedisSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationRedisSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationRedisNoTunnel != nil { + return utils.MarshalJSON(u.DestinationRedisNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationRedisSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedisSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationRedisPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedisPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationredisupdate.go b/internal/sdk/pkg/models/shared/destinationredisupdate.go index a308a3532..1f1109f4f 100644 --- a/internal/sdk/pkg/models/shared/destinationredisupdate.go +++ b/internal/sdk/pkg/models/shared/destinationredisupdate.go @@ -161,48 +161,48 @@ func (o *DestinationRedisUpdateDisable) GetMode() *DestinationRedisUpdateMode { type DestinationRedisUpdateSSLModesType string const ( - DestinationRedisUpdateSSLModesTypeDisable DestinationRedisUpdateSSLModesType = "Disable" - DestinationRedisUpdateSSLModesTypeVerifyFull DestinationRedisUpdateSSLModesType = "VerifyFull" + DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateDisable DestinationRedisUpdateSSLModesType = "destination-redis-update_disable" + DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateVerifyFull DestinationRedisUpdateSSLModesType = "destination-redis-update_verify-full" ) type DestinationRedisUpdateSSLModes struct { - Disable *DestinationRedisUpdateDisable - VerifyFull *DestinationRedisUpdateVerifyFull + DestinationRedisUpdateDisable *DestinationRedisUpdateDisable + DestinationRedisUpdateVerifyFull *DestinationRedisUpdateVerifyFull Type DestinationRedisUpdateSSLModesType } -func CreateDestinationRedisUpdateSSLModesDisable(disable DestinationRedisUpdateDisable) DestinationRedisUpdateSSLModes { - typ := DestinationRedisUpdateSSLModesTypeDisable +func CreateDestinationRedisUpdateSSLModesDestinationRedisUpdateDisable(destinationRedisUpdateDisable DestinationRedisUpdateDisable) DestinationRedisUpdateSSLModes { + typ := DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateDisable return DestinationRedisUpdateSSLModes{ - Disable: &disable, - Type: typ, + DestinationRedisUpdateDisable: &destinationRedisUpdateDisable, + Type: typ, } } -func CreateDestinationRedisUpdateSSLModesVerifyFull(verifyFull DestinationRedisUpdateVerifyFull) DestinationRedisUpdateSSLModes { - typ := DestinationRedisUpdateSSLModesTypeVerifyFull +func CreateDestinationRedisUpdateSSLModesDestinationRedisUpdateVerifyFull(destinationRedisUpdateVerifyFull DestinationRedisUpdateVerifyFull) DestinationRedisUpdateSSLModes { + typ := DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateVerifyFull return DestinationRedisUpdateSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + DestinationRedisUpdateVerifyFull: &destinationRedisUpdateVerifyFull, + Type: typ, } } func (u *DestinationRedisUpdateSSLModes) UnmarshalJSON(data []byte) error { - disable := new(DestinationRedisUpdateDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = DestinationRedisUpdateSSLModesTypeDisable + destinationRedisUpdateDisable := new(DestinationRedisUpdateDisable) + if err := utils.UnmarshalJSON(data, &destinationRedisUpdateDisable, "", true, true); err == nil { + u.DestinationRedisUpdateDisable = destinationRedisUpdateDisable + u.Type = DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateDisable return nil } - verifyFull := new(DestinationRedisUpdateVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = DestinationRedisUpdateSSLModesTypeVerifyFull + destinationRedisUpdateVerifyFull := new(DestinationRedisUpdateVerifyFull) + if err := utils.UnmarshalJSON(data, &destinationRedisUpdateVerifyFull, "", true, true); err == nil { + u.DestinationRedisUpdateVerifyFull = destinationRedisUpdateVerifyFull + u.Type = DestinationRedisUpdateSSLModesTypeDestinationRedisUpdateVerifyFull return nil } @@ -210,12 +210,12 @@ func (u *DestinationRedisUpdateSSLModes) UnmarshalJSON(data []byte) error { } func (u DestinationRedisUpdateSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.DestinationRedisUpdateDisable != nil { + return utils.MarshalJSON(u.DestinationRedisUpdateDisable, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.DestinationRedisUpdateVerifyFull != nil { + return utils.MarshalJSON(u.DestinationRedisUpdateVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -434,66 +434,66 @@ func (o *DestinationRedisUpdateNoTunnel) GetTunnelMethod() DestinationRedisUpdat type DestinationRedisUpdateSSHTunnelMethodType string const ( - DestinationRedisUpdateSSHTunnelMethodTypeNoTunnel DestinationRedisUpdateSSHTunnelMethodType = "NoTunnel" - DestinationRedisUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationRedisUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationRedisUpdateSSHTunnelMethodTypePasswordAuthentication DestinationRedisUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateNoTunnel DestinationRedisUpdateSSHTunnelMethodType = "destination-redis-update_No Tunnel" + DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHKeyAuthentication DestinationRedisUpdateSSHTunnelMethodType = "destination-redis-update_SSH Key Authentication" + DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdatePasswordAuthentication DestinationRedisUpdateSSHTunnelMethodType = "destination-redis-update_Password Authentication" ) type DestinationRedisUpdateSSHTunnelMethod struct { - NoTunnel *DestinationRedisUpdateNoTunnel - SSHKeyAuthentication *DestinationRedisUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationRedisUpdatePasswordAuthentication + DestinationRedisUpdateNoTunnel *DestinationRedisUpdateNoTunnel + DestinationRedisUpdateSSHKeyAuthentication *DestinationRedisUpdateSSHKeyAuthentication + DestinationRedisUpdatePasswordAuthentication *DestinationRedisUpdatePasswordAuthentication Type DestinationRedisUpdateSSHTunnelMethodType } -func CreateDestinationRedisUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationRedisUpdateNoTunnel) DestinationRedisUpdateSSHTunnelMethod { - typ := DestinationRedisUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationRedisUpdateSSHTunnelMethodDestinationRedisUpdateNoTunnel(destinationRedisUpdateNoTunnel DestinationRedisUpdateNoTunnel) DestinationRedisUpdateSSHTunnelMethod { + typ := DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateNoTunnel return DestinationRedisUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationRedisUpdateNoTunnel: &destinationRedisUpdateNoTunnel, + Type: typ, } } -func CreateDestinationRedisUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationRedisUpdateSSHKeyAuthentication) DestinationRedisUpdateSSHTunnelMethod { - typ := DestinationRedisUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationRedisUpdateSSHTunnelMethodDestinationRedisUpdateSSHKeyAuthentication(destinationRedisUpdateSSHKeyAuthentication DestinationRedisUpdateSSHKeyAuthentication) DestinationRedisUpdateSSHTunnelMethod { + typ := DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHKeyAuthentication return DestinationRedisUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationRedisUpdateSSHKeyAuthentication: &destinationRedisUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationRedisUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationRedisUpdatePasswordAuthentication) DestinationRedisUpdateSSHTunnelMethod { - typ := DestinationRedisUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationRedisUpdateSSHTunnelMethodDestinationRedisUpdatePasswordAuthentication(destinationRedisUpdatePasswordAuthentication DestinationRedisUpdatePasswordAuthentication) DestinationRedisUpdateSSHTunnelMethod { + typ := DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdatePasswordAuthentication return DestinationRedisUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationRedisUpdatePasswordAuthentication: &destinationRedisUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationRedisUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationRedisUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationRedisUpdateSSHTunnelMethodTypeNoTunnel + destinationRedisUpdateNoTunnel := new(DestinationRedisUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationRedisUpdateNoTunnel, "", true, true); err == nil { + u.DestinationRedisUpdateNoTunnel = destinationRedisUpdateNoTunnel + u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationRedisUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationRedisUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationRedisUpdateSSHKeyAuthentication := new(DestinationRedisUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedisUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationRedisUpdateSSHKeyAuthentication = destinationRedisUpdateSSHKeyAuthentication + u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationRedisUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationRedisUpdateSSHTunnelMethodTypePasswordAuthentication + destinationRedisUpdatePasswordAuthentication := new(DestinationRedisUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedisUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationRedisUpdatePasswordAuthentication = destinationRedisUpdatePasswordAuthentication + u.Type = DestinationRedisUpdateSSHTunnelMethodTypeDestinationRedisUpdatePasswordAuthentication return nil } @@ -501,16 +501,16 @@ func (u *DestinationRedisUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error } func (u DestinationRedisUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationRedisUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationRedisUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationRedisUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedisUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationRedisUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedisUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationredshift.go b/internal/sdk/pkg/models/shared/destinationredshift.go index 74dbd64d3..0c5f74e75 100644 --- a/internal/sdk/pkg/models/shared/destinationredshift.go +++ b/internal/sdk/pkg/models/shared/destinationredshift.go @@ -246,66 +246,66 @@ func (o *DestinationRedshiftNoTunnel) GetTunnelMethod() DestinationRedshiftTunne type DestinationRedshiftSSHTunnelMethodType string const ( - DestinationRedshiftSSHTunnelMethodTypeNoTunnel DestinationRedshiftSSHTunnelMethodType = "NoTunnel" - DestinationRedshiftSSHTunnelMethodTypeSSHKeyAuthentication DestinationRedshiftSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationRedshiftSSHTunnelMethodTypePasswordAuthentication DestinationRedshiftSSHTunnelMethodType = "PasswordAuthentication" + DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftNoTunnel DestinationRedshiftSSHTunnelMethodType = "destination-redshift_No Tunnel" + DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHKeyAuthentication DestinationRedshiftSSHTunnelMethodType = "destination-redshift_SSH Key Authentication" + DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftPasswordAuthentication DestinationRedshiftSSHTunnelMethodType = "destination-redshift_Password Authentication" ) type DestinationRedshiftSSHTunnelMethod struct { - NoTunnel *DestinationRedshiftNoTunnel - SSHKeyAuthentication *DestinationRedshiftSSHKeyAuthentication - PasswordAuthentication *DestinationRedshiftPasswordAuthentication + DestinationRedshiftNoTunnel *DestinationRedshiftNoTunnel + DestinationRedshiftSSHKeyAuthentication *DestinationRedshiftSSHKeyAuthentication + DestinationRedshiftPasswordAuthentication *DestinationRedshiftPasswordAuthentication Type DestinationRedshiftSSHTunnelMethodType } -func CreateDestinationRedshiftSSHTunnelMethodNoTunnel(noTunnel DestinationRedshiftNoTunnel) DestinationRedshiftSSHTunnelMethod { - typ := DestinationRedshiftSSHTunnelMethodTypeNoTunnel +func CreateDestinationRedshiftSSHTunnelMethodDestinationRedshiftNoTunnel(destinationRedshiftNoTunnel DestinationRedshiftNoTunnel) DestinationRedshiftSSHTunnelMethod { + typ := DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftNoTunnel return DestinationRedshiftSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationRedshiftNoTunnel: &destinationRedshiftNoTunnel, + Type: typ, } } -func CreateDestinationRedshiftSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationRedshiftSSHKeyAuthentication) DestinationRedshiftSSHTunnelMethod { - typ := DestinationRedshiftSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationRedshiftSSHTunnelMethodDestinationRedshiftSSHKeyAuthentication(destinationRedshiftSSHKeyAuthentication DestinationRedshiftSSHKeyAuthentication) DestinationRedshiftSSHTunnelMethod { + typ := DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHKeyAuthentication return DestinationRedshiftSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationRedshiftSSHKeyAuthentication: &destinationRedshiftSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationRedshiftSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationRedshiftPasswordAuthentication) DestinationRedshiftSSHTunnelMethod { - typ := DestinationRedshiftSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationRedshiftSSHTunnelMethodDestinationRedshiftPasswordAuthentication(destinationRedshiftPasswordAuthentication DestinationRedshiftPasswordAuthentication) DestinationRedshiftSSHTunnelMethod { + typ := DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftPasswordAuthentication return DestinationRedshiftSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationRedshiftPasswordAuthentication: &destinationRedshiftPasswordAuthentication, + Type: typ, } } func (u *DestinationRedshiftSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationRedshiftNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationRedshiftSSHTunnelMethodTypeNoTunnel + destinationRedshiftNoTunnel := new(DestinationRedshiftNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationRedshiftNoTunnel, "", true, true); err == nil { + u.DestinationRedshiftNoTunnel = destinationRedshiftNoTunnel + u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftNoTunnel return nil } - sshKeyAuthentication := new(DestinationRedshiftSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationRedshiftSSHTunnelMethodTypeSSHKeyAuthentication + destinationRedshiftSSHKeyAuthentication := new(DestinationRedshiftSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedshiftSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationRedshiftSSHKeyAuthentication = destinationRedshiftSSHKeyAuthentication + u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationRedshiftPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationRedshiftSSHTunnelMethodTypePasswordAuthentication + destinationRedshiftPasswordAuthentication := new(DestinationRedshiftPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedshiftPasswordAuthentication, "", true, true); err == nil { + u.DestinationRedshiftPasswordAuthentication = destinationRedshiftPasswordAuthentication + u.Type = DestinationRedshiftSSHTunnelMethodTypeDestinationRedshiftPasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *DestinationRedshiftSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationRedshiftSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationRedshiftNoTunnel != nil { + return utils.MarshalJSON(u.DestinationRedshiftNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationRedshiftSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedshiftSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationRedshiftPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedshiftPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -428,48 +428,48 @@ func (o *DestinationRedshiftNoEncryption) GetEncryptionType() *DestinationRedshi type DestinationRedshiftEncryptionUnionType string const ( - DestinationRedshiftEncryptionUnionTypeNoEncryption DestinationRedshiftEncryptionUnionType = "NoEncryption" - DestinationRedshiftEncryptionUnionTypeAESCBCEnvelopeEncryption DestinationRedshiftEncryptionUnionType = "AESCBCEnvelopeEncryption" + DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption DestinationRedshiftEncryptionUnionType = "destination-redshift_No encryption" + DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption DestinationRedshiftEncryptionUnionType = "destination-redshift_AES-CBC envelope encryption" ) type DestinationRedshiftEncryption struct { - NoEncryption *DestinationRedshiftNoEncryption - AESCBCEnvelopeEncryption *DestinationRedshiftAESCBCEnvelopeEncryption + DestinationRedshiftNoEncryption *DestinationRedshiftNoEncryption + DestinationRedshiftAESCBCEnvelopeEncryption *DestinationRedshiftAESCBCEnvelopeEncryption Type DestinationRedshiftEncryptionUnionType } -func CreateDestinationRedshiftEncryptionNoEncryption(noEncryption DestinationRedshiftNoEncryption) DestinationRedshiftEncryption { - typ := DestinationRedshiftEncryptionUnionTypeNoEncryption +func CreateDestinationRedshiftEncryptionDestinationRedshiftNoEncryption(destinationRedshiftNoEncryption DestinationRedshiftNoEncryption) DestinationRedshiftEncryption { + typ := DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption return DestinationRedshiftEncryption{ - NoEncryption: &noEncryption, - Type: typ, + DestinationRedshiftNoEncryption: &destinationRedshiftNoEncryption, + Type: typ, } } -func CreateDestinationRedshiftEncryptionAESCBCEnvelopeEncryption(aescbcEnvelopeEncryption DestinationRedshiftAESCBCEnvelopeEncryption) DestinationRedshiftEncryption { - typ := DestinationRedshiftEncryptionUnionTypeAESCBCEnvelopeEncryption +func CreateDestinationRedshiftEncryptionDestinationRedshiftAESCBCEnvelopeEncryption(destinationRedshiftAESCBCEnvelopeEncryption DestinationRedshiftAESCBCEnvelopeEncryption) DestinationRedshiftEncryption { + typ := DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption return DestinationRedshiftEncryption{ - AESCBCEnvelopeEncryption: &aescbcEnvelopeEncryption, - Type: typ, + DestinationRedshiftAESCBCEnvelopeEncryption: &destinationRedshiftAESCBCEnvelopeEncryption, + Type: typ, } } func (u *DestinationRedshiftEncryption) UnmarshalJSON(data []byte) error { - noEncryption := new(DestinationRedshiftNoEncryption) - if err := utils.UnmarshalJSON(data, &noEncryption, "", true, true); err == nil { - u.NoEncryption = noEncryption - u.Type = DestinationRedshiftEncryptionUnionTypeNoEncryption + destinationRedshiftNoEncryption := new(DestinationRedshiftNoEncryption) + if err := utils.UnmarshalJSON(data, &destinationRedshiftNoEncryption, "", true, true); err == nil { + u.DestinationRedshiftNoEncryption = destinationRedshiftNoEncryption + u.Type = DestinationRedshiftEncryptionUnionTypeDestinationRedshiftNoEncryption return nil } - aescbcEnvelopeEncryption := new(DestinationRedshiftAESCBCEnvelopeEncryption) - if err := utils.UnmarshalJSON(data, &aescbcEnvelopeEncryption, "", true, true); err == nil { - u.AESCBCEnvelopeEncryption = aescbcEnvelopeEncryption - u.Type = DestinationRedshiftEncryptionUnionTypeAESCBCEnvelopeEncryption + destinationRedshiftAESCBCEnvelopeEncryption := new(DestinationRedshiftAESCBCEnvelopeEncryption) + if err := utils.UnmarshalJSON(data, &destinationRedshiftAESCBCEnvelopeEncryption, "", true, true); err == nil { + u.DestinationRedshiftAESCBCEnvelopeEncryption = destinationRedshiftAESCBCEnvelopeEncryption + u.Type = DestinationRedshiftEncryptionUnionTypeDestinationRedshiftAESCBCEnvelopeEncryption return nil } @@ -477,12 +477,12 @@ func (u *DestinationRedshiftEncryption) UnmarshalJSON(data []byte) error { } func (u DestinationRedshiftEncryption) MarshalJSON() ([]byte, error) { - if u.NoEncryption != nil { - return utils.MarshalJSON(u.NoEncryption, "", true) + if u.DestinationRedshiftNoEncryption != nil { + return utils.MarshalJSON(u.DestinationRedshiftNoEncryption, "", true) } - if u.AESCBCEnvelopeEncryption != nil { - return utils.MarshalJSON(u.AESCBCEnvelopeEncryption, "", true) + if u.DestinationRedshiftAESCBCEnvelopeEncryption != nil { + return utils.MarshalJSON(u.DestinationRedshiftAESCBCEnvelopeEncryption, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -754,48 +754,48 @@ func (o *DestinationRedshiftStandard) GetMethod() DestinationRedshiftMethod { type DestinationRedshiftUploadingMethodType string const ( - DestinationRedshiftUploadingMethodTypeStandard DestinationRedshiftUploadingMethodType = "Standard" - DestinationRedshiftUploadingMethodTypeS3Staging DestinationRedshiftUploadingMethodType = "S3Staging" + DestinationRedshiftUploadingMethodTypeDestinationRedshiftStandard DestinationRedshiftUploadingMethodType = "destination-redshift_Standard" + DestinationRedshiftUploadingMethodTypeDestinationRedshiftS3Staging DestinationRedshiftUploadingMethodType = "destination-redshift_S3 Staging" ) type DestinationRedshiftUploadingMethod struct { - Standard *DestinationRedshiftStandard - S3Staging *DestinationRedshiftS3Staging + DestinationRedshiftStandard *DestinationRedshiftStandard + DestinationRedshiftS3Staging *DestinationRedshiftS3Staging Type DestinationRedshiftUploadingMethodType } -func CreateDestinationRedshiftUploadingMethodStandard(standard DestinationRedshiftStandard) DestinationRedshiftUploadingMethod { - typ := DestinationRedshiftUploadingMethodTypeStandard +func CreateDestinationRedshiftUploadingMethodDestinationRedshiftStandard(destinationRedshiftStandard DestinationRedshiftStandard) DestinationRedshiftUploadingMethod { + typ := DestinationRedshiftUploadingMethodTypeDestinationRedshiftStandard return DestinationRedshiftUploadingMethod{ - Standard: &standard, - Type: typ, + DestinationRedshiftStandard: &destinationRedshiftStandard, + Type: typ, } } -func CreateDestinationRedshiftUploadingMethodS3Staging(s3Staging DestinationRedshiftS3Staging) DestinationRedshiftUploadingMethod { - typ := DestinationRedshiftUploadingMethodTypeS3Staging +func CreateDestinationRedshiftUploadingMethodDestinationRedshiftS3Staging(destinationRedshiftS3Staging DestinationRedshiftS3Staging) DestinationRedshiftUploadingMethod { + typ := DestinationRedshiftUploadingMethodTypeDestinationRedshiftS3Staging return DestinationRedshiftUploadingMethod{ - S3Staging: &s3Staging, - Type: typ, + DestinationRedshiftS3Staging: &destinationRedshiftS3Staging, + Type: typ, } } func (u *DestinationRedshiftUploadingMethod) UnmarshalJSON(data []byte) error { - standard := new(DestinationRedshiftStandard) - if err := utils.UnmarshalJSON(data, &standard, "", true, true); err == nil { - u.Standard = standard - u.Type = DestinationRedshiftUploadingMethodTypeStandard + destinationRedshiftStandard := new(DestinationRedshiftStandard) + if err := utils.UnmarshalJSON(data, &destinationRedshiftStandard, "", true, true); err == nil { + u.DestinationRedshiftStandard = destinationRedshiftStandard + u.Type = DestinationRedshiftUploadingMethodTypeDestinationRedshiftStandard return nil } - s3Staging := new(DestinationRedshiftS3Staging) - if err := utils.UnmarshalJSON(data, &s3Staging, "", true, true); err == nil { - u.S3Staging = s3Staging - u.Type = DestinationRedshiftUploadingMethodTypeS3Staging + destinationRedshiftS3Staging := new(DestinationRedshiftS3Staging) + if err := utils.UnmarshalJSON(data, &destinationRedshiftS3Staging, "", true, true); err == nil { + u.DestinationRedshiftS3Staging = destinationRedshiftS3Staging + u.Type = DestinationRedshiftUploadingMethodTypeDestinationRedshiftS3Staging return nil } @@ -803,12 +803,12 @@ func (u *DestinationRedshiftUploadingMethod) UnmarshalJSON(data []byte) error { } func (u DestinationRedshiftUploadingMethod) MarshalJSON() ([]byte, error) { - if u.Standard != nil { - return utils.MarshalJSON(u.Standard, "", true) + if u.DestinationRedshiftStandard != nil { + return utils.MarshalJSON(u.DestinationRedshiftStandard, "", true) } - if u.S3Staging != nil { - return utils.MarshalJSON(u.S3Staging, "", true) + if u.DestinationRedshiftS3Staging != nil { + return utils.MarshalJSON(u.DestinationRedshiftS3Staging, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationredshiftupdate.go b/internal/sdk/pkg/models/shared/destinationredshiftupdate.go index bcdf95909..15430d050 100644 --- a/internal/sdk/pkg/models/shared/destinationredshiftupdate.go +++ b/internal/sdk/pkg/models/shared/destinationredshiftupdate.go @@ -222,66 +222,66 @@ func (o *DestinationRedshiftUpdateNoTunnel) GetTunnelMethod() DestinationRedshif type DestinationRedshiftUpdateSSHTunnelMethodType string const ( - DestinationRedshiftUpdateSSHTunnelMethodTypeNoTunnel DestinationRedshiftUpdateSSHTunnelMethodType = "NoTunnel" - DestinationRedshiftUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationRedshiftUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationRedshiftUpdateSSHTunnelMethodTypePasswordAuthentication DestinationRedshiftUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateNoTunnel DestinationRedshiftUpdateSSHTunnelMethodType = "destination-redshift-update_No Tunnel" + DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHKeyAuthentication DestinationRedshiftUpdateSSHTunnelMethodType = "destination-redshift-update_SSH Key Authentication" + DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdatePasswordAuthentication DestinationRedshiftUpdateSSHTunnelMethodType = "destination-redshift-update_Password Authentication" ) type DestinationRedshiftUpdateSSHTunnelMethod struct { - NoTunnel *DestinationRedshiftUpdateNoTunnel - SSHKeyAuthentication *DestinationRedshiftUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationRedshiftUpdatePasswordAuthentication + DestinationRedshiftUpdateNoTunnel *DestinationRedshiftUpdateNoTunnel + DestinationRedshiftUpdateSSHKeyAuthentication *DestinationRedshiftUpdateSSHKeyAuthentication + DestinationRedshiftUpdatePasswordAuthentication *DestinationRedshiftUpdatePasswordAuthentication Type DestinationRedshiftUpdateSSHTunnelMethodType } -func CreateDestinationRedshiftUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationRedshiftUpdateNoTunnel) DestinationRedshiftUpdateSSHTunnelMethod { - typ := DestinationRedshiftUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationRedshiftUpdateSSHTunnelMethodDestinationRedshiftUpdateNoTunnel(destinationRedshiftUpdateNoTunnel DestinationRedshiftUpdateNoTunnel) DestinationRedshiftUpdateSSHTunnelMethod { + typ := DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateNoTunnel return DestinationRedshiftUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationRedshiftUpdateNoTunnel: &destinationRedshiftUpdateNoTunnel, + Type: typ, } } -func CreateDestinationRedshiftUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationRedshiftUpdateSSHKeyAuthentication) DestinationRedshiftUpdateSSHTunnelMethod { - typ := DestinationRedshiftUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationRedshiftUpdateSSHTunnelMethodDestinationRedshiftUpdateSSHKeyAuthentication(destinationRedshiftUpdateSSHKeyAuthentication DestinationRedshiftUpdateSSHKeyAuthentication) DestinationRedshiftUpdateSSHTunnelMethod { + typ := DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHKeyAuthentication return DestinationRedshiftUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationRedshiftUpdateSSHKeyAuthentication: &destinationRedshiftUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationRedshiftUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationRedshiftUpdatePasswordAuthentication) DestinationRedshiftUpdateSSHTunnelMethod { - typ := DestinationRedshiftUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationRedshiftUpdateSSHTunnelMethodDestinationRedshiftUpdatePasswordAuthentication(destinationRedshiftUpdatePasswordAuthentication DestinationRedshiftUpdatePasswordAuthentication) DestinationRedshiftUpdateSSHTunnelMethod { + typ := DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdatePasswordAuthentication return DestinationRedshiftUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationRedshiftUpdatePasswordAuthentication: &destinationRedshiftUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationRedshiftUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationRedshiftUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeNoTunnel + destinationRedshiftUpdateNoTunnel := new(DestinationRedshiftUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateNoTunnel, "", true, true); err == nil { + u.DestinationRedshiftUpdateNoTunnel = destinationRedshiftUpdateNoTunnel + u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationRedshiftUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationRedshiftUpdateSSHKeyAuthentication := new(DestinationRedshiftUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationRedshiftUpdateSSHKeyAuthentication = destinationRedshiftUpdateSSHKeyAuthentication + u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationRedshiftUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypePasswordAuthentication + destinationRedshiftUpdatePasswordAuthentication := new(DestinationRedshiftUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationRedshiftUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationRedshiftUpdatePasswordAuthentication = destinationRedshiftUpdatePasswordAuthentication + u.Type = DestinationRedshiftUpdateSSHTunnelMethodTypeDestinationRedshiftUpdatePasswordAuthentication return nil } @@ -289,16 +289,16 @@ func (u *DestinationRedshiftUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) er } func (u DestinationRedshiftUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationRedshiftUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationRedshiftUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationRedshiftUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedshiftUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationRedshiftUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationRedshiftUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -404,8 +404,8 @@ func (o *NoEncryption) GetEncryptionType() *EncryptionType { type DestinationRedshiftUpdateEncryptionUnionType string const ( - DestinationRedshiftUpdateEncryptionUnionTypeNoEncryption DestinationRedshiftUpdateEncryptionUnionType = "NoEncryption" - DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption DestinationRedshiftUpdateEncryptionUnionType = "AESCBCEnvelopeEncryption" + DestinationRedshiftUpdateEncryptionUnionTypeNoEncryption DestinationRedshiftUpdateEncryptionUnionType = "No encryption" + DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption DestinationRedshiftUpdateEncryptionUnionType = "AES-CBC envelope encryption" ) type DestinationRedshiftUpdateEncryption struct { @@ -424,11 +424,11 @@ func CreateDestinationRedshiftUpdateEncryptionNoEncryption(noEncryption NoEncryp } } -func CreateDestinationRedshiftUpdateEncryptionAESCBCEnvelopeEncryption(aescbcEnvelopeEncryption AESCBCEnvelopeEncryption) DestinationRedshiftUpdateEncryption { +func CreateDestinationRedshiftUpdateEncryptionAESCBCEnvelopeEncryption(aesCBCEnvelopeEncryption AESCBCEnvelopeEncryption) DestinationRedshiftUpdateEncryption { typ := DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption return DestinationRedshiftUpdateEncryption{ - AESCBCEnvelopeEncryption: &aescbcEnvelopeEncryption, + AESCBCEnvelopeEncryption: &aesCBCEnvelopeEncryption, Type: typ, } } @@ -442,9 +442,9 @@ func (u *DestinationRedshiftUpdateEncryption) UnmarshalJSON(data []byte) error { return nil } - aescbcEnvelopeEncryption := new(AESCBCEnvelopeEncryption) - if err := utils.UnmarshalJSON(data, &aescbcEnvelopeEncryption, "", true, true); err == nil { - u.AESCBCEnvelopeEncryption = aescbcEnvelopeEncryption + aesCBCEnvelopeEncryption := new(AESCBCEnvelopeEncryption) + if err := utils.UnmarshalJSON(data, &aesCBCEnvelopeEncryption, "", true, true); err == nil { + u.AESCBCEnvelopeEncryption = aesCBCEnvelopeEncryption u.Type = DestinationRedshiftUpdateEncryptionUnionTypeAESCBCEnvelopeEncryption return nil } @@ -731,7 +731,7 @@ type UploadingMethodType string const ( UploadingMethodTypeStandard UploadingMethodType = "Standard" - UploadingMethodTypeS3Staging UploadingMethodType = "S3Staging" + UploadingMethodTypeS3Staging UploadingMethodType = "S3 Staging" ) type UploadingMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinations3.go b/internal/sdk/pkg/models/shared/destinations3.go index 0bc72e3b9..866016573 100644 --- a/internal/sdk/pkg/models/shared/destinations3.go +++ b/internal/sdk/pkg/models/shared/destinations3.go @@ -274,48 +274,48 @@ func (o *DestinationS3SchemasFormatNoCompression) GetCompressionType() *Destinat type DestinationS3SchemasCompressionUnionType string const ( - DestinationS3SchemasCompressionUnionTypeNoCompression DestinationS3SchemasCompressionUnionType = "NoCompression" - DestinationS3SchemasCompressionUnionTypeGzip DestinationS3SchemasCompressionUnionType = "Gzip" + DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasFormatNoCompression DestinationS3SchemasCompressionUnionType = "destination-s3_Schemas_format_No Compression" + DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasGZIP DestinationS3SchemasCompressionUnionType = "destination-s3_Schemas_GZIP" ) type DestinationS3SchemasCompression struct { - NoCompression *DestinationS3SchemasFormatNoCompression - Gzip *DestinationS3SchemasGZIP + DestinationS3SchemasFormatNoCompression *DestinationS3SchemasFormatNoCompression + DestinationS3SchemasGZIP *DestinationS3SchemasGZIP Type DestinationS3SchemasCompressionUnionType } -func CreateDestinationS3SchemasCompressionNoCompression(noCompression DestinationS3SchemasFormatNoCompression) DestinationS3SchemasCompression { - typ := DestinationS3SchemasCompressionUnionTypeNoCompression +func CreateDestinationS3SchemasCompressionDestinationS3SchemasFormatNoCompression(destinationS3SchemasFormatNoCompression DestinationS3SchemasFormatNoCompression) DestinationS3SchemasCompression { + typ := DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasFormatNoCompression return DestinationS3SchemasCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3SchemasFormatNoCompression: &destinationS3SchemasFormatNoCompression, + Type: typ, } } -func CreateDestinationS3SchemasCompressionGzip(gzip DestinationS3SchemasGZIP) DestinationS3SchemasCompression { - typ := DestinationS3SchemasCompressionUnionTypeGzip +func CreateDestinationS3SchemasCompressionDestinationS3SchemasGZIP(destinationS3SchemasGZIP DestinationS3SchemasGZIP) DestinationS3SchemasCompression { + typ := DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasGZIP return DestinationS3SchemasCompression{ - Gzip: &gzip, - Type: typ, + DestinationS3SchemasGZIP: &destinationS3SchemasGZIP, + Type: typ, } } func (u *DestinationS3SchemasCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3SchemasFormatNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3SchemasCompressionUnionTypeNoCompression + destinationS3SchemasFormatNoCompression := new(DestinationS3SchemasFormatNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3SchemasFormatNoCompression, "", true, true); err == nil { + u.DestinationS3SchemasFormatNoCompression = destinationS3SchemasFormatNoCompression + u.Type = DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasFormatNoCompression return nil } - gzip := new(DestinationS3SchemasGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3SchemasCompressionUnionTypeGzip + destinationS3SchemasGZIP := new(DestinationS3SchemasGZIP) + if err := utils.UnmarshalJSON(data, &destinationS3SchemasGZIP, "", true, true); err == nil { + u.DestinationS3SchemasGZIP = destinationS3SchemasGZIP + u.Type = DestinationS3SchemasCompressionUnionTypeDestinationS3SchemasGZIP return nil } @@ -323,12 +323,12 @@ func (u *DestinationS3SchemasCompression) UnmarshalJSON(data []byte) error { } func (u DestinationS3SchemasCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3SchemasFormatNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3SchemasFormatNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3SchemasGZIP != nil { + return utils.MarshalJSON(u.DestinationS3SchemasGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -524,48 +524,48 @@ func (o *DestinationS3SchemasNoCompression) GetCompressionType() *DestinationS3C type DestinationS3CompressionUnionType string const ( - DestinationS3CompressionUnionTypeNoCompression DestinationS3CompressionUnionType = "NoCompression" - DestinationS3CompressionUnionTypeGzip DestinationS3CompressionUnionType = "Gzip" + DestinationS3CompressionUnionTypeDestinationS3SchemasNoCompression DestinationS3CompressionUnionType = "destination-s3_Schemas_No Compression" + DestinationS3CompressionUnionTypeDestinationS3GZIP DestinationS3CompressionUnionType = "destination-s3_GZIP" ) type DestinationS3Compression struct { - NoCompression *DestinationS3SchemasNoCompression - Gzip *DestinationS3GZIP + DestinationS3SchemasNoCompression *DestinationS3SchemasNoCompression + DestinationS3GZIP *DestinationS3GZIP Type DestinationS3CompressionUnionType } -func CreateDestinationS3CompressionNoCompression(noCompression DestinationS3SchemasNoCompression) DestinationS3Compression { - typ := DestinationS3CompressionUnionTypeNoCompression +func CreateDestinationS3CompressionDestinationS3SchemasNoCompression(destinationS3SchemasNoCompression DestinationS3SchemasNoCompression) DestinationS3Compression { + typ := DestinationS3CompressionUnionTypeDestinationS3SchemasNoCompression return DestinationS3Compression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3SchemasNoCompression: &destinationS3SchemasNoCompression, + Type: typ, } } -func CreateDestinationS3CompressionGzip(gzip DestinationS3GZIP) DestinationS3Compression { - typ := DestinationS3CompressionUnionTypeGzip +func CreateDestinationS3CompressionDestinationS3GZIP(destinationS3GZIP DestinationS3GZIP) DestinationS3Compression { + typ := DestinationS3CompressionUnionTypeDestinationS3GZIP return DestinationS3Compression{ - Gzip: &gzip, - Type: typ, + DestinationS3GZIP: &destinationS3GZIP, + Type: typ, } } func (u *DestinationS3Compression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3SchemasNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3CompressionUnionTypeNoCompression + destinationS3SchemasNoCompression := new(DestinationS3SchemasNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3SchemasNoCompression, "", true, true); err == nil { + u.DestinationS3SchemasNoCompression = destinationS3SchemasNoCompression + u.Type = DestinationS3CompressionUnionTypeDestinationS3SchemasNoCompression return nil } - gzip := new(DestinationS3GZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3CompressionUnionTypeGzip + destinationS3GZIP := new(DestinationS3GZIP) + if err := utils.UnmarshalJSON(data, &destinationS3GZIP, "", true, true); err == nil { + u.DestinationS3GZIP = destinationS3GZIP + u.Type = DestinationS3CompressionUnionTypeDestinationS3GZIP return nil } @@ -573,12 +573,12 @@ func (u *DestinationS3Compression) UnmarshalJSON(data []byte) error { } func (u DestinationS3Compression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3SchemasNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3SchemasNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3GZIP != nil { + return utils.MarshalJSON(u.DestinationS3GZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -998,120 +998,120 @@ func (o *DestinationS3NoCompression) GetCodec() *DestinationS3Codec { type DestinationS3CompressionCodecType string const ( - DestinationS3CompressionCodecTypeNoCompression DestinationS3CompressionCodecType = "NoCompression" - DestinationS3CompressionCodecTypeDeflate DestinationS3CompressionCodecType = "Deflate" - DestinationS3CompressionCodecTypeBzip2 DestinationS3CompressionCodecType = "Bzip2" - DestinationS3CompressionCodecTypeXz DestinationS3CompressionCodecType = "Xz" - DestinationS3CompressionCodecTypeZstandard DestinationS3CompressionCodecType = "Zstandard" - DestinationS3CompressionCodecTypeSnappy DestinationS3CompressionCodecType = "Snappy" + DestinationS3CompressionCodecTypeDestinationS3NoCompression DestinationS3CompressionCodecType = "destination-s3_No Compression" + DestinationS3CompressionCodecTypeDestinationS3Deflate DestinationS3CompressionCodecType = "destination-s3_Deflate" + DestinationS3CompressionCodecTypeDestinationS3Bzip2 DestinationS3CompressionCodecType = "destination-s3_bzip2" + DestinationS3CompressionCodecTypeDestinationS3Xz DestinationS3CompressionCodecType = "destination-s3_xz" + DestinationS3CompressionCodecTypeDestinationS3Zstandard DestinationS3CompressionCodecType = "destination-s3_zstandard" + DestinationS3CompressionCodecTypeDestinationS3Snappy DestinationS3CompressionCodecType = "destination-s3_snappy" ) type DestinationS3CompressionCodec struct { - NoCompression *DestinationS3NoCompression - Deflate *DestinationS3Deflate - Bzip2 *DestinationS3Bzip2 - Xz *DestinationS3Xz - Zstandard *DestinationS3Zstandard - Snappy *DestinationS3Snappy + DestinationS3NoCompression *DestinationS3NoCompression + DestinationS3Deflate *DestinationS3Deflate + DestinationS3Bzip2 *DestinationS3Bzip2 + DestinationS3Xz *DestinationS3Xz + DestinationS3Zstandard *DestinationS3Zstandard + DestinationS3Snappy *DestinationS3Snappy Type DestinationS3CompressionCodecType } -func CreateDestinationS3CompressionCodecNoCompression(noCompression DestinationS3NoCompression) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeNoCompression +func CreateDestinationS3CompressionCodecDestinationS3NoCompression(destinationS3NoCompression DestinationS3NoCompression) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3NoCompression return DestinationS3CompressionCodec{ - NoCompression: &noCompression, - Type: typ, + DestinationS3NoCompression: &destinationS3NoCompression, + Type: typ, } } -func CreateDestinationS3CompressionCodecDeflate(deflate DestinationS3Deflate) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeDeflate +func CreateDestinationS3CompressionCodecDestinationS3Deflate(destinationS3Deflate DestinationS3Deflate) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3Deflate return DestinationS3CompressionCodec{ - Deflate: &deflate, - Type: typ, + DestinationS3Deflate: &destinationS3Deflate, + Type: typ, } } -func CreateDestinationS3CompressionCodecBzip2(bzip2 DestinationS3Bzip2) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeBzip2 +func CreateDestinationS3CompressionCodecDestinationS3Bzip2(destinationS3Bzip2 DestinationS3Bzip2) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3Bzip2 return DestinationS3CompressionCodec{ - Bzip2: &bzip2, - Type: typ, + DestinationS3Bzip2: &destinationS3Bzip2, + Type: typ, } } -func CreateDestinationS3CompressionCodecXz(xz DestinationS3Xz) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeXz +func CreateDestinationS3CompressionCodecDestinationS3Xz(destinationS3Xz DestinationS3Xz) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3Xz return DestinationS3CompressionCodec{ - Xz: &xz, - Type: typ, + DestinationS3Xz: &destinationS3Xz, + Type: typ, } } -func CreateDestinationS3CompressionCodecZstandard(zstandard DestinationS3Zstandard) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeZstandard +func CreateDestinationS3CompressionCodecDestinationS3Zstandard(destinationS3Zstandard DestinationS3Zstandard) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3Zstandard return DestinationS3CompressionCodec{ - Zstandard: &zstandard, - Type: typ, + DestinationS3Zstandard: &destinationS3Zstandard, + Type: typ, } } -func CreateDestinationS3CompressionCodecSnappy(snappy DestinationS3Snappy) DestinationS3CompressionCodec { - typ := DestinationS3CompressionCodecTypeSnappy +func CreateDestinationS3CompressionCodecDestinationS3Snappy(destinationS3Snappy DestinationS3Snappy) DestinationS3CompressionCodec { + typ := DestinationS3CompressionCodecTypeDestinationS3Snappy return DestinationS3CompressionCodec{ - Snappy: &snappy, - Type: typ, + DestinationS3Snappy: &destinationS3Snappy, + Type: typ, } } func (u *DestinationS3CompressionCodec) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3NoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3CompressionCodecTypeNoCompression + destinationS3NoCompression := new(DestinationS3NoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3NoCompression, "", true, true); err == nil { + u.DestinationS3NoCompression = destinationS3NoCompression + u.Type = DestinationS3CompressionCodecTypeDestinationS3NoCompression return nil } - bzip2 := new(DestinationS3Bzip2) - if err := utils.UnmarshalJSON(data, &bzip2, "", true, true); err == nil { - u.Bzip2 = bzip2 - u.Type = DestinationS3CompressionCodecTypeBzip2 + destinationS3Bzip2 := new(DestinationS3Bzip2) + if err := utils.UnmarshalJSON(data, &destinationS3Bzip2, "", true, true); err == nil { + u.DestinationS3Bzip2 = destinationS3Bzip2 + u.Type = DestinationS3CompressionCodecTypeDestinationS3Bzip2 return nil } - snappy := new(DestinationS3Snappy) - if err := utils.UnmarshalJSON(data, &snappy, "", true, true); err == nil { - u.Snappy = snappy - u.Type = DestinationS3CompressionCodecTypeSnappy + destinationS3Snappy := new(DestinationS3Snappy) + if err := utils.UnmarshalJSON(data, &destinationS3Snappy, "", true, true); err == nil { + u.DestinationS3Snappy = destinationS3Snappy + u.Type = DestinationS3CompressionCodecTypeDestinationS3Snappy return nil } - deflate := new(DestinationS3Deflate) - if err := utils.UnmarshalJSON(data, &deflate, "", true, true); err == nil { - u.Deflate = deflate - u.Type = DestinationS3CompressionCodecTypeDeflate + destinationS3Deflate := new(DestinationS3Deflate) + if err := utils.UnmarshalJSON(data, &destinationS3Deflate, "", true, true); err == nil { + u.DestinationS3Deflate = destinationS3Deflate + u.Type = DestinationS3CompressionCodecTypeDestinationS3Deflate return nil } - xz := new(DestinationS3Xz) - if err := utils.UnmarshalJSON(data, &xz, "", true, true); err == nil { - u.Xz = xz - u.Type = DestinationS3CompressionCodecTypeXz + destinationS3Xz := new(DestinationS3Xz) + if err := utils.UnmarshalJSON(data, &destinationS3Xz, "", true, true); err == nil { + u.DestinationS3Xz = destinationS3Xz + u.Type = DestinationS3CompressionCodecTypeDestinationS3Xz return nil } - zstandard := new(DestinationS3Zstandard) - if err := utils.UnmarshalJSON(data, &zstandard, "", true, true); err == nil { - u.Zstandard = zstandard - u.Type = DestinationS3CompressionCodecTypeZstandard + destinationS3Zstandard := new(DestinationS3Zstandard) + if err := utils.UnmarshalJSON(data, &destinationS3Zstandard, "", true, true); err == nil { + u.DestinationS3Zstandard = destinationS3Zstandard + u.Type = DestinationS3CompressionCodecTypeDestinationS3Zstandard return nil } @@ -1119,28 +1119,28 @@ func (u *DestinationS3CompressionCodec) UnmarshalJSON(data []byte) error { } func (u DestinationS3CompressionCodec) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3NoCompression != nil { + return utils.MarshalJSON(u.DestinationS3NoCompression, "", true) } - if u.Deflate != nil { - return utils.MarshalJSON(u.Deflate, "", true) + if u.DestinationS3Deflate != nil { + return utils.MarshalJSON(u.DestinationS3Deflate, "", true) } - if u.Bzip2 != nil { - return utils.MarshalJSON(u.Bzip2, "", true) + if u.DestinationS3Bzip2 != nil { + return utils.MarshalJSON(u.DestinationS3Bzip2, "", true) } - if u.Xz != nil { - return utils.MarshalJSON(u.Xz, "", true) + if u.DestinationS3Xz != nil { + return utils.MarshalJSON(u.DestinationS3Xz, "", true) } - if u.Zstandard != nil { - return utils.MarshalJSON(u.Zstandard, "", true) + if u.DestinationS3Zstandard != nil { + return utils.MarshalJSON(u.DestinationS3Zstandard, "", true) } - if u.Snappy != nil { - return utils.MarshalJSON(u.Snappy, "", true) + if u.DestinationS3Snappy != nil { + return utils.MarshalJSON(u.DestinationS3Snappy, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1205,84 +1205,84 @@ func (o *DestinationS3AvroApacheAvro) GetFormatType() *DestinationS3FormatType { type DestinationS3OutputFormatType string const ( - DestinationS3OutputFormatTypeAvroApacheAvro DestinationS3OutputFormatType = "AvroApacheAvro" - DestinationS3OutputFormatTypeCSVCommaSeparatedValues DestinationS3OutputFormatType = "CSVCommaSeparatedValues" - DestinationS3OutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationS3OutputFormatType = "JSONLinesNewlineDelimitedJSON" - DestinationS3OutputFormatTypeParquetColumnarStorage DestinationS3OutputFormatType = "ParquetColumnarStorage" + DestinationS3OutputFormatTypeDestinationS3AvroApacheAvro DestinationS3OutputFormatType = "destination-s3_Avro: Apache Avro" + DestinationS3OutputFormatTypeDestinationS3CSVCommaSeparatedValues DestinationS3OutputFormatType = "destination-s3_CSV: Comma-Separated Values" + DestinationS3OutputFormatTypeDestinationS3JSONLinesNewlineDelimitedJSON DestinationS3OutputFormatType = "destination-s3_JSON Lines: Newline-delimited JSON" + DestinationS3OutputFormatTypeDestinationS3ParquetColumnarStorage DestinationS3OutputFormatType = "destination-s3_Parquet: Columnar Storage" ) type DestinationS3OutputFormat struct { - AvroApacheAvro *DestinationS3AvroApacheAvro - CSVCommaSeparatedValues *DestinationS3CSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationS3JSONLinesNewlineDelimitedJSON - ParquetColumnarStorage *DestinationS3ParquetColumnarStorage + DestinationS3AvroApacheAvro *DestinationS3AvroApacheAvro + DestinationS3CSVCommaSeparatedValues *DestinationS3CSVCommaSeparatedValues + DestinationS3JSONLinesNewlineDelimitedJSON *DestinationS3JSONLinesNewlineDelimitedJSON + DestinationS3ParquetColumnarStorage *DestinationS3ParquetColumnarStorage Type DestinationS3OutputFormatType } -func CreateDestinationS3OutputFormatAvroApacheAvro(avroApacheAvro DestinationS3AvroApacheAvro) DestinationS3OutputFormat { - typ := DestinationS3OutputFormatTypeAvroApacheAvro +func CreateDestinationS3OutputFormatDestinationS3AvroApacheAvro(destinationS3AvroApacheAvro DestinationS3AvroApacheAvro) DestinationS3OutputFormat { + typ := DestinationS3OutputFormatTypeDestinationS3AvroApacheAvro return DestinationS3OutputFormat{ - AvroApacheAvro: &avroApacheAvro, - Type: typ, + DestinationS3AvroApacheAvro: &destinationS3AvroApacheAvro, + Type: typ, } } -func CreateDestinationS3OutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues DestinationS3CSVCommaSeparatedValues) DestinationS3OutputFormat { - typ := DestinationS3OutputFormatTypeCSVCommaSeparatedValues +func CreateDestinationS3OutputFormatDestinationS3CSVCommaSeparatedValues(destinationS3CSVCommaSeparatedValues DestinationS3CSVCommaSeparatedValues) DestinationS3OutputFormat { + typ := DestinationS3OutputFormatTypeDestinationS3CSVCommaSeparatedValues return DestinationS3OutputFormat{ - CSVCommaSeparatedValues: &csvCommaSeparatedValues, - Type: typ, + DestinationS3CSVCommaSeparatedValues: &destinationS3CSVCommaSeparatedValues, + Type: typ, } } -func CreateDestinationS3OutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationS3JSONLinesNewlineDelimitedJSON) DestinationS3OutputFormat { - typ := DestinationS3OutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationS3OutputFormatDestinationS3JSONLinesNewlineDelimitedJSON(destinationS3JSONLinesNewlineDelimitedJSON DestinationS3JSONLinesNewlineDelimitedJSON) DestinationS3OutputFormat { + typ := DestinationS3OutputFormatTypeDestinationS3JSONLinesNewlineDelimitedJSON return DestinationS3OutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationS3JSONLinesNewlineDelimitedJSON: &destinationS3JSONLinesNewlineDelimitedJSON, + Type: typ, } } -func CreateDestinationS3OutputFormatParquetColumnarStorage(parquetColumnarStorage DestinationS3ParquetColumnarStorage) DestinationS3OutputFormat { - typ := DestinationS3OutputFormatTypeParquetColumnarStorage +func CreateDestinationS3OutputFormatDestinationS3ParquetColumnarStorage(destinationS3ParquetColumnarStorage DestinationS3ParquetColumnarStorage) DestinationS3OutputFormat { + typ := DestinationS3OutputFormatTypeDestinationS3ParquetColumnarStorage return DestinationS3OutputFormat{ - ParquetColumnarStorage: &parquetColumnarStorage, - Type: typ, + DestinationS3ParquetColumnarStorage: &destinationS3ParquetColumnarStorage, + Type: typ, } } func (u *DestinationS3OutputFormat) UnmarshalJSON(data []byte) error { - avroApacheAvro := new(DestinationS3AvroApacheAvro) - if err := utils.UnmarshalJSON(data, &avroApacheAvro, "", true, true); err == nil { - u.AvroApacheAvro = avroApacheAvro - u.Type = DestinationS3OutputFormatTypeAvroApacheAvro + destinationS3AvroApacheAvro := new(DestinationS3AvroApacheAvro) + if err := utils.UnmarshalJSON(data, &destinationS3AvroApacheAvro, "", true, true); err == nil { + u.DestinationS3AvroApacheAvro = destinationS3AvroApacheAvro + u.Type = DestinationS3OutputFormatTypeDestinationS3AvroApacheAvro return nil } - csvCommaSeparatedValues := new(DestinationS3CSVCommaSeparatedValues) - if err := utils.UnmarshalJSON(data, &csvCommaSeparatedValues, "", true, true); err == nil { - u.CSVCommaSeparatedValues = csvCommaSeparatedValues - u.Type = DestinationS3OutputFormatTypeCSVCommaSeparatedValues + destinationS3CSVCommaSeparatedValues := new(DestinationS3CSVCommaSeparatedValues) + if err := utils.UnmarshalJSON(data, &destinationS3CSVCommaSeparatedValues, "", true, true); err == nil { + u.DestinationS3CSVCommaSeparatedValues = destinationS3CSVCommaSeparatedValues + u.Type = DestinationS3OutputFormatTypeDestinationS3CSVCommaSeparatedValues return nil } - jsonLinesNewlineDelimitedJSON := new(DestinationS3JSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationS3OutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationS3JSONLinesNewlineDelimitedJSON := new(DestinationS3JSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationS3JSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationS3JSONLinesNewlineDelimitedJSON = destinationS3JSONLinesNewlineDelimitedJSON + u.Type = DestinationS3OutputFormatTypeDestinationS3JSONLinesNewlineDelimitedJSON return nil } - parquetColumnarStorage := new(DestinationS3ParquetColumnarStorage) - if err := utils.UnmarshalJSON(data, &parquetColumnarStorage, "", true, true); err == nil { - u.ParquetColumnarStorage = parquetColumnarStorage - u.Type = DestinationS3OutputFormatTypeParquetColumnarStorage + destinationS3ParquetColumnarStorage := new(DestinationS3ParquetColumnarStorage) + if err := utils.UnmarshalJSON(data, &destinationS3ParquetColumnarStorage, "", true, true); err == nil { + u.DestinationS3ParquetColumnarStorage = destinationS3ParquetColumnarStorage + u.Type = DestinationS3OutputFormatTypeDestinationS3ParquetColumnarStorage return nil } @@ -1290,20 +1290,20 @@ func (u *DestinationS3OutputFormat) UnmarshalJSON(data []byte) error { } func (u DestinationS3OutputFormat) MarshalJSON() ([]byte, error) { - if u.AvroApacheAvro != nil { - return utils.MarshalJSON(u.AvroApacheAvro, "", true) + if u.DestinationS3AvroApacheAvro != nil { + return utils.MarshalJSON(u.DestinationS3AvroApacheAvro, "", true) } - if u.CSVCommaSeparatedValues != nil { - return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) + if u.DestinationS3CSVCommaSeparatedValues != nil { + return utils.MarshalJSON(u.DestinationS3CSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationS3JSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationS3JSONLinesNewlineDelimitedJSON, "", true) } - if u.ParquetColumnarStorage != nil { - return utils.MarshalJSON(u.ParquetColumnarStorage, "", true) + if u.DestinationS3ParquetColumnarStorage != nil { + return utils.MarshalJSON(u.DestinationS3ParquetColumnarStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinations3glue.go b/internal/sdk/pkg/models/shared/destinations3glue.go index 20df3aa27..1a5e0413b 100644 --- a/internal/sdk/pkg/models/shared/destinations3glue.go +++ b/internal/sdk/pkg/models/shared/destinations3glue.go @@ -130,48 +130,48 @@ func (o *DestinationS3GlueNoCompression) GetCompressionType() *DestinationS3Glue type DestinationS3GlueCompressionUnionType string const ( - DestinationS3GlueCompressionUnionTypeNoCompression DestinationS3GlueCompressionUnionType = "NoCompression" - DestinationS3GlueCompressionUnionTypeGzip DestinationS3GlueCompressionUnionType = "Gzip" + DestinationS3GlueCompressionUnionTypeDestinationS3GlueNoCompression DestinationS3GlueCompressionUnionType = "destination-s3-glue_No Compression" + DestinationS3GlueCompressionUnionTypeDestinationS3GlueGZIP DestinationS3GlueCompressionUnionType = "destination-s3-glue_GZIP" ) type DestinationS3GlueCompression struct { - NoCompression *DestinationS3GlueNoCompression - Gzip *DestinationS3GlueGZIP + DestinationS3GlueNoCompression *DestinationS3GlueNoCompression + DestinationS3GlueGZIP *DestinationS3GlueGZIP Type DestinationS3GlueCompressionUnionType } -func CreateDestinationS3GlueCompressionNoCompression(noCompression DestinationS3GlueNoCompression) DestinationS3GlueCompression { - typ := DestinationS3GlueCompressionUnionTypeNoCompression +func CreateDestinationS3GlueCompressionDestinationS3GlueNoCompression(destinationS3GlueNoCompression DestinationS3GlueNoCompression) DestinationS3GlueCompression { + typ := DestinationS3GlueCompressionUnionTypeDestinationS3GlueNoCompression return DestinationS3GlueCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3GlueNoCompression: &destinationS3GlueNoCompression, + Type: typ, } } -func CreateDestinationS3GlueCompressionGzip(gzip DestinationS3GlueGZIP) DestinationS3GlueCompression { - typ := DestinationS3GlueCompressionUnionTypeGzip +func CreateDestinationS3GlueCompressionDestinationS3GlueGZIP(destinationS3GlueGZIP DestinationS3GlueGZIP) DestinationS3GlueCompression { + typ := DestinationS3GlueCompressionUnionTypeDestinationS3GlueGZIP return DestinationS3GlueCompression{ - Gzip: &gzip, - Type: typ, + DestinationS3GlueGZIP: &destinationS3GlueGZIP, + Type: typ, } } func (u *DestinationS3GlueCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3GlueNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3GlueCompressionUnionTypeNoCompression + destinationS3GlueNoCompression := new(DestinationS3GlueNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3GlueNoCompression, "", true, true); err == nil { + u.DestinationS3GlueNoCompression = destinationS3GlueNoCompression + u.Type = DestinationS3GlueCompressionUnionTypeDestinationS3GlueNoCompression return nil } - gzip := new(DestinationS3GlueGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3GlueCompressionUnionTypeGzip + destinationS3GlueGZIP := new(DestinationS3GlueGZIP) + if err := utils.UnmarshalJSON(data, &destinationS3GlueGZIP, "", true, true); err == nil { + u.DestinationS3GlueGZIP = destinationS3GlueGZIP + u.Type = DestinationS3GlueCompressionUnionTypeDestinationS3GlueGZIP return nil } @@ -179,12 +179,12 @@ func (u *DestinationS3GlueCompression) UnmarshalJSON(data []byte) error { } func (u DestinationS3GlueCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3GlueNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3GlueNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3GlueGZIP != nil { + return utils.MarshalJSON(u.DestinationS3GlueGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -286,30 +286,30 @@ func (o *DestinationS3GlueJSONLinesNewlineDelimitedJSON) GetFormatType() *Destin type DestinationS3GlueOutputFormatType string const ( - DestinationS3GlueOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationS3GlueOutputFormatType = "JSONLinesNewlineDelimitedJSON" + DestinationS3GlueOutputFormatTypeDestinationS3GlueJSONLinesNewlineDelimitedJSON DestinationS3GlueOutputFormatType = "destination-s3-glue_JSON Lines: Newline-delimited JSON" ) type DestinationS3GlueOutputFormat struct { - JSONLinesNewlineDelimitedJSON *DestinationS3GlueJSONLinesNewlineDelimitedJSON + DestinationS3GlueJSONLinesNewlineDelimitedJSON *DestinationS3GlueJSONLinesNewlineDelimitedJSON Type DestinationS3GlueOutputFormatType } -func CreateDestinationS3GlueOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationS3GlueJSONLinesNewlineDelimitedJSON) DestinationS3GlueOutputFormat { - typ := DestinationS3GlueOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationS3GlueOutputFormatDestinationS3GlueJSONLinesNewlineDelimitedJSON(destinationS3GlueJSONLinesNewlineDelimitedJSON DestinationS3GlueJSONLinesNewlineDelimitedJSON) DestinationS3GlueOutputFormat { + typ := DestinationS3GlueOutputFormatTypeDestinationS3GlueJSONLinesNewlineDelimitedJSON return DestinationS3GlueOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationS3GlueJSONLinesNewlineDelimitedJSON: &destinationS3GlueJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *DestinationS3GlueOutputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(DestinationS3GlueJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationS3GlueOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationS3GlueJSONLinesNewlineDelimitedJSON := new(DestinationS3GlueJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationS3GlueJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationS3GlueJSONLinesNewlineDelimitedJSON = destinationS3GlueJSONLinesNewlineDelimitedJSON + u.Type = DestinationS3GlueOutputFormatTypeDestinationS3GlueJSONLinesNewlineDelimitedJSON return nil } @@ -317,8 +317,8 @@ func (u *DestinationS3GlueOutputFormat) UnmarshalJSON(data []byte) error { } func (u DestinationS3GlueOutputFormat) MarshalJSON() ([]byte, error) { - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationS3GlueJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationS3GlueJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinations3glueupdate.go b/internal/sdk/pkg/models/shared/destinations3glueupdate.go index 3a1e7ec06..061b9c672 100644 --- a/internal/sdk/pkg/models/shared/destinations3glueupdate.go +++ b/internal/sdk/pkg/models/shared/destinations3glueupdate.go @@ -106,48 +106,48 @@ func (o *DestinationS3GlueUpdateNoCompression) GetCompressionType() *Destination type DestinationS3GlueUpdateCompressionUnionType string const ( - DestinationS3GlueUpdateCompressionUnionTypeNoCompression DestinationS3GlueUpdateCompressionUnionType = "NoCompression" - DestinationS3GlueUpdateCompressionUnionTypeGzip DestinationS3GlueUpdateCompressionUnionType = "Gzip" + DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateNoCompression DestinationS3GlueUpdateCompressionUnionType = "destination-s3-glue-update_No Compression" + DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateGZIP DestinationS3GlueUpdateCompressionUnionType = "destination-s3-glue-update_GZIP" ) type DestinationS3GlueUpdateCompression struct { - NoCompression *DestinationS3GlueUpdateNoCompression - Gzip *DestinationS3GlueUpdateGZIP + DestinationS3GlueUpdateNoCompression *DestinationS3GlueUpdateNoCompression + DestinationS3GlueUpdateGZIP *DestinationS3GlueUpdateGZIP Type DestinationS3GlueUpdateCompressionUnionType } -func CreateDestinationS3GlueUpdateCompressionNoCompression(noCompression DestinationS3GlueUpdateNoCompression) DestinationS3GlueUpdateCompression { - typ := DestinationS3GlueUpdateCompressionUnionTypeNoCompression +func CreateDestinationS3GlueUpdateCompressionDestinationS3GlueUpdateNoCompression(destinationS3GlueUpdateNoCompression DestinationS3GlueUpdateNoCompression) DestinationS3GlueUpdateCompression { + typ := DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateNoCompression return DestinationS3GlueUpdateCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3GlueUpdateNoCompression: &destinationS3GlueUpdateNoCompression, + Type: typ, } } -func CreateDestinationS3GlueUpdateCompressionGzip(gzip DestinationS3GlueUpdateGZIP) DestinationS3GlueUpdateCompression { - typ := DestinationS3GlueUpdateCompressionUnionTypeGzip +func CreateDestinationS3GlueUpdateCompressionDestinationS3GlueUpdateGZIP(destinationS3GlueUpdateGZIP DestinationS3GlueUpdateGZIP) DestinationS3GlueUpdateCompression { + typ := DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateGZIP return DestinationS3GlueUpdateCompression{ - Gzip: &gzip, - Type: typ, + DestinationS3GlueUpdateGZIP: &destinationS3GlueUpdateGZIP, + Type: typ, } } func (u *DestinationS3GlueUpdateCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3GlueUpdateNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3GlueUpdateCompressionUnionTypeNoCompression + destinationS3GlueUpdateNoCompression := new(DestinationS3GlueUpdateNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateNoCompression, "", true, true); err == nil { + u.DestinationS3GlueUpdateNoCompression = destinationS3GlueUpdateNoCompression + u.Type = DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateNoCompression return nil } - gzip := new(DestinationS3GlueUpdateGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3GlueUpdateCompressionUnionTypeGzip + destinationS3GlueUpdateGZIP := new(DestinationS3GlueUpdateGZIP) + if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateGZIP, "", true, true); err == nil { + u.DestinationS3GlueUpdateGZIP = destinationS3GlueUpdateGZIP + u.Type = DestinationS3GlueUpdateCompressionUnionTypeDestinationS3GlueUpdateGZIP return nil } @@ -155,12 +155,12 @@ func (u *DestinationS3GlueUpdateCompression) UnmarshalJSON(data []byte) error { } func (u DestinationS3GlueUpdateCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3GlueUpdateNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3GlueUpdateNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3GlueUpdateGZIP != nil { + return utils.MarshalJSON(u.DestinationS3GlueUpdateGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -262,30 +262,30 @@ func (o *DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON) GetFormatType() * type DestinationS3GlueUpdateOutputFormatType string const ( - DestinationS3GlueUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationS3GlueUpdateOutputFormatType = "JSONLinesNewlineDelimitedJSON" + DestinationS3GlueUpdateOutputFormatTypeDestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON DestinationS3GlueUpdateOutputFormatType = "destination-s3-glue-update_JSON Lines: Newline-delimited JSON" ) type DestinationS3GlueUpdateOutputFormat struct { - JSONLinesNewlineDelimitedJSON *DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON + DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON *DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON Type DestinationS3GlueUpdateOutputFormatType } -func CreateDestinationS3GlueUpdateOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON) DestinationS3GlueUpdateOutputFormat { - typ := DestinationS3GlueUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationS3GlueUpdateOutputFormatDestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON(destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON) DestinationS3GlueUpdateOutputFormat { + typ := DestinationS3GlueUpdateOutputFormatTypeDestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON return DestinationS3GlueUpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON: &destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *DestinationS3GlueUpdateOutputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationS3GlueUpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON := new(DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON = destinationS3GlueUpdateJSONLinesNewlineDelimitedJSON + u.Type = DestinationS3GlueUpdateOutputFormatTypeDestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON return nil } @@ -293,8 +293,8 @@ func (u *DestinationS3GlueUpdateOutputFormat) UnmarshalJSON(data []byte) error { } func (u DestinationS3GlueUpdateOutputFormat) MarshalJSON() ([]byte, error) { - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationS3GlueUpdateJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinations3update.go b/internal/sdk/pkg/models/shared/destinations3update.go index ce75bc503..04895b043 100644 --- a/internal/sdk/pkg/models/shared/destinations3update.go +++ b/internal/sdk/pkg/models/shared/destinations3update.go @@ -250,48 +250,48 @@ func (o *DestinationS3UpdateSchemasFormatNoCompression) GetCompressionType() *De type DestinationS3UpdateSchemasCompressionUnionType string const ( - DestinationS3UpdateSchemasCompressionUnionTypeNoCompression DestinationS3UpdateSchemasCompressionUnionType = "NoCompression" - DestinationS3UpdateSchemasCompressionUnionTypeGzip DestinationS3UpdateSchemasCompressionUnionType = "Gzip" + DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasFormatNoCompression DestinationS3UpdateSchemasCompressionUnionType = "destination-s3-update_Schemas_format_No Compression" + DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasGZIP DestinationS3UpdateSchemasCompressionUnionType = "destination-s3-update_Schemas_GZIP" ) type DestinationS3UpdateSchemasCompression struct { - NoCompression *DestinationS3UpdateSchemasFormatNoCompression - Gzip *DestinationS3UpdateSchemasGZIP + DestinationS3UpdateSchemasFormatNoCompression *DestinationS3UpdateSchemasFormatNoCompression + DestinationS3UpdateSchemasGZIP *DestinationS3UpdateSchemasGZIP Type DestinationS3UpdateSchemasCompressionUnionType } -func CreateDestinationS3UpdateSchemasCompressionNoCompression(noCompression DestinationS3UpdateSchemasFormatNoCompression) DestinationS3UpdateSchemasCompression { - typ := DestinationS3UpdateSchemasCompressionUnionTypeNoCompression +func CreateDestinationS3UpdateSchemasCompressionDestinationS3UpdateSchemasFormatNoCompression(destinationS3UpdateSchemasFormatNoCompression DestinationS3UpdateSchemasFormatNoCompression) DestinationS3UpdateSchemasCompression { + typ := DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasFormatNoCompression return DestinationS3UpdateSchemasCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3UpdateSchemasFormatNoCompression: &destinationS3UpdateSchemasFormatNoCompression, + Type: typ, } } -func CreateDestinationS3UpdateSchemasCompressionGzip(gzip DestinationS3UpdateSchemasGZIP) DestinationS3UpdateSchemasCompression { - typ := DestinationS3UpdateSchemasCompressionUnionTypeGzip +func CreateDestinationS3UpdateSchemasCompressionDestinationS3UpdateSchemasGZIP(destinationS3UpdateSchemasGZIP DestinationS3UpdateSchemasGZIP) DestinationS3UpdateSchemasCompression { + typ := DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasGZIP return DestinationS3UpdateSchemasCompression{ - Gzip: &gzip, - Type: typ, + DestinationS3UpdateSchemasGZIP: &destinationS3UpdateSchemasGZIP, + Type: typ, } } func (u *DestinationS3UpdateSchemasCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3UpdateSchemasFormatNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3UpdateSchemasCompressionUnionTypeNoCompression + destinationS3UpdateSchemasFormatNoCompression := new(DestinationS3UpdateSchemasFormatNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateSchemasFormatNoCompression, "", true, true); err == nil { + u.DestinationS3UpdateSchemasFormatNoCompression = destinationS3UpdateSchemasFormatNoCompression + u.Type = DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasFormatNoCompression return nil } - gzip := new(DestinationS3UpdateSchemasGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3UpdateSchemasCompressionUnionTypeGzip + destinationS3UpdateSchemasGZIP := new(DestinationS3UpdateSchemasGZIP) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateSchemasGZIP, "", true, true); err == nil { + u.DestinationS3UpdateSchemasGZIP = destinationS3UpdateSchemasGZIP + u.Type = DestinationS3UpdateSchemasCompressionUnionTypeDestinationS3UpdateSchemasGZIP return nil } @@ -299,12 +299,12 @@ func (u *DestinationS3UpdateSchemasCompression) UnmarshalJSON(data []byte) error } func (u DestinationS3UpdateSchemasCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3UpdateSchemasFormatNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3UpdateSchemasFormatNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3UpdateSchemasGZIP != nil { + return utils.MarshalJSON(u.DestinationS3UpdateSchemasGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -500,48 +500,48 @@ func (o *DestinationS3UpdateSchemasNoCompression) GetCompressionType() *Destinat type DestinationS3UpdateCompressionUnionType string const ( - DestinationS3UpdateCompressionUnionTypeNoCompression DestinationS3UpdateCompressionUnionType = "NoCompression" - DestinationS3UpdateCompressionUnionTypeGzip DestinationS3UpdateCompressionUnionType = "Gzip" + DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateSchemasNoCompression DestinationS3UpdateCompressionUnionType = "destination-s3-update_Schemas_No Compression" + DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateGZIP DestinationS3UpdateCompressionUnionType = "destination-s3-update_GZIP" ) type DestinationS3UpdateCompression struct { - NoCompression *DestinationS3UpdateSchemasNoCompression - Gzip *DestinationS3UpdateGZIP + DestinationS3UpdateSchemasNoCompression *DestinationS3UpdateSchemasNoCompression + DestinationS3UpdateGZIP *DestinationS3UpdateGZIP Type DestinationS3UpdateCompressionUnionType } -func CreateDestinationS3UpdateCompressionNoCompression(noCompression DestinationS3UpdateSchemasNoCompression) DestinationS3UpdateCompression { - typ := DestinationS3UpdateCompressionUnionTypeNoCompression +func CreateDestinationS3UpdateCompressionDestinationS3UpdateSchemasNoCompression(destinationS3UpdateSchemasNoCompression DestinationS3UpdateSchemasNoCompression) DestinationS3UpdateCompression { + typ := DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateSchemasNoCompression return DestinationS3UpdateCompression{ - NoCompression: &noCompression, - Type: typ, + DestinationS3UpdateSchemasNoCompression: &destinationS3UpdateSchemasNoCompression, + Type: typ, } } -func CreateDestinationS3UpdateCompressionGzip(gzip DestinationS3UpdateGZIP) DestinationS3UpdateCompression { - typ := DestinationS3UpdateCompressionUnionTypeGzip +func CreateDestinationS3UpdateCompressionDestinationS3UpdateGZIP(destinationS3UpdateGZIP DestinationS3UpdateGZIP) DestinationS3UpdateCompression { + typ := DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateGZIP return DestinationS3UpdateCompression{ - Gzip: &gzip, - Type: typ, + DestinationS3UpdateGZIP: &destinationS3UpdateGZIP, + Type: typ, } } func (u *DestinationS3UpdateCompression) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3UpdateSchemasNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3UpdateCompressionUnionTypeNoCompression + destinationS3UpdateSchemasNoCompression := new(DestinationS3UpdateSchemasNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateSchemasNoCompression, "", true, true); err == nil { + u.DestinationS3UpdateSchemasNoCompression = destinationS3UpdateSchemasNoCompression + u.Type = DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateSchemasNoCompression return nil } - gzip := new(DestinationS3UpdateGZIP) - if err := utils.UnmarshalJSON(data, &gzip, "", true, true); err == nil { - u.Gzip = gzip - u.Type = DestinationS3UpdateCompressionUnionTypeGzip + destinationS3UpdateGZIP := new(DestinationS3UpdateGZIP) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateGZIP, "", true, true); err == nil { + u.DestinationS3UpdateGZIP = destinationS3UpdateGZIP + u.Type = DestinationS3UpdateCompressionUnionTypeDestinationS3UpdateGZIP return nil } @@ -549,12 +549,12 @@ func (u *DestinationS3UpdateCompression) UnmarshalJSON(data []byte) error { } func (u DestinationS3UpdateCompression) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3UpdateSchemasNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3UpdateSchemasNoCompression, "", true) } - if u.Gzip != nil { - return utils.MarshalJSON(u.Gzip, "", true) + if u.DestinationS3UpdateGZIP != nil { + return utils.MarshalJSON(u.DestinationS3UpdateGZIP, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -974,120 +974,120 @@ func (o *DestinationS3UpdateNoCompression) GetCodec() *DestinationS3UpdateCodec type DestinationS3UpdateCompressionCodecType string const ( - DestinationS3UpdateCompressionCodecTypeNoCompression DestinationS3UpdateCompressionCodecType = "NoCompression" - DestinationS3UpdateCompressionCodecTypeDeflate DestinationS3UpdateCompressionCodecType = "Deflate" - DestinationS3UpdateCompressionCodecTypeBzip2 DestinationS3UpdateCompressionCodecType = "Bzip2" - DestinationS3UpdateCompressionCodecTypeXz DestinationS3UpdateCompressionCodecType = "Xz" - DestinationS3UpdateCompressionCodecTypeZstandard DestinationS3UpdateCompressionCodecType = "Zstandard" - DestinationS3UpdateCompressionCodecTypeSnappy DestinationS3UpdateCompressionCodecType = "Snappy" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateNoCompression DestinationS3UpdateCompressionCodecType = "destination-s3-update_No Compression" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateDeflate DestinationS3UpdateCompressionCodecType = "destination-s3-update_Deflate" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateBzip2 DestinationS3UpdateCompressionCodecType = "destination-s3-update_bzip2" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateXz DestinationS3UpdateCompressionCodecType = "destination-s3-update_xz" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateZstandard DestinationS3UpdateCompressionCodecType = "destination-s3-update_zstandard" + DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateSnappy DestinationS3UpdateCompressionCodecType = "destination-s3-update_snappy" ) type DestinationS3UpdateCompressionCodec struct { - NoCompression *DestinationS3UpdateNoCompression - Deflate *DestinationS3UpdateDeflate - Bzip2 *DestinationS3UpdateBzip2 - Xz *DestinationS3UpdateXz - Zstandard *DestinationS3UpdateZstandard - Snappy *DestinationS3UpdateSnappy + DestinationS3UpdateNoCompression *DestinationS3UpdateNoCompression + DestinationS3UpdateDeflate *DestinationS3UpdateDeflate + DestinationS3UpdateBzip2 *DestinationS3UpdateBzip2 + DestinationS3UpdateXz *DestinationS3UpdateXz + DestinationS3UpdateZstandard *DestinationS3UpdateZstandard + DestinationS3UpdateSnappy *DestinationS3UpdateSnappy Type DestinationS3UpdateCompressionCodecType } -func CreateDestinationS3UpdateCompressionCodecNoCompression(noCompression DestinationS3UpdateNoCompression) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeNoCompression +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateNoCompression(destinationS3UpdateNoCompression DestinationS3UpdateNoCompression) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateNoCompression return DestinationS3UpdateCompressionCodec{ - NoCompression: &noCompression, - Type: typ, + DestinationS3UpdateNoCompression: &destinationS3UpdateNoCompression, + Type: typ, } } -func CreateDestinationS3UpdateCompressionCodecDeflate(deflate DestinationS3UpdateDeflate) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeDeflate +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateDeflate(destinationS3UpdateDeflate DestinationS3UpdateDeflate) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateDeflate return DestinationS3UpdateCompressionCodec{ - Deflate: &deflate, - Type: typ, + DestinationS3UpdateDeflate: &destinationS3UpdateDeflate, + Type: typ, } } -func CreateDestinationS3UpdateCompressionCodecBzip2(bzip2 DestinationS3UpdateBzip2) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeBzip2 +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateBzip2(destinationS3UpdateBzip2 DestinationS3UpdateBzip2) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateBzip2 return DestinationS3UpdateCompressionCodec{ - Bzip2: &bzip2, - Type: typ, + DestinationS3UpdateBzip2: &destinationS3UpdateBzip2, + Type: typ, } } -func CreateDestinationS3UpdateCompressionCodecXz(xz DestinationS3UpdateXz) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeXz +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateXz(destinationS3UpdateXz DestinationS3UpdateXz) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateXz return DestinationS3UpdateCompressionCodec{ - Xz: &xz, - Type: typ, + DestinationS3UpdateXz: &destinationS3UpdateXz, + Type: typ, } } -func CreateDestinationS3UpdateCompressionCodecZstandard(zstandard DestinationS3UpdateZstandard) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeZstandard +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateZstandard(destinationS3UpdateZstandard DestinationS3UpdateZstandard) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateZstandard return DestinationS3UpdateCompressionCodec{ - Zstandard: &zstandard, - Type: typ, + DestinationS3UpdateZstandard: &destinationS3UpdateZstandard, + Type: typ, } } -func CreateDestinationS3UpdateCompressionCodecSnappy(snappy DestinationS3UpdateSnappy) DestinationS3UpdateCompressionCodec { - typ := DestinationS3UpdateCompressionCodecTypeSnappy +func CreateDestinationS3UpdateCompressionCodecDestinationS3UpdateSnappy(destinationS3UpdateSnappy DestinationS3UpdateSnappy) DestinationS3UpdateCompressionCodec { + typ := DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateSnappy return DestinationS3UpdateCompressionCodec{ - Snappy: &snappy, - Type: typ, + DestinationS3UpdateSnappy: &destinationS3UpdateSnappy, + Type: typ, } } func (u *DestinationS3UpdateCompressionCodec) UnmarshalJSON(data []byte) error { - noCompression := new(DestinationS3UpdateNoCompression) - if err := utils.UnmarshalJSON(data, &noCompression, "", true, true); err == nil { - u.NoCompression = noCompression - u.Type = DestinationS3UpdateCompressionCodecTypeNoCompression + destinationS3UpdateNoCompression := new(DestinationS3UpdateNoCompression) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateNoCompression, "", true, true); err == nil { + u.DestinationS3UpdateNoCompression = destinationS3UpdateNoCompression + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateNoCompression return nil } - bzip2 := new(DestinationS3UpdateBzip2) - if err := utils.UnmarshalJSON(data, &bzip2, "", true, true); err == nil { - u.Bzip2 = bzip2 - u.Type = DestinationS3UpdateCompressionCodecTypeBzip2 + destinationS3UpdateBzip2 := new(DestinationS3UpdateBzip2) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateBzip2, "", true, true); err == nil { + u.DestinationS3UpdateBzip2 = destinationS3UpdateBzip2 + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateBzip2 return nil } - snappy := new(DestinationS3UpdateSnappy) - if err := utils.UnmarshalJSON(data, &snappy, "", true, true); err == nil { - u.Snappy = snappy - u.Type = DestinationS3UpdateCompressionCodecTypeSnappy + destinationS3UpdateSnappy := new(DestinationS3UpdateSnappy) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateSnappy, "", true, true); err == nil { + u.DestinationS3UpdateSnappy = destinationS3UpdateSnappy + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateSnappy return nil } - deflate := new(DestinationS3UpdateDeflate) - if err := utils.UnmarshalJSON(data, &deflate, "", true, true); err == nil { - u.Deflate = deflate - u.Type = DestinationS3UpdateCompressionCodecTypeDeflate + destinationS3UpdateDeflate := new(DestinationS3UpdateDeflate) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateDeflate, "", true, true); err == nil { + u.DestinationS3UpdateDeflate = destinationS3UpdateDeflate + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateDeflate return nil } - xz := new(DestinationS3UpdateXz) - if err := utils.UnmarshalJSON(data, &xz, "", true, true); err == nil { - u.Xz = xz - u.Type = DestinationS3UpdateCompressionCodecTypeXz + destinationS3UpdateXz := new(DestinationS3UpdateXz) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateXz, "", true, true); err == nil { + u.DestinationS3UpdateXz = destinationS3UpdateXz + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateXz return nil } - zstandard := new(DestinationS3UpdateZstandard) - if err := utils.UnmarshalJSON(data, &zstandard, "", true, true); err == nil { - u.Zstandard = zstandard - u.Type = DestinationS3UpdateCompressionCodecTypeZstandard + destinationS3UpdateZstandard := new(DestinationS3UpdateZstandard) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateZstandard, "", true, true); err == nil { + u.DestinationS3UpdateZstandard = destinationS3UpdateZstandard + u.Type = DestinationS3UpdateCompressionCodecTypeDestinationS3UpdateZstandard return nil } @@ -1095,28 +1095,28 @@ func (u *DestinationS3UpdateCompressionCodec) UnmarshalJSON(data []byte) error { } func (u DestinationS3UpdateCompressionCodec) MarshalJSON() ([]byte, error) { - if u.NoCompression != nil { - return utils.MarshalJSON(u.NoCompression, "", true) + if u.DestinationS3UpdateNoCompression != nil { + return utils.MarshalJSON(u.DestinationS3UpdateNoCompression, "", true) } - if u.Deflate != nil { - return utils.MarshalJSON(u.Deflate, "", true) + if u.DestinationS3UpdateDeflate != nil { + return utils.MarshalJSON(u.DestinationS3UpdateDeflate, "", true) } - if u.Bzip2 != nil { - return utils.MarshalJSON(u.Bzip2, "", true) + if u.DestinationS3UpdateBzip2 != nil { + return utils.MarshalJSON(u.DestinationS3UpdateBzip2, "", true) } - if u.Xz != nil { - return utils.MarshalJSON(u.Xz, "", true) + if u.DestinationS3UpdateXz != nil { + return utils.MarshalJSON(u.DestinationS3UpdateXz, "", true) } - if u.Zstandard != nil { - return utils.MarshalJSON(u.Zstandard, "", true) + if u.DestinationS3UpdateZstandard != nil { + return utils.MarshalJSON(u.DestinationS3UpdateZstandard, "", true) } - if u.Snappy != nil { - return utils.MarshalJSON(u.Snappy, "", true) + if u.DestinationS3UpdateSnappy != nil { + return utils.MarshalJSON(u.DestinationS3UpdateSnappy, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1181,84 +1181,84 @@ func (o *DestinationS3UpdateAvroApacheAvro) GetFormatType() *DestinationS3Update type DestinationS3UpdateOutputFormatType string const ( - DestinationS3UpdateOutputFormatTypeAvroApacheAvro DestinationS3UpdateOutputFormatType = "AvroApacheAvro" - DestinationS3UpdateOutputFormatTypeCSVCommaSeparatedValues DestinationS3UpdateOutputFormatType = "CSVCommaSeparatedValues" - DestinationS3UpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON DestinationS3UpdateOutputFormatType = "JSONLinesNewlineDelimitedJSON" - DestinationS3UpdateOutputFormatTypeParquetColumnarStorage DestinationS3UpdateOutputFormatType = "ParquetColumnarStorage" + DestinationS3UpdateOutputFormatTypeDestinationS3UpdateAvroApacheAvro DestinationS3UpdateOutputFormatType = "destination-s3-update_Avro: Apache Avro" + DestinationS3UpdateOutputFormatTypeDestinationS3UpdateCSVCommaSeparatedValues DestinationS3UpdateOutputFormatType = "destination-s3-update_CSV: Comma-Separated Values" + DestinationS3UpdateOutputFormatTypeDestinationS3UpdateJSONLinesNewlineDelimitedJSON DestinationS3UpdateOutputFormatType = "destination-s3-update_JSON Lines: Newline-delimited JSON" + DestinationS3UpdateOutputFormatTypeDestinationS3UpdateParquetColumnarStorage DestinationS3UpdateOutputFormatType = "destination-s3-update_Parquet: Columnar Storage" ) type DestinationS3UpdateOutputFormat struct { - AvroApacheAvro *DestinationS3UpdateAvroApacheAvro - CSVCommaSeparatedValues *DestinationS3UpdateCSVCommaSeparatedValues - JSONLinesNewlineDelimitedJSON *DestinationS3UpdateJSONLinesNewlineDelimitedJSON - ParquetColumnarStorage *DestinationS3UpdateParquetColumnarStorage + DestinationS3UpdateAvroApacheAvro *DestinationS3UpdateAvroApacheAvro + DestinationS3UpdateCSVCommaSeparatedValues *DestinationS3UpdateCSVCommaSeparatedValues + DestinationS3UpdateJSONLinesNewlineDelimitedJSON *DestinationS3UpdateJSONLinesNewlineDelimitedJSON + DestinationS3UpdateParquetColumnarStorage *DestinationS3UpdateParquetColumnarStorage Type DestinationS3UpdateOutputFormatType } -func CreateDestinationS3UpdateOutputFormatAvroApacheAvro(avroApacheAvro DestinationS3UpdateAvroApacheAvro) DestinationS3UpdateOutputFormat { - typ := DestinationS3UpdateOutputFormatTypeAvroApacheAvro +func CreateDestinationS3UpdateOutputFormatDestinationS3UpdateAvroApacheAvro(destinationS3UpdateAvroApacheAvro DestinationS3UpdateAvroApacheAvro) DestinationS3UpdateOutputFormat { + typ := DestinationS3UpdateOutputFormatTypeDestinationS3UpdateAvroApacheAvro return DestinationS3UpdateOutputFormat{ - AvroApacheAvro: &avroApacheAvro, - Type: typ, + DestinationS3UpdateAvroApacheAvro: &destinationS3UpdateAvroApacheAvro, + Type: typ, } } -func CreateDestinationS3UpdateOutputFormatCSVCommaSeparatedValues(csvCommaSeparatedValues DestinationS3UpdateCSVCommaSeparatedValues) DestinationS3UpdateOutputFormat { - typ := DestinationS3UpdateOutputFormatTypeCSVCommaSeparatedValues +func CreateDestinationS3UpdateOutputFormatDestinationS3UpdateCSVCommaSeparatedValues(destinationS3UpdateCSVCommaSeparatedValues DestinationS3UpdateCSVCommaSeparatedValues) DestinationS3UpdateOutputFormat { + typ := DestinationS3UpdateOutputFormatTypeDestinationS3UpdateCSVCommaSeparatedValues return DestinationS3UpdateOutputFormat{ - CSVCommaSeparatedValues: &csvCommaSeparatedValues, - Type: typ, + DestinationS3UpdateCSVCommaSeparatedValues: &destinationS3UpdateCSVCommaSeparatedValues, + Type: typ, } } -func CreateDestinationS3UpdateOutputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON DestinationS3UpdateJSONLinesNewlineDelimitedJSON) DestinationS3UpdateOutputFormat { - typ := DestinationS3UpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateDestinationS3UpdateOutputFormatDestinationS3UpdateJSONLinesNewlineDelimitedJSON(destinationS3UpdateJSONLinesNewlineDelimitedJSON DestinationS3UpdateJSONLinesNewlineDelimitedJSON) DestinationS3UpdateOutputFormat { + typ := DestinationS3UpdateOutputFormatTypeDestinationS3UpdateJSONLinesNewlineDelimitedJSON return DestinationS3UpdateOutputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + DestinationS3UpdateJSONLinesNewlineDelimitedJSON: &destinationS3UpdateJSONLinesNewlineDelimitedJSON, + Type: typ, } } -func CreateDestinationS3UpdateOutputFormatParquetColumnarStorage(parquetColumnarStorage DestinationS3UpdateParquetColumnarStorage) DestinationS3UpdateOutputFormat { - typ := DestinationS3UpdateOutputFormatTypeParquetColumnarStorage +func CreateDestinationS3UpdateOutputFormatDestinationS3UpdateParquetColumnarStorage(destinationS3UpdateParquetColumnarStorage DestinationS3UpdateParquetColumnarStorage) DestinationS3UpdateOutputFormat { + typ := DestinationS3UpdateOutputFormatTypeDestinationS3UpdateParquetColumnarStorage return DestinationS3UpdateOutputFormat{ - ParquetColumnarStorage: &parquetColumnarStorage, - Type: typ, + DestinationS3UpdateParquetColumnarStorage: &destinationS3UpdateParquetColumnarStorage, + Type: typ, } } func (u *DestinationS3UpdateOutputFormat) UnmarshalJSON(data []byte) error { - avroApacheAvro := new(DestinationS3UpdateAvroApacheAvro) - if err := utils.UnmarshalJSON(data, &avroApacheAvro, "", true, true); err == nil { - u.AvroApacheAvro = avroApacheAvro - u.Type = DestinationS3UpdateOutputFormatTypeAvroApacheAvro + destinationS3UpdateAvroApacheAvro := new(DestinationS3UpdateAvroApacheAvro) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateAvroApacheAvro, "", true, true); err == nil { + u.DestinationS3UpdateAvroApacheAvro = destinationS3UpdateAvroApacheAvro + u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateAvroApacheAvro return nil } - csvCommaSeparatedValues := new(DestinationS3UpdateCSVCommaSeparatedValues) - if err := utils.UnmarshalJSON(data, &csvCommaSeparatedValues, "", true, true); err == nil { - u.CSVCommaSeparatedValues = csvCommaSeparatedValues - u.Type = DestinationS3UpdateOutputFormatTypeCSVCommaSeparatedValues + destinationS3UpdateCSVCommaSeparatedValues := new(DestinationS3UpdateCSVCommaSeparatedValues) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateCSVCommaSeparatedValues, "", true, true); err == nil { + u.DestinationS3UpdateCSVCommaSeparatedValues = destinationS3UpdateCSVCommaSeparatedValues + u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateCSVCommaSeparatedValues return nil } - jsonLinesNewlineDelimitedJSON := new(DestinationS3UpdateJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = DestinationS3UpdateOutputFormatTypeJSONLinesNewlineDelimitedJSON + destinationS3UpdateJSONLinesNewlineDelimitedJSON := new(DestinationS3UpdateJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.DestinationS3UpdateJSONLinesNewlineDelimitedJSON = destinationS3UpdateJSONLinesNewlineDelimitedJSON + u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateJSONLinesNewlineDelimitedJSON return nil } - parquetColumnarStorage := new(DestinationS3UpdateParquetColumnarStorage) - if err := utils.UnmarshalJSON(data, &parquetColumnarStorage, "", true, true); err == nil { - u.ParquetColumnarStorage = parquetColumnarStorage - u.Type = DestinationS3UpdateOutputFormatTypeParquetColumnarStorage + destinationS3UpdateParquetColumnarStorage := new(DestinationS3UpdateParquetColumnarStorage) + if err := utils.UnmarshalJSON(data, &destinationS3UpdateParquetColumnarStorage, "", true, true); err == nil { + u.DestinationS3UpdateParquetColumnarStorage = destinationS3UpdateParquetColumnarStorage + u.Type = DestinationS3UpdateOutputFormatTypeDestinationS3UpdateParquetColumnarStorage return nil } @@ -1266,20 +1266,20 @@ func (u *DestinationS3UpdateOutputFormat) UnmarshalJSON(data []byte) error { } func (u DestinationS3UpdateOutputFormat) MarshalJSON() ([]byte, error) { - if u.AvroApacheAvro != nil { - return utils.MarshalJSON(u.AvroApacheAvro, "", true) + if u.DestinationS3UpdateAvroApacheAvro != nil { + return utils.MarshalJSON(u.DestinationS3UpdateAvroApacheAvro, "", true) } - if u.CSVCommaSeparatedValues != nil { - return utils.MarshalJSON(u.CSVCommaSeparatedValues, "", true) + if u.DestinationS3UpdateCSVCommaSeparatedValues != nil { + return utils.MarshalJSON(u.DestinationS3UpdateCSVCommaSeparatedValues, "", true) } - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.DestinationS3UpdateJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.DestinationS3UpdateJSONLinesNewlineDelimitedJSON, "", true) } - if u.ParquetColumnarStorage != nil { - return utils.MarshalJSON(u.ParquetColumnarStorage, "", true) + if u.DestinationS3UpdateParquetColumnarStorage != nil { + return utils.MarshalJSON(u.DestinationS3UpdateParquetColumnarStorage, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationsnowflake.go b/internal/sdk/pkg/models/shared/destinationsnowflake.go index c42ead9d6..38b49a6ef 100644 --- a/internal/sdk/pkg/models/shared/destinationsnowflake.go +++ b/internal/sdk/pkg/models/shared/destinationsnowflake.go @@ -204,66 +204,66 @@ func (o *DestinationSnowflakeOAuth20) GetRefreshToken() string { type DestinationSnowflakeAuthorizationMethodType string const ( - DestinationSnowflakeAuthorizationMethodTypeOAuth20 DestinationSnowflakeAuthorizationMethodType = "OAuth20" - DestinationSnowflakeAuthorizationMethodTypeKeyPairAuthentication DestinationSnowflakeAuthorizationMethodType = "KeyPairAuthentication" - DestinationSnowflakeAuthorizationMethodTypeUsernameAndPassword DestinationSnowflakeAuthorizationMethodType = "UsernameAndPassword" + DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeOAuth20 DestinationSnowflakeAuthorizationMethodType = "destination-snowflake_OAuth2.0" + DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeKeyPairAuthentication DestinationSnowflakeAuthorizationMethodType = "destination-snowflake_Key Pair Authentication" + DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeUsernameAndPassword DestinationSnowflakeAuthorizationMethodType = "destination-snowflake_Username and Password" ) type DestinationSnowflakeAuthorizationMethod struct { - OAuth20 *DestinationSnowflakeOAuth20 - KeyPairAuthentication *DestinationSnowflakeKeyPairAuthentication - UsernameAndPassword *DestinationSnowflakeUsernameAndPassword + DestinationSnowflakeOAuth20 *DestinationSnowflakeOAuth20 + DestinationSnowflakeKeyPairAuthentication *DestinationSnowflakeKeyPairAuthentication + DestinationSnowflakeUsernameAndPassword *DestinationSnowflakeUsernameAndPassword Type DestinationSnowflakeAuthorizationMethodType } -func CreateDestinationSnowflakeAuthorizationMethodOAuth20(oAuth20 DestinationSnowflakeOAuth20) DestinationSnowflakeAuthorizationMethod { - typ := DestinationSnowflakeAuthorizationMethodTypeOAuth20 +func CreateDestinationSnowflakeAuthorizationMethodDestinationSnowflakeOAuth20(destinationSnowflakeOAuth20 DestinationSnowflakeOAuth20) DestinationSnowflakeAuthorizationMethod { + typ := DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeOAuth20 return DestinationSnowflakeAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + DestinationSnowflakeOAuth20: &destinationSnowflakeOAuth20, + Type: typ, } } -func CreateDestinationSnowflakeAuthorizationMethodKeyPairAuthentication(keyPairAuthentication DestinationSnowflakeKeyPairAuthentication) DestinationSnowflakeAuthorizationMethod { - typ := DestinationSnowflakeAuthorizationMethodTypeKeyPairAuthentication +func CreateDestinationSnowflakeAuthorizationMethodDestinationSnowflakeKeyPairAuthentication(destinationSnowflakeKeyPairAuthentication DestinationSnowflakeKeyPairAuthentication) DestinationSnowflakeAuthorizationMethod { + typ := DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeKeyPairAuthentication return DestinationSnowflakeAuthorizationMethod{ - KeyPairAuthentication: &keyPairAuthentication, - Type: typ, + DestinationSnowflakeKeyPairAuthentication: &destinationSnowflakeKeyPairAuthentication, + Type: typ, } } -func CreateDestinationSnowflakeAuthorizationMethodUsernameAndPassword(usernameAndPassword DestinationSnowflakeUsernameAndPassword) DestinationSnowflakeAuthorizationMethod { - typ := DestinationSnowflakeAuthorizationMethodTypeUsernameAndPassword +func CreateDestinationSnowflakeAuthorizationMethodDestinationSnowflakeUsernameAndPassword(destinationSnowflakeUsernameAndPassword DestinationSnowflakeUsernameAndPassword) DestinationSnowflakeAuthorizationMethod { + typ := DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeUsernameAndPassword return DestinationSnowflakeAuthorizationMethod{ - UsernameAndPassword: &usernameAndPassword, - Type: typ, + DestinationSnowflakeUsernameAndPassword: &destinationSnowflakeUsernameAndPassword, + Type: typ, } } func (u *DestinationSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error { - usernameAndPassword := new(DestinationSnowflakeUsernameAndPassword) - if err := utils.UnmarshalJSON(data, &usernameAndPassword, "", true, true); err == nil { - u.UsernameAndPassword = usernameAndPassword - u.Type = DestinationSnowflakeAuthorizationMethodTypeUsernameAndPassword + destinationSnowflakeUsernameAndPassword := new(DestinationSnowflakeUsernameAndPassword) + if err := utils.UnmarshalJSON(data, &destinationSnowflakeUsernameAndPassword, "", true, true); err == nil { + u.DestinationSnowflakeUsernameAndPassword = destinationSnowflakeUsernameAndPassword + u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeUsernameAndPassword return nil } - keyPairAuthentication := new(DestinationSnowflakeKeyPairAuthentication) - if err := utils.UnmarshalJSON(data, &keyPairAuthentication, "", true, true); err == nil { - u.KeyPairAuthentication = keyPairAuthentication - u.Type = DestinationSnowflakeAuthorizationMethodTypeKeyPairAuthentication + destinationSnowflakeKeyPairAuthentication := new(DestinationSnowflakeKeyPairAuthentication) + if err := utils.UnmarshalJSON(data, &destinationSnowflakeKeyPairAuthentication, "", true, true); err == nil { + u.DestinationSnowflakeKeyPairAuthentication = destinationSnowflakeKeyPairAuthentication + u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeKeyPairAuthentication return nil } - oAuth20 := new(DestinationSnowflakeOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = DestinationSnowflakeAuthorizationMethodTypeOAuth20 + destinationSnowflakeOAuth20 := new(DestinationSnowflakeOAuth20) + if err := utils.UnmarshalJSON(data, &destinationSnowflakeOAuth20, "", true, true); err == nil { + u.DestinationSnowflakeOAuth20 = destinationSnowflakeOAuth20 + u.Type = DestinationSnowflakeAuthorizationMethodTypeDestinationSnowflakeOAuth20 return nil } @@ -271,16 +271,16 @@ func (u *DestinationSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) err } func (u DestinationSnowflakeAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.DestinationSnowflakeOAuth20 != nil { + return utils.MarshalJSON(u.DestinationSnowflakeOAuth20, "", true) } - if u.KeyPairAuthentication != nil { - return utils.MarshalJSON(u.KeyPairAuthentication, "", true) + if u.DestinationSnowflakeKeyPairAuthentication != nil { + return utils.MarshalJSON(u.DestinationSnowflakeKeyPairAuthentication, "", true) } - if u.UsernameAndPassword != nil { - return utils.MarshalJSON(u.UsernameAndPassword, "", true) + if u.DestinationSnowflakeUsernameAndPassword != nil { + return utils.MarshalJSON(u.DestinationSnowflakeUsernameAndPassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go b/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go index c5fce315b..cbac3b3f9 100644 --- a/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go +++ b/internal/sdk/pkg/models/shared/destinationsnowflakeupdate.go @@ -204,9 +204,9 @@ func (o *OAuth20) GetRefreshToken() string { type AuthorizationMethodType string const ( - AuthorizationMethodTypeOAuth20 AuthorizationMethodType = "OAuth20" - AuthorizationMethodTypeKeyPairAuthentication AuthorizationMethodType = "KeyPairAuthentication" - AuthorizationMethodTypeUsernameAndPassword AuthorizationMethodType = "UsernameAndPassword" + AuthorizationMethodTypeOAuth20 AuthorizationMethodType = "OAuth2.0" + AuthorizationMethodTypeKeyPairAuthentication AuthorizationMethodType = "Key Pair Authentication" + AuthorizationMethodTypeUsernameAndPassword AuthorizationMethodType = "Username and Password" ) type AuthorizationMethod struct { diff --git a/internal/sdk/pkg/models/shared/destinationvertica.go b/internal/sdk/pkg/models/shared/destinationvertica.go index 692014cf4..32be93154 100644 --- a/internal/sdk/pkg/models/shared/destinationvertica.go +++ b/internal/sdk/pkg/models/shared/destinationvertica.go @@ -246,66 +246,66 @@ func (o *DestinationVerticaNoTunnel) GetTunnelMethod() DestinationVerticaTunnelM type DestinationVerticaSSHTunnelMethodType string const ( - DestinationVerticaSSHTunnelMethodTypeNoTunnel DestinationVerticaSSHTunnelMethodType = "NoTunnel" - DestinationVerticaSSHTunnelMethodTypeSSHKeyAuthentication DestinationVerticaSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationVerticaSSHTunnelMethodTypePasswordAuthentication DestinationVerticaSSHTunnelMethodType = "PasswordAuthentication" + DestinationVerticaSSHTunnelMethodTypeDestinationVerticaNoTunnel DestinationVerticaSSHTunnelMethodType = "destination-vertica_No Tunnel" + DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHKeyAuthentication DestinationVerticaSSHTunnelMethodType = "destination-vertica_SSH Key Authentication" + DestinationVerticaSSHTunnelMethodTypeDestinationVerticaPasswordAuthentication DestinationVerticaSSHTunnelMethodType = "destination-vertica_Password Authentication" ) type DestinationVerticaSSHTunnelMethod struct { - NoTunnel *DestinationVerticaNoTunnel - SSHKeyAuthentication *DestinationVerticaSSHKeyAuthentication - PasswordAuthentication *DestinationVerticaPasswordAuthentication + DestinationVerticaNoTunnel *DestinationVerticaNoTunnel + DestinationVerticaSSHKeyAuthentication *DestinationVerticaSSHKeyAuthentication + DestinationVerticaPasswordAuthentication *DestinationVerticaPasswordAuthentication Type DestinationVerticaSSHTunnelMethodType } -func CreateDestinationVerticaSSHTunnelMethodNoTunnel(noTunnel DestinationVerticaNoTunnel) DestinationVerticaSSHTunnelMethod { - typ := DestinationVerticaSSHTunnelMethodTypeNoTunnel +func CreateDestinationVerticaSSHTunnelMethodDestinationVerticaNoTunnel(destinationVerticaNoTunnel DestinationVerticaNoTunnel) DestinationVerticaSSHTunnelMethod { + typ := DestinationVerticaSSHTunnelMethodTypeDestinationVerticaNoTunnel return DestinationVerticaSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationVerticaNoTunnel: &destinationVerticaNoTunnel, + Type: typ, } } -func CreateDestinationVerticaSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationVerticaSSHKeyAuthentication) DestinationVerticaSSHTunnelMethod { - typ := DestinationVerticaSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationVerticaSSHTunnelMethodDestinationVerticaSSHKeyAuthentication(destinationVerticaSSHKeyAuthentication DestinationVerticaSSHKeyAuthentication) DestinationVerticaSSHTunnelMethod { + typ := DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHKeyAuthentication return DestinationVerticaSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationVerticaSSHKeyAuthentication: &destinationVerticaSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationVerticaSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationVerticaPasswordAuthentication) DestinationVerticaSSHTunnelMethod { - typ := DestinationVerticaSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationVerticaSSHTunnelMethodDestinationVerticaPasswordAuthentication(destinationVerticaPasswordAuthentication DestinationVerticaPasswordAuthentication) DestinationVerticaSSHTunnelMethod { + typ := DestinationVerticaSSHTunnelMethodTypeDestinationVerticaPasswordAuthentication return DestinationVerticaSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationVerticaPasswordAuthentication: &destinationVerticaPasswordAuthentication, + Type: typ, } } func (u *DestinationVerticaSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationVerticaNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationVerticaSSHTunnelMethodTypeNoTunnel + destinationVerticaNoTunnel := new(DestinationVerticaNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationVerticaNoTunnel, "", true, true); err == nil { + u.DestinationVerticaNoTunnel = destinationVerticaNoTunnel + u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaNoTunnel return nil } - sshKeyAuthentication := new(DestinationVerticaSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationVerticaSSHTunnelMethodTypeSSHKeyAuthentication + destinationVerticaSSHKeyAuthentication := new(DestinationVerticaSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationVerticaSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationVerticaSSHKeyAuthentication = destinationVerticaSSHKeyAuthentication + u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationVerticaPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationVerticaSSHTunnelMethodTypePasswordAuthentication + destinationVerticaPasswordAuthentication := new(DestinationVerticaPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationVerticaPasswordAuthentication, "", true, true); err == nil { + u.DestinationVerticaPasswordAuthentication = destinationVerticaPasswordAuthentication + u.Type = DestinationVerticaSSHTunnelMethodTypeDestinationVerticaPasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *DestinationVerticaSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u DestinationVerticaSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationVerticaNoTunnel != nil { + return utils.MarshalJSON(u.DestinationVerticaNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationVerticaSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationVerticaSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationVerticaPasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationVerticaPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/destinationverticaupdate.go b/internal/sdk/pkg/models/shared/destinationverticaupdate.go index 81e71e409..b5e2c9c99 100644 --- a/internal/sdk/pkg/models/shared/destinationverticaupdate.go +++ b/internal/sdk/pkg/models/shared/destinationverticaupdate.go @@ -222,66 +222,66 @@ func (o *DestinationVerticaUpdateNoTunnel) GetTunnelMethod() DestinationVerticaU type DestinationVerticaUpdateSSHTunnelMethodType string const ( - DestinationVerticaUpdateSSHTunnelMethodTypeNoTunnel DestinationVerticaUpdateSSHTunnelMethodType = "NoTunnel" - DestinationVerticaUpdateSSHTunnelMethodTypeSSHKeyAuthentication DestinationVerticaUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - DestinationVerticaUpdateSSHTunnelMethodTypePasswordAuthentication DestinationVerticaUpdateSSHTunnelMethodType = "PasswordAuthentication" + DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateNoTunnel DestinationVerticaUpdateSSHTunnelMethodType = "destination-vertica-update_No Tunnel" + DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHKeyAuthentication DestinationVerticaUpdateSSHTunnelMethodType = "destination-vertica-update_SSH Key Authentication" + DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdatePasswordAuthentication DestinationVerticaUpdateSSHTunnelMethodType = "destination-vertica-update_Password Authentication" ) type DestinationVerticaUpdateSSHTunnelMethod struct { - NoTunnel *DestinationVerticaUpdateNoTunnel - SSHKeyAuthentication *DestinationVerticaUpdateSSHKeyAuthentication - PasswordAuthentication *DestinationVerticaUpdatePasswordAuthentication + DestinationVerticaUpdateNoTunnel *DestinationVerticaUpdateNoTunnel + DestinationVerticaUpdateSSHKeyAuthentication *DestinationVerticaUpdateSSHKeyAuthentication + DestinationVerticaUpdatePasswordAuthentication *DestinationVerticaUpdatePasswordAuthentication Type DestinationVerticaUpdateSSHTunnelMethodType } -func CreateDestinationVerticaUpdateSSHTunnelMethodNoTunnel(noTunnel DestinationVerticaUpdateNoTunnel) DestinationVerticaUpdateSSHTunnelMethod { - typ := DestinationVerticaUpdateSSHTunnelMethodTypeNoTunnel +func CreateDestinationVerticaUpdateSSHTunnelMethodDestinationVerticaUpdateNoTunnel(destinationVerticaUpdateNoTunnel DestinationVerticaUpdateNoTunnel) DestinationVerticaUpdateSSHTunnelMethod { + typ := DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateNoTunnel return DestinationVerticaUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + DestinationVerticaUpdateNoTunnel: &destinationVerticaUpdateNoTunnel, + Type: typ, } } -func CreateDestinationVerticaUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication DestinationVerticaUpdateSSHKeyAuthentication) DestinationVerticaUpdateSSHTunnelMethod { - typ := DestinationVerticaUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateDestinationVerticaUpdateSSHTunnelMethodDestinationVerticaUpdateSSHKeyAuthentication(destinationVerticaUpdateSSHKeyAuthentication DestinationVerticaUpdateSSHKeyAuthentication) DestinationVerticaUpdateSSHTunnelMethod { + typ := DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHKeyAuthentication return DestinationVerticaUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + DestinationVerticaUpdateSSHKeyAuthentication: &destinationVerticaUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateDestinationVerticaUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication DestinationVerticaUpdatePasswordAuthentication) DestinationVerticaUpdateSSHTunnelMethod { - typ := DestinationVerticaUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateDestinationVerticaUpdateSSHTunnelMethodDestinationVerticaUpdatePasswordAuthentication(destinationVerticaUpdatePasswordAuthentication DestinationVerticaUpdatePasswordAuthentication) DestinationVerticaUpdateSSHTunnelMethod { + typ := DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdatePasswordAuthentication return DestinationVerticaUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + DestinationVerticaUpdatePasswordAuthentication: &destinationVerticaUpdatePasswordAuthentication, + Type: typ, } } func (u *DestinationVerticaUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(DestinationVerticaUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeNoTunnel + destinationVerticaUpdateNoTunnel := new(DestinationVerticaUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &destinationVerticaUpdateNoTunnel, "", true, true); err == nil { + u.DestinationVerticaUpdateNoTunnel = destinationVerticaUpdateNoTunnel + u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateNoTunnel return nil } - sshKeyAuthentication := new(DestinationVerticaUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeSSHKeyAuthentication + destinationVerticaUpdateSSHKeyAuthentication := new(DestinationVerticaUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &destinationVerticaUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.DestinationVerticaUpdateSSHKeyAuthentication = destinationVerticaUpdateSSHKeyAuthentication + u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(DestinationVerticaUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = DestinationVerticaUpdateSSHTunnelMethodTypePasswordAuthentication + destinationVerticaUpdatePasswordAuthentication := new(DestinationVerticaUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &destinationVerticaUpdatePasswordAuthentication, "", true, true); err == nil { + u.DestinationVerticaUpdatePasswordAuthentication = destinationVerticaUpdatePasswordAuthentication + u.Type = DestinationVerticaUpdateSSHTunnelMethodTypeDestinationVerticaUpdatePasswordAuthentication return nil } @@ -289,16 +289,16 @@ func (u *DestinationVerticaUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) err } func (u DestinationVerticaUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.DestinationVerticaUpdateNoTunnel != nil { + return utils.MarshalJSON(u.DestinationVerticaUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.DestinationVerticaUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.DestinationVerticaUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.DestinationVerticaUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.DestinationVerticaUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceairtable.go b/internal/sdk/pkg/models/shared/sourceairtable.go index 6221ad827..5b3a36d81 100644 --- a/internal/sdk/pkg/models/shared/sourceairtable.go +++ b/internal/sdk/pkg/models/shared/sourceairtable.go @@ -153,48 +153,48 @@ func (o *SourceAirtableOAuth20) GetTokenExpiryDate() *time.Time { type SourceAirtableAuthenticationType string const ( - SourceAirtableAuthenticationTypeOAuth20 SourceAirtableAuthenticationType = "OAuth20" - SourceAirtableAuthenticationTypePersonalAccessToken SourceAirtableAuthenticationType = "PersonalAccessToken" + SourceAirtableAuthenticationTypeSourceAirtableOAuth20 SourceAirtableAuthenticationType = "source-airtable_OAuth2.0" + SourceAirtableAuthenticationTypeSourceAirtablePersonalAccessToken SourceAirtableAuthenticationType = "source-airtable_Personal Access Token" ) type SourceAirtableAuthentication struct { - OAuth20 *SourceAirtableOAuth20 - PersonalAccessToken *SourceAirtablePersonalAccessToken + SourceAirtableOAuth20 *SourceAirtableOAuth20 + SourceAirtablePersonalAccessToken *SourceAirtablePersonalAccessToken Type SourceAirtableAuthenticationType } -func CreateSourceAirtableAuthenticationOAuth20(oAuth20 SourceAirtableOAuth20) SourceAirtableAuthentication { - typ := SourceAirtableAuthenticationTypeOAuth20 +func CreateSourceAirtableAuthenticationSourceAirtableOAuth20(sourceAirtableOAuth20 SourceAirtableOAuth20) SourceAirtableAuthentication { + typ := SourceAirtableAuthenticationTypeSourceAirtableOAuth20 return SourceAirtableAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceAirtableOAuth20: &sourceAirtableOAuth20, + Type: typ, } } -func CreateSourceAirtableAuthenticationPersonalAccessToken(personalAccessToken SourceAirtablePersonalAccessToken) SourceAirtableAuthentication { - typ := SourceAirtableAuthenticationTypePersonalAccessToken +func CreateSourceAirtableAuthenticationSourceAirtablePersonalAccessToken(sourceAirtablePersonalAccessToken SourceAirtablePersonalAccessToken) SourceAirtableAuthentication { + typ := SourceAirtableAuthenticationTypeSourceAirtablePersonalAccessToken return SourceAirtableAuthentication{ - PersonalAccessToken: &personalAccessToken, - Type: typ, + SourceAirtablePersonalAccessToken: &sourceAirtablePersonalAccessToken, + Type: typ, } } func (u *SourceAirtableAuthentication) UnmarshalJSON(data []byte) error { - personalAccessToken := new(SourceAirtablePersonalAccessToken) - if err := utils.UnmarshalJSON(data, &personalAccessToken, "", true, true); err == nil { - u.PersonalAccessToken = personalAccessToken - u.Type = SourceAirtableAuthenticationTypePersonalAccessToken + sourceAirtablePersonalAccessToken := new(SourceAirtablePersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceAirtablePersonalAccessToken, "", true, true); err == nil { + u.SourceAirtablePersonalAccessToken = sourceAirtablePersonalAccessToken + u.Type = SourceAirtableAuthenticationTypeSourceAirtablePersonalAccessToken return nil } - oAuth20 := new(SourceAirtableOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceAirtableAuthenticationTypeOAuth20 + sourceAirtableOAuth20 := new(SourceAirtableOAuth20) + if err := utils.UnmarshalJSON(data, &sourceAirtableOAuth20, "", true, true); err == nil { + u.SourceAirtableOAuth20 = sourceAirtableOAuth20 + u.Type = SourceAirtableAuthenticationTypeSourceAirtableOAuth20 return nil } @@ -202,12 +202,12 @@ func (u *SourceAirtableAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceAirtableAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceAirtableOAuth20 != nil { + return utils.MarshalJSON(u.SourceAirtableOAuth20, "", true) } - if u.PersonalAccessToken != nil { - return utils.MarshalJSON(u.PersonalAccessToken, "", true) + if u.SourceAirtablePersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceAirtablePersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceairtableupdate.go b/internal/sdk/pkg/models/shared/sourceairtableupdate.go index 6610bf645..9e185c9ad 100644 --- a/internal/sdk/pkg/models/shared/sourceairtableupdate.go +++ b/internal/sdk/pkg/models/shared/sourceairtableupdate.go @@ -153,23 +153,23 @@ func (o *SourceAirtableUpdateOAuth20) GetTokenExpiryDate() *time.Time { type SourceAirtableUpdateAuthenticationType string const ( - SourceAirtableUpdateAuthenticationTypeOAuth20 SourceAirtableUpdateAuthenticationType = "OAuth20" - SourceAirtableUpdateAuthenticationTypePersonalAccessToken SourceAirtableUpdateAuthenticationType = "PersonalAccessToken" + SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateOAuth20 SourceAirtableUpdateAuthenticationType = "source-airtable-update_OAuth2.0" + SourceAirtableUpdateAuthenticationTypePersonalAccessToken SourceAirtableUpdateAuthenticationType = "Personal Access Token" ) type SourceAirtableUpdateAuthentication struct { - OAuth20 *SourceAirtableUpdateOAuth20 - PersonalAccessToken *PersonalAccessToken + SourceAirtableUpdateOAuth20 *SourceAirtableUpdateOAuth20 + PersonalAccessToken *PersonalAccessToken Type SourceAirtableUpdateAuthenticationType } -func CreateSourceAirtableUpdateAuthenticationOAuth20(oAuth20 SourceAirtableUpdateOAuth20) SourceAirtableUpdateAuthentication { - typ := SourceAirtableUpdateAuthenticationTypeOAuth20 +func CreateSourceAirtableUpdateAuthenticationSourceAirtableUpdateOAuth20(sourceAirtableUpdateOAuth20 SourceAirtableUpdateOAuth20) SourceAirtableUpdateAuthentication { + typ := SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateOAuth20 return SourceAirtableUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceAirtableUpdateOAuth20: &sourceAirtableUpdateOAuth20, + Type: typ, } } @@ -191,10 +191,10 @@ func (u *SourceAirtableUpdateAuthentication) UnmarshalJSON(data []byte) error { return nil } - oAuth20 := new(SourceAirtableUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceAirtableUpdateAuthenticationTypeOAuth20 + sourceAirtableUpdateOAuth20 := new(SourceAirtableUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceAirtableUpdateOAuth20, "", true, true); err == nil { + u.SourceAirtableUpdateOAuth20 = sourceAirtableUpdateOAuth20 + u.Type = SourceAirtableUpdateAuthenticationTypeSourceAirtableUpdateOAuth20 return nil } @@ -202,8 +202,8 @@ func (u *SourceAirtableUpdateAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceAirtableUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceAirtableUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceAirtableUpdateOAuth20, "", true) } if u.PersonalAccessToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcealloydb.go b/internal/sdk/pkg/models/shared/sourcealloydb.go index abeae99e8..a971ce534 100644 --- a/internal/sdk/pkg/models/shared/sourcealloydb.go +++ b/internal/sdk/pkg/models/shared/sourcealloydb.go @@ -259,66 +259,66 @@ func (o *SourceAlloydbStandardXmin) GetMethod() SourceAlloydbMethod { type SourceAlloydbReplicationMethodType string const ( - SourceAlloydbReplicationMethodTypeStandardXmin SourceAlloydbReplicationMethodType = "StandardXmin" - SourceAlloydbReplicationMethodTypeLogicalReplicationCDC SourceAlloydbReplicationMethodType = "LogicalReplicationCDC" - SourceAlloydbReplicationMethodTypeStandard SourceAlloydbReplicationMethodType = "Standard" + SourceAlloydbReplicationMethodTypeSourceAlloydbStandardXmin SourceAlloydbReplicationMethodType = "source-alloydb_Standard (Xmin)" + SourceAlloydbReplicationMethodTypeSourceAlloydbLogicalReplicationCDC SourceAlloydbReplicationMethodType = "source-alloydb_Logical Replication (CDC)" + SourceAlloydbReplicationMethodTypeSourceAlloydbStandard SourceAlloydbReplicationMethodType = "source-alloydb_Standard" ) type SourceAlloydbReplicationMethod struct { - StandardXmin *SourceAlloydbStandardXmin - LogicalReplicationCDC *SourceAlloydbLogicalReplicationCDC - Standard *SourceAlloydbStandard + SourceAlloydbStandardXmin *SourceAlloydbStandardXmin + SourceAlloydbLogicalReplicationCDC *SourceAlloydbLogicalReplicationCDC + SourceAlloydbStandard *SourceAlloydbStandard Type SourceAlloydbReplicationMethodType } -func CreateSourceAlloydbReplicationMethodStandardXmin(standardXmin SourceAlloydbStandardXmin) SourceAlloydbReplicationMethod { - typ := SourceAlloydbReplicationMethodTypeStandardXmin +func CreateSourceAlloydbReplicationMethodSourceAlloydbStandardXmin(sourceAlloydbStandardXmin SourceAlloydbStandardXmin) SourceAlloydbReplicationMethod { + typ := SourceAlloydbReplicationMethodTypeSourceAlloydbStandardXmin return SourceAlloydbReplicationMethod{ - StandardXmin: &standardXmin, - Type: typ, + SourceAlloydbStandardXmin: &sourceAlloydbStandardXmin, + Type: typ, } } -func CreateSourceAlloydbReplicationMethodLogicalReplicationCDC(logicalReplicationCDC SourceAlloydbLogicalReplicationCDC) SourceAlloydbReplicationMethod { - typ := SourceAlloydbReplicationMethodTypeLogicalReplicationCDC +func CreateSourceAlloydbReplicationMethodSourceAlloydbLogicalReplicationCDC(sourceAlloydbLogicalReplicationCDC SourceAlloydbLogicalReplicationCDC) SourceAlloydbReplicationMethod { + typ := SourceAlloydbReplicationMethodTypeSourceAlloydbLogicalReplicationCDC return SourceAlloydbReplicationMethod{ - LogicalReplicationCDC: &logicalReplicationCDC, - Type: typ, + SourceAlloydbLogicalReplicationCDC: &sourceAlloydbLogicalReplicationCDC, + Type: typ, } } -func CreateSourceAlloydbReplicationMethodStandard(standard SourceAlloydbStandard) SourceAlloydbReplicationMethod { - typ := SourceAlloydbReplicationMethodTypeStandard +func CreateSourceAlloydbReplicationMethodSourceAlloydbStandard(sourceAlloydbStandard SourceAlloydbStandard) SourceAlloydbReplicationMethod { + typ := SourceAlloydbReplicationMethodTypeSourceAlloydbStandard return SourceAlloydbReplicationMethod{ - Standard: &standard, - Type: typ, + SourceAlloydbStandard: &sourceAlloydbStandard, + Type: typ, } } func (u *SourceAlloydbReplicationMethod) UnmarshalJSON(data []byte) error { - standardXmin := new(SourceAlloydbStandardXmin) - if err := utils.UnmarshalJSON(data, &standardXmin, "", true, true); err == nil { - u.StandardXmin = standardXmin - u.Type = SourceAlloydbReplicationMethodTypeStandardXmin + sourceAlloydbStandardXmin := new(SourceAlloydbStandardXmin) + if err := utils.UnmarshalJSON(data, &sourceAlloydbStandardXmin, "", true, true); err == nil { + u.SourceAlloydbStandardXmin = sourceAlloydbStandardXmin + u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbStandardXmin return nil } - standard := new(SourceAlloydbStandard) - if err := utils.UnmarshalJSON(data, &standard, "", true, true); err == nil { - u.Standard = standard - u.Type = SourceAlloydbReplicationMethodTypeStandard + sourceAlloydbStandard := new(SourceAlloydbStandard) + if err := utils.UnmarshalJSON(data, &sourceAlloydbStandard, "", true, true); err == nil { + u.SourceAlloydbStandard = sourceAlloydbStandard + u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbStandard return nil } - logicalReplicationCDC := new(SourceAlloydbLogicalReplicationCDC) - if err := utils.UnmarshalJSON(data, &logicalReplicationCDC, "", true, true); err == nil { - u.LogicalReplicationCDC = logicalReplicationCDC - u.Type = SourceAlloydbReplicationMethodTypeLogicalReplicationCDC + sourceAlloydbLogicalReplicationCDC := new(SourceAlloydbLogicalReplicationCDC) + if err := utils.UnmarshalJSON(data, &sourceAlloydbLogicalReplicationCDC, "", true, true); err == nil { + u.SourceAlloydbLogicalReplicationCDC = sourceAlloydbLogicalReplicationCDC + u.Type = SourceAlloydbReplicationMethodTypeSourceAlloydbLogicalReplicationCDC return nil } @@ -326,16 +326,16 @@ func (u *SourceAlloydbReplicationMethod) UnmarshalJSON(data []byte) error { } func (u SourceAlloydbReplicationMethod) MarshalJSON() ([]byte, error) { - if u.StandardXmin != nil { - return utils.MarshalJSON(u.StandardXmin, "", true) + if u.SourceAlloydbStandardXmin != nil { + return utils.MarshalJSON(u.SourceAlloydbStandardXmin, "", true) } - if u.LogicalReplicationCDC != nil { - return utils.MarshalJSON(u.LogicalReplicationCDC, "", true) + if u.SourceAlloydbLogicalReplicationCDC != nil { + return utils.MarshalJSON(u.SourceAlloydbLogicalReplicationCDC, "", true) } - if u.Standard != nil { - return utils.MarshalJSON(u.Standard, "", true) + if u.SourceAlloydbStandard != nil { + return utils.MarshalJSON(u.SourceAlloydbStandard, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -752,120 +752,120 @@ func (o *SourceAlloydbDisable) GetMode() SourceAlloydbMode { type SourceAlloydbSSLModesType string const ( - SourceAlloydbSSLModesTypeDisable SourceAlloydbSSLModesType = "Disable" - SourceAlloydbSSLModesTypeAllow SourceAlloydbSSLModesType = "Allow" - SourceAlloydbSSLModesTypePrefer SourceAlloydbSSLModesType = "Prefer" - SourceAlloydbSSLModesTypeRequire SourceAlloydbSSLModesType = "Require" - SourceAlloydbSSLModesTypeVerifyCa SourceAlloydbSSLModesType = "VerifyCa" - SourceAlloydbSSLModesTypeVerifyFull SourceAlloydbSSLModesType = "VerifyFull" + SourceAlloydbSSLModesTypeSourceAlloydbDisable SourceAlloydbSSLModesType = "source-alloydb_disable" + SourceAlloydbSSLModesTypeSourceAlloydbAllow SourceAlloydbSSLModesType = "source-alloydb_allow" + SourceAlloydbSSLModesTypeSourceAlloydbPrefer SourceAlloydbSSLModesType = "source-alloydb_prefer" + SourceAlloydbSSLModesTypeSourceAlloydbRequire SourceAlloydbSSLModesType = "source-alloydb_require" + SourceAlloydbSSLModesTypeSourceAlloydbVerifyCa SourceAlloydbSSLModesType = "source-alloydb_verify-ca" + SourceAlloydbSSLModesTypeSourceAlloydbVerifyFull SourceAlloydbSSLModesType = "source-alloydb_verify-full" ) type SourceAlloydbSSLModes struct { - Disable *SourceAlloydbDisable - Allow *SourceAlloydbAllow - Prefer *SourceAlloydbPrefer - Require *SourceAlloydbRequire - VerifyCa *SourceAlloydbVerifyCa - VerifyFull *SourceAlloydbVerifyFull + SourceAlloydbDisable *SourceAlloydbDisable + SourceAlloydbAllow *SourceAlloydbAllow + SourceAlloydbPrefer *SourceAlloydbPrefer + SourceAlloydbRequire *SourceAlloydbRequire + SourceAlloydbVerifyCa *SourceAlloydbVerifyCa + SourceAlloydbVerifyFull *SourceAlloydbVerifyFull Type SourceAlloydbSSLModesType } -func CreateSourceAlloydbSSLModesDisable(disable SourceAlloydbDisable) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypeDisable +func CreateSourceAlloydbSSLModesSourceAlloydbDisable(sourceAlloydbDisable SourceAlloydbDisable) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbDisable return SourceAlloydbSSLModes{ - Disable: &disable, - Type: typ, + SourceAlloydbDisable: &sourceAlloydbDisable, + Type: typ, } } -func CreateSourceAlloydbSSLModesAllow(allow SourceAlloydbAllow) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypeAllow +func CreateSourceAlloydbSSLModesSourceAlloydbAllow(sourceAlloydbAllow SourceAlloydbAllow) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbAllow return SourceAlloydbSSLModes{ - Allow: &allow, - Type: typ, + SourceAlloydbAllow: &sourceAlloydbAllow, + Type: typ, } } -func CreateSourceAlloydbSSLModesPrefer(prefer SourceAlloydbPrefer) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypePrefer +func CreateSourceAlloydbSSLModesSourceAlloydbPrefer(sourceAlloydbPrefer SourceAlloydbPrefer) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbPrefer return SourceAlloydbSSLModes{ - Prefer: &prefer, - Type: typ, + SourceAlloydbPrefer: &sourceAlloydbPrefer, + Type: typ, } } -func CreateSourceAlloydbSSLModesRequire(require SourceAlloydbRequire) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypeRequire +func CreateSourceAlloydbSSLModesSourceAlloydbRequire(sourceAlloydbRequire SourceAlloydbRequire) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbRequire return SourceAlloydbSSLModes{ - Require: &require, - Type: typ, + SourceAlloydbRequire: &sourceAlloydbRequire, + Type: typ, } } -func CreateSourceAlloydbSSLModesVerifyCa(verifyCa SourceAlloydbVerifyCa) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypeVerifyCa +func CreateSourceAlloydbSSLModesSourceAlloydbVerifyCa(sourceAlloydbVerifyCa SourceAlloydbVerifyCa) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbVerifyCa return SourceAlloydbSSLModes{ - VerifyCa: &verifyCa, - Type: typ, + SourceAlloydbVerifyCa: &sourceAlloydbVerifyCa, + Type: typ, } } -func CreateSourceAlloydbSSLModesVerifyFull(verifyFull SourceAlloydbVerifyFull) SourceAlloydbSSLModes { - typ := SourceAlloydbSSLModesTypeVerifyFull +func CreateSourceAlloydbSSLModesSourceAlloydbVerifyFull(sourceAlloydbVerifyFull SourceAlloydbVerifyFull) SourceAlloydbSSLModes { + typ := SourceAlloydbSSLModesTypeSourceAlloydbVerifyFull return SourceAlloydbSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + SourceAlloydbVerifyFull: &sourceAlloydbVerifyFull, + Type: typ, } } func (u *SourceAlloydbSSLModes) UnmarshalJSON(data []byte) error { - disable := new(SourceAlloydbDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = SourceAlloydbSSLModesTypeDisable + sourceAlloydbDisable := new(SourceAlloydbDisable) + if err := utils.UnmarshalJSON(data, &sourceAlloydbDisable, "", true, true); err == nil { + u.SourceAlloydbDisable = sourceAlloydbDisable + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbDisable return nil } - allow := new(SourceAlloydbAllow) - if err := utils.UnmarshalJSON(data, &allow, "", true, true); err == nil { - u.Allow = allow - u.Type = SourceAlloydbSSLModesTypeAllow + sourceAlloydbAllow := new(SourceAlloydbAllow) + if err := utils.UnmarshalJSON(data, &sourceAlloydbAllow, "", true, true); err == nil { + u.SourceAlloydbAllow = sourceAlloydbAllow + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbAllow return nil } - prefer := new(SourceAlloydbPrefer) - if err := utils.UnmarshalJSON(data, &prefer, "", true, true); err == nil { - u.Prefer = prefer - u.Type = SourceAlloydbSSLModesTypePrefer + sourceAlloydbPrefer := new(SourceAlloydbPrefer) + if err := utils.UnmarshalJSON(data, &sourceAlloydbPrefer, "", true, true); err == nil { + u.SourceAlloydbPrefer = sourceAlloydbPrefer + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbPrefer return nil } - require := new(SourceAlloydbRequire) - if err := utils.UnmarshalJSON(data, &require, "", true, true); err == nil { - u.Require = require - u.Type = SourceAlloydbSSLModesTypeRequire + sourceAlloydbRequire := new(SourceAlloydbRequire) + if err := utils.UnmarshalJSON(data, &sourceAlloydbRequire, "", true, true); err == nil { + u.SourceAlloydbRequire = sourceAlloydbRequire + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbRequire return nil } - verifyCa := new(SourceAlloydbVerifyCa) - if err := utils.UnmarshalJSON(data, &verifyCa, "", true, true); err == nil { - u.VerifyCa = verifyCa - u.Type = SourceAlloydbSSLModesTypeVerifyCa + sourceAlloydbVerifyCa := new(SourceAlloydbVerifyCa) + if err := utils.UnmarshalJSON(data, &sourceAlloydbVerifyCa, "", true, true); err == nil { + u.SourceAlloydbVerifyCa = sourceAlloydbVerifyCa + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbVerifyCa return nil } - verifyFull := new(SourceAlloydbVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = SourceAlloydbSSLModesTypeVerifyFull + sourceAlloydbVerifyFull := new(SourceAlloydbVerifyFull) + if err := utils.UnmarshalJSON(data, &sourceAlloydbVerifyFull, "", true, true); err == nil { + u.SourceAlloydbVerifyFull = sourceAlloydbVerifyFull + u.Type = SourceAlloydbSSLModesTypeSourceAlloydbVerifyFull return nil } @@ -873,28 +873,28 @@ func (u *SourceAlloydbSSLModes) UnmarshalJSON(data []byte) error { } func (u SourceAlloydbSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.SourceAlloydbDisable != nil { + return utils.MarshalJSON(u.SourceAlloydbDisable, "", true) } - if u.Allow != nil { - return utils.MarshalJSON(u.Allow, "", true) + if u.SourceAlloydbAllow != nil { + return utils.MarshalJSON(u.SourceAlloydbAllow, "", true) } - if u.Prefer != nil { - return utils.MarshalJSON(u.Prefer, "", true) + if u.SourceAlloydbPrefer != nil { + return utils.MarshalJSON(u.SourceAlloydbPrefer, "", true) } - if u.Require != nil { - return utils.MarshalJSON(u.Require, "", true) + if u.SourceAlloydbRequire != nil { + return utils.MarshalJSON(u.SourceAlloydbRequire, "", true) } - if u.VerifyCa != nil { - return utils.MarshalJSON(u.VerifyCa, "", true) + if u.SourceAlloydbVerifyCa != nil { + return utils.MarshalJSON(u.SourceAlloydbVerifyCa, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.SourceAlloydbVerifyFull != nil { + return utils.MarshalJSON(u.SourceAlloydbVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1113,66 +1113,66 @@ func (o *SourceAlloydbNoTunnel) GetTunnelMethod() SourceAlloydbTunnelMethod { type SourceAlloydbSSHTunnelMethodType string const ( - SourceAlloydbSSHTunnelMethodTypeNoTunnel SourceAlloydbSSHTunnelMethodType = "NoTunnel" - SourceAlloydbSSHTunnelMethodTypeSSHKeyAuthentication SourceAlloydbSSHTunnelMethodType = "SSHKeyAuthentication" - SourceAlloydbSSHTunnelMethodTypePasswordAuthentication SourceAlloydbSSHTunnelMethodType = "PasswordAuthentication" + SourceAlloydbSSHTunnelMethodTypeSourceAlloydbNoTunnel SourceAlloydbSSHTunnelMethodType = "source-alloydb_No Tunnel" + SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHKeyAuthentication SourceAlloydbSSHTunnelMethodType = "source-alloydb_SSH Key Authentication" + SourceAlloydbSSHTunnelMethodTypeSourceAlloydbPasswordAuthentication SourceAlloydbSSHTunnelMethodType = "source-alloydb_Password Authentication" ) type SourceAlloydbSSHTunnelMethod struct { - NoTunnel *SourceAlloydbNoTunnel - SSHKeyAuthentication *SourceAlloydbSSHKeyAuthentication - PasswordAuthentication *SourceAlloydbPasswordAuthentication + SourceAlloydbNoTunnel *SourceAlloydbNoTunnel + SourceAlloydbSSHKeyAuthentication *SourceAlloydbSSHKeyAuthentication + SourceAlloydbPasswordAuthentication *SourceAlloydbPasswordAuthentication Type SourceAlloydbSSHTunnelMethodType } -func CreateSourceAlloydbSSHTunnelMethodNoTunnel(noTunnel SourceAlloydbNoTunnel) SourceAlloydbSSHTunnelMethod { - typ := SourceAlloydbSSHTunnelMethodTypeNoTunnel +func CreateSourceAlloydbSSHTunnelMethodSourceAlloydbNoTunnel(sourceAlloydbNoTunnel SourceAlloydbNoTunnel) SourceAlloydbSSHTunnelMethod { + typ := SourceAlloydbSSHTunnelMethodTypeSourceAlloydbNoTunnel return SourceAlloydbSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceAlloydbNoTunnel: &sourceAlloydbNoTunnel, + Type: typ, } } -func CreateSourceAlloydbSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceAlloydbSSHKeyAuthentication) SourceAlloydbSSHTunnelMethod { - typ := SourceAlloydbSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceAlloydbSSHTunnelMethodSourceAlloydbSSHKeyAuthentication(sourceAlloydbSSHKeyAuthentication SourceAlloydbSSHKeyAuthentication) SourceAlloydbSSHTunnelMethod { + typ := SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHKeyAuthentication return SourceAlloydbSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceAlloydbSSHKeyAuthentication: &sourceAlloydbSSHKeyAuthentication, + Type: typ, } } -func CreateSourceAlloydbSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceAlloydbPasswordAuthentication) SourceAlloydbSSHTunnelMethod { - typ := SourceAlloydbSSHTunnelMethodTypePasswordAuthentication +func CreateSourceAlloydbSSHTunnelMethodSourceAlloydbPasswordAuthentication(sourceAlloydbPasswordAuthentication SourceAlloydbPasswordAuthentication) SourceAlloydbSSHTunnelMethod { + typ := SourceAlloydbSSHTunnelMethodTypeSourceAlloydbPasswordAuthentication return SourceAlloydbSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceAlloydbPasswordAuthentication: &sourceAlloydbPasswordAuthentication, + Type: typ, } } func (u *SourceAlloydbSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceAlloydbNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceAlloydbSSHTunnelMethodTypeNoTunnel + sourceAlloydbNoTunnel := new(SourceAlloydbNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceAlloydbNoTunnel, "", true, true); err == nil { + u.SourceAlloydbNoTunnel = sourceAlloydbNoTunnel + u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbNoTunnel return nil } - sshKeyAuthentication := new(SourceAlloydbSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceAlloydbSSHTunnelMethodTypeSSHKeyAuthentication + sourceAlloydbSSHKeyAuthentication := new(SourceAlloydbSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceAlloydbSSHKeyAuthentication, "", true, true); err == nil { + u.SourceAlloydbSSHKeyAuthentication = sourceAlloydbSSHKeyAuthentication + u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceAlloydbPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceAlloydbSSHTunnelMethodTypePasswordAuthentication + sourceAlloydbPasswordAuthentication := new(SourceAlloydbPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceAlloydbPasswordAuthentication, "", true, true); err == nil { + u.SourceAlloydbPasswordAuthentication = sourceAlloydbPasswordAuthentication + u.Type = SourceAlloydbSSHTunnelMethodTypeSourceAlloydbPasswordAuthentication return nil } @@ -1180,16 +1180,16 @@ func (u *SourceAlloydbSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceAlloydbSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceAlloydbNoTunnel != nil { + return utils.MarshalJSON(u.SourceAlloydbNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceAlloydbSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceAlloydbSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceAlloydbPasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceAlloydbPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcealloydbupdate.go b/internal/sdk/pkg/models/shared/sourcealloydbupdate.go index 7427fe87f..3f937db10 100644 --- a/internal/sdk/pkg/models/shared/sourcealloydbupdate.go +++ b/internal/sdk/pkg/models/shared/sourcealloydbupdate.go @@ -259,15 +259,15 @@ func (o *StandardXmin) GetMethod() SourceAlloydbUpdateMethod { type ReplicationMethodType string const ( - ReplicationMethodTypeStandardXmin ReplicationMethodType = "StandardXmin" - ReplicationMethodTypeLogicalReplicationCDC ReplicationMethodType = "LogicalReplicationCDC" - ReplicationMethodTypeStandard ReplicationMethodType = "Standard" + ReplicationMethodTypeStandardXmin ReplicationMethodType = "Standard (Xmin)" + ReplicationMethodTypeLogicalReplicationCDC ReplicationMethodType = "Logical Replication (CDC)" + ReplicationMethodTypeSourceAlloydbUpdateStandard ReplicationMethodType = "source-alloydb-update_Standard" ) type ReplicationMethod struct { - StandardXmin *StandardXmin - LogicalReplicationCDC *LogicalReplicationCDC - Standard *SourceAlloydbUpdateStandard + StandardXmin *StandardXmin + LogicalReplicationCDC *LogicalReplicationCDC + SourceAlloydbUpdateStandard *SourceAlloydbUpdateStandard Type ReplicationMethodType } @@ -290,12 +290,12 @@ func CreateReplicationMethodLogicalReplicationCDC(logicalReplicationCDC LogicalR } } -func CreateReplicationMethodStandard(standard SourceAlloydbUpdateStandard) ReplicationMethod { - typ := ReplicationMethodTypeStandard +func CreateReplicationMethodSourceAlloydbUpdateStandard(sourceAlloydbUpdateStandard SourceAlloydbUpdateStandard) ReplicationMethod { + typ := ReplicationMethodTypeSourceAlloydbUpdateStandard return ReplicationMethod{ - Standard: &standard, - Type: typ, + SourceAlloydbUpdateStandard: &sourceAlloydbUpdateStandard, + Type: typ, } } @@ -308,10 +308,10 @@ func (u *ReplicationMethod) UnmarshalJSON(data []byte) error { return nil } - standard := new(SourceAlloydbUpdateStandard) - if err := utils.UnmarshalJSON(data, &standard, "", true, true); err == nil { - u.Standard = standard - u.Type = ReplicationMethodTypeStandard + sourceAlloydbUpdateStandard := new(SourceAlloydbUpdateStandard) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateStandard, "", true, true); err == nil { + u.SourceAlloydbUpdateStandard = sourceAlloydbUpdateStandard + u.Type = ReplicationMethodTypeSourceAlloydbUpdateStandard return nil } @@ -334,8 +334,8 @@ func (u ReplicationMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.LogicalReplicationCDC, "", true) } - if u.Standard != nil { - return utils.MarshalJSON(u.Standard, "", true) + if u.SourceAlloydbUpdateStandard != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateStandard, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -728,120 +728,120 @@ func (o *SourceAlloydbUpdateDisable) GetMode() SourceAlloydbUpdateMode { type SourceAlloydbUpdateSSLModesType string const ( - SourceAlloydbUpdateSSLModesTypeDisable SourceAlloydbUpdateSSLModesType = "Disable" - SourceAlloydbUpdateSSLModesTypeAllow SourceAlloydbUpdateSSLModesType = "Allow" - SourceAlloydbUpdateSSLModesTypePrefer SourceAlloydbUpdateSSLModesType = "Prefer" - SourceAlloydbUpdateSSLModesTypeRequire SourceAlloydbUpdateSSLModesType = "Require" - SourceAlloydbUpdateSSLModesTypeVerifyCa SourceAlloydbUpdateSSLModesType = "VerifyCa" - SourceAlloydbUpdateSSLModesTypeVerifyFull SourceAlloydbUpdateSSLModesType = "VerifyFull" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateDisable SourceAlloydbUpdateSSLModesType = "source-alloydb-update_disable" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateAllow SourceAlloydbUpdateSSLModesType = "source-alloydb-update_allow" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdatePrefer SourceAlloydbUpdateSSLModesType = "source-alloydb-update_prefer" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateRequire SourceAlloydbUpdateSSLModesType = "source-alloydb-update_require" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyCa SourceAlloydbUpdateSSLModesType = "source-alloydb-update_verify-ca" + SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyFull SourceAlloydbUpdateSSLModesType = "source-alloydb-update_verify-full" ) type SourceAlloydbUpdateSSLModes struct { - Disable *SourceAlloydbUpdateDisable - Allow *SourceAlloydbUpdateAllow - Prefer *SourceAlloydbUpdatePrefer - Require *SourceAlloydbUpdateRequire - VerifyCa *SourceAlloydbUpdateVerifyCa - VerifyFull *SourceAlloydbUpdateVerifyFull + SourceAlloydbUpdateDisable *SourceAlloydbUpdateDisable + SourceAlloydbUpdateAllow *SourceAlloydbUpdateAllow + SourceAlloydbUpdatePrefer *SourceAlloydbUpdatePrefer + SourceAlloydbUpdateRequire *SourceAlloydbUpdateRequire + SourceAlloydbUpdateVerifyCa *SourceAlloydbUpdateVerifyCa + SourceAlloydbUpdateVerifyFull *SourceAlloydbUpdateVerifyFull Type SourceAlloydbUpdateSSLModesType } -func CreateSourceAlloydbUpdateSSLModesDisable(disable SourceAlloydbUpdateDisable) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypeDisable +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateDisable(sourceAlloydbUpdateDisable SourceAlloydbUpdateDisable) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateDisable return SourceAlloydbUpdateSSLModes{ - Disable: &disable, - Type: typ, + SourceAlloydbUpdateDisable: &sourceAlloydbUpdateDisable, + Type: typ, } } -func CreateSourceAlloydbUpdateSSLModesAllow(allow SourceAlloydbUpdateAllow) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypeAllow +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateAllow(sourceAlloydbUpdateAllow SourceAlloydbUpdateAllow) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateAllow return SourceAlloydbUpdateSSLModes{ - Allow: &allow, - Type: typ, + SourceAlloydbUpdateAllow: &sourceAlloydbUpdateAllow, + Type: typ, } } -func CreateSourceAlloydbUpdateSSLModesPrefer(prefer SourceAlloydbUpdatePrefer) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypePrefer +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdatePrefer(sourceAlloydbUpdatePrefer SourceAlloydbUpdatePrefer) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdatePrefer return SourceAlloydbUpdateSSLModes{ - Prefer: &prefer, - Type: typ, + SourceAlloydbUpdatePrefer: &sourceAlloydbUpdatePrefer, + Type: typ, } } -func CreateSourceAlloydbUpdateSSLModesRequire(require SourceAlloydbUpdateRequire) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypeRequire +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateRequire(sourceAlloydbUpdateRequire SourceAlloydbUpdateRequire) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateRequire return SourceAlloydbUpdateSSLModes{ - Require: &require, - Type: typ, + SourceAlloydbUpdateRequire: &sourceAlloydbUpdateRequire, + Type: typ, } } -func CreateSourceAlloydbUpdateSSLModesVerifyCa(verifyCa SourceAlloydbUpdateVerifyCa) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypeVerifyCa +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateVerifyCa(sourceAlloydbUpdateVerifyCa SourceAlloydbUpdateVerifyCa) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyCa return SourceAlloydbUpdateSSLModes{ - VerifyCa: &verifyCa, - Type: typ, + SourceAlloydbUpdateVerifyCa: &sourceAlloydbUpdateVerifyCa, + Type: typ, } } -func CreateSourceAlloydbUpdateSSLModesVerifyFull(verifyFull SourceAlloydbUpdateVerifyFull) SourceAlloydbUpdateSSLModes { - typ := SourceAlloydbUpdateSSLModesTypeVerifyFull +func CreateSourceAlloydbUpdateSSLModesSourceAlloydbUpdateVerifyFull(sourceAlloydbUpdateVerifyFull SourceAlloydbUpdateVerifyFull) SourceAlloydbUpdateSSLModes { + typ := SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyFull return SourceAlloydbUpdateSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + SourceAlloydbUpdateVerifyFull: &sourceAlloydbUpdateVerifyFull, + Type: typ, } } func (u *SourceAlloydbUpdateSSLModes) UnmarshalJSON(data []byte) error { - disable := new(SourceAlloydbUpdateDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = SourceAlloydbUpdateSSLModesTypeDisable + sourceAlloydbUpdateDisable := new(SourceAlloydbUpdateDisable) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateDisable, "", true, true); err == nil { + u.SourceAlloydbUpdateDisable = sourceAlloydbUpdateDisable + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateDisable return nil } - allow := new(SourceAlloydbUpdateAllow) - if err := utils.UnmarshalJSON(data, &allow, "", true, true); err == nil { - u.Allow = allow - u.Type = SourceAlloydbUpdateSSLModesTypeAllow + sourceAlloydbUpdateAllow := new(SourceAlloydbUpdateAllow) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateAllow, "", true, true); err == nil { + u.SourceAlloydbUpdateAllow = sourceAlloydbUpdateAllow + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateAllow return nil } - prefer := new(SourceAlloydbUpdatePrefer) - if err := utils.UnmarshalJSON(data, &prefer, "", true, true); err == nil { - u.Prefer = prefer - u.Type = SourceAlloydbUpdateSSLModesTypePrefer + sourceAlloydbUpdatePrefer := new(SourceAlloydbUpdatePrefer) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdatePrefer, "", true, true); err == nil { + u.SourceAlloydbUpdatePrefer = sourceAlloydbUpdatePrefer + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdatePrefer return nil } - require := new(SourceAlloydbUpdateRequire) - if err := utils.UnmarshalJSON(data, &require, "", true, true); err == nil { - u.Require = require - u.Type = SourceAlloydbUpdateSSLModesTypeRequire + sourceAlloydbUpdateRequire := new(SourceAlloydbUpdateRequire) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateRequire, "", true, true); err == nil { + u.SourceAlloydbUpdateRequire = sourceAlloydbUpdateRequire + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateRequire return nil } - verifyCa := new(SourceAlloydbUpdateVerifyCa) - if err := utils.UnmarshalJSON(data, &verifyCa, "", true, true); err == nil { - u.VerifyCa = verifyCa - u.Type = SourceAlloydbUpdateSSLModesTypeVerifyCa + sourceAlloydbUpdateVerifyCa := new(SourceAlloydbUpdateVerifyCa) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateVerifyCa, "", true, true); err == nil { + u.SourceAlloydbUpdateVerifyCa = sourceAlloydbUpdateVerifyCa + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyCa return nil } - verifyFull := new(SourceAlloydbUpdateVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = SourceAlloydbUpdateSSLModesTypeVerifyFull + sourceAlloydbUpdateVerifyFull := new(SourceAlloydbUpdateVerifyFull) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateVerifyFull, "", true, true); err == nil { + u.SourceAlloydbUpdateVerifyFull = sourceAlloydbUpdateVerifyFull + u.Type = SourceAlloydbUpdateSSLModesTypeSourceAlloydbUpdateVerifyFull return nil } @@ -849,28 +849,28 @@ func (u *SourceAlloydbUpdateSSLModes) UnmarshalJSON(data []byte) error { } func (u SourceAlloydbUpdateSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.SourceAlloydbUpdateDisable != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateDisable, "", true) } - if u.Allow != nil { - return utils.MarshalJSON(u.Allow, "", true) + if u.SourceAlloydbUpdateAllow != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateAllow, "", true) } - if u.Prefer != nil { - return utils.MarshalJSON(u.Prefer, "", true) + if u.SourceAlloydbUpdatePrefer != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdatePrefer, "", true) } - if u.Require != nil { - return utils.MarshalJSON(u.Require, "", true) + if u.SourceAlloydbUpdateRequire != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateRequire, "", true) } - if u.VerifyCa != nil { - return utils.MarshalJSON(u.VerifyCa, "", true) + if u.SourceAlloydbUpdateVerifyCa != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateVerifyCa, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.SourceAlloydbUpdateVerifyFull != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1089,66 +1089,66 @@ func (o *SourceAlloydbUpdateNoTunnel) GetTunnelMethod() SourceAlloydbUpdateTunne type SourceAlloydbUpdateSSHTunnelMethodType string const ( - SourceAlloydbUpdateSSHTunnelMethodTypeNoTunnel SourceAlloydbUpdateSSHTunnelMethodType = "NoTunnel" - SourceAlloydbUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourceAlloydbUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourceAlloydbUpdateSSHTunnelMethodTypePasswordAuthentication SourceAlloydbUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateNoTunnel SourceAlloydbUpdateSSHTunnelMethodType = "source-alloydb-update_No Tunnel" + SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHKeyAuthentication SourceAlloydbUpdateSSHTunnelMethodType = "source-alloydb-update_SSH Key Authentication" + SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdatePasswordAuthentication SourceAlloydbUpdateSSHTunnelMethodType = "source-alloydb-update_Password Authentication" ) type SourceAlloydbUpdateSSHTunnelMethod struct { - NoTunnel *SourceAlloydbUpdateNoTunnel - SSHKeyAuthentication *SourceAlloydbUpdateSSHKeyAuthentication - PasswordAuthentication *SourceAlloydbUpdatePasswordAuthentication + SourceAlloydbUpdateNoTunnel *SourceAlloydbUpdateNoTunnel + SourceAlloydbUpdateSSHKeyAuthentication *SourceAlloydbUpdateSSHKeyAuthentication + SourceAlloydbUpdatePasswordAuthentication *SourceAlloydbUpdatePasswordAuthentication Type SourceAlloydbUpdateSSHTunnelMethodType } -func CreateSourceAlloydbUpdateSSHTunnelMethodNoTunnel(noTunnel SourceAlloydbUpdateNoTunnel) SourceAlloydbUpdateSSHTunnelMethod { - typ := SourceAlloydbUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourceAlloydbUpdateSSHTunnelMethodSourceAlloydbUpdateNoTunnel(sourceAlloydbUpdateNoTunnel SourceAlloydbUpdateNoTunnel) SourceAlloydbUpdateSSHTunnelMethod { + typ := SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateNoTunnel return SourceAlloydbUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceAlloydbUpdateNoTunnel: &sourceAlloydbUpdateNoTunnel, + Type: typ, } } -func CreateSourceAlloydbUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceAlloydbUpdateSSHKeyAuthentication) SourceAlloydbUpdateSSHTunnelMethod { - typ := SourceAlloydbUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceAlloydbUpdateSSHTunnelMethodSourceAlloydbUpdateSSHKeyAuthentication(sourceAlloydbUpdateSSHKeyAuthentication SourceAlloydbUpdateSSHKeyAuthentication) SourceAlloydbUpdateSSHTunnelMethod { + typ := SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHKeyAuthentication return SourceAlloydbUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceAlloydbUpdateSSHKeyAuthentication: &sourceAlloydbUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourceAlloydbUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceAlloydbUpdatePasswordAuthentication) SourceAlloydbUpdateSSHTunnelMethod { - typ := SourceAlloydbUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourceAlloydbUpdateSSHTunnelMethodSourceAlloydbUpdatePasswordAuthentication(sourceAlloydbUpdatePasswordAuthentication SourceAlloydbUpdatePasswordAuthentication) SourceAlloydbUpdateSSHTunnelMethod { + typ := SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdatePasswordAuthentication return SourceAlloydbUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceAlloydbUpdatePasswordAuthentication: &sourceAlloydbUpdatePasswordAuthentication, + Type: typ, } } func (u *SourceAlloydbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceAlloydbUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeNoTunnel + sourceAlloydbUpdateNoTunnel := new(SourceAlloydbUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateNoTunnel, "", true, true); err == nil { + u.SourceAlloydbUpdateNoTunnel = sourceAlloydbUpdateNoTunnel + u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourceAlloydbUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourceAlloydbUpdateSSHKeyAuthentication := new(SourceAlloydbUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceAlloydbUpdateSSHKeyAuthentication = sourceAlloydbUpdateSSHKeyAuthentication + u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceAlloydbUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceAlloydbUpdateSSHTunnelMethodTypePasswordAuthentication + sourceAlloydbUpdatePasswordAuthentication := new(SourceAlloydbUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceAlloydbUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceAlloydbUpdatePasswordAuthentication = sourceAlloydbUpdatePasswordAuthentication + u.Type = SourceAlloydbUpdateSSHTunnelMethodTypeSourceAlloydbUpdatePasswordAuthentication return nil } @@ -1156,16 +1156,16 @@ func (u *SourceAlloydbUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceAlloydbUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceAlloydbUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceAlloydbUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceAlloydbUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceAlloydbUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceasana.go b/internal/sdk/pkg/models/shared/sourceasana.go index 683ac5aca..ef025b72d 100644 --- a/internal/sdk/pkg/models/shared/sourceasana.go +++ b/internal/sdk/pkg/models/shared/sourceasana.go @@ -137,48 +137,48 @@ func (o *SourceAsanaAuthenticateViaAsanaOauth) GetRefreshToken() string { type SourceAsanaAuthenticationMechanismType string const ( - SourceAsanaAuthenticationMechanismTypeAuthenticateViaAsanaOauth SourceAsanaAuthenticationMechanismType = "AuthenticateViaAsanaOauth" - SourceAsanaAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken SourceAsanaAuthenticationMechanismType = "AuthenticateWithPersonalAccessToken" + SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateViaAsanaOauth SourceAsanaAuthenticationMechanismType = "source-asana_Authenticate via Asana (Oauth)" + SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateWithPersonalAccessToken SourceAsanaAuthenticationMechanismType = "source-asana_Authenticate with Personal Access Token" ) type SourceAsanaAuthenticationMechanism struct { - AuthenticateViaAsanaOauth *SourceAsanaAuthenticateViaAsanaOauth - AuthenticateWithPersonalAccessToken *SourceAsanaAuthenticateWithPersonalAccessToken + SourceAsanaAuthenticateViaAsanaOauth *SourceAsanaAuthenticateViaAsanaOauth + SourceAsanaAuthenticateWithPersonalAccessToken *SourceAsanaAuthenticateWithPersonalAccessToken Type SourceAsanaAuthenticationMechanismType } -func CreateSourceAsanaAuthenticationMechanismAuthenticateViaAsanaOauth(authenticateViaAsanaOauth SourceAsanaAuthenticateViaAsanaOauth) SourceAsanaAuthenticationMechanism { - typ := SourceAsanaAuthenticationMechanismTypeAuthenticateViaAsanaOauth +func CreateSourceAsanaAuthenticationMechanismSourceAsanaAuthenticateViaAsanaOauth(sourceAsanaAuthenticateViaAsanaOauth SourceAsanaAuthenticateViaAsanaOauth) SourceAsanaAuthenticationMechanism { + typ := SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateViaAsanaOauth return SourceAsanaAuthenticationMechanism{ - AuthenticateViaAsanaOauth: &authenticateViaAsanaOauth, - Type: typ, + SourceAsanaAuthenticateViaAsanaOauth: &sourceAsanaAuthenticateViaAsanaOauth, + Type: typ, } } -func CreateSourceAsanaAuthenticationMechanismAuthenticateWithPersonalAccessToken(authenticateWithPersonalAccessToken SourceAsanaAuthenticateWithPersonalAccessToken) SourceAsanaAuthenticationMechanism { - typ := SourceAsanaAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken +func CreateSourceAsanaAuthenticationMechanismSourceAsanaAuthenticateWithPersonalAccessToken(sourceAsanaAuthenticateWithPersonalAccessToken SourceAsanaAuthenticateWithPersonalAccessToken) SourceAsanaAuthenticationMechanism { + typ := SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateWithPersonalAccessToken return SourceAsanaAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: &authenticateWithPersonalAccessToken, - Type: typ, + SourceAsanaAuthenticateWithPersonalAccessToken: &sourceAsanaAuthenticateWithPersonalAccessToken, + Type: typ, } } func (u *SourceAsanaAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateWithPersonalAccessToken := new(SourceAsanaAuthenticateWithPersonalAccessToken) - if err := utils.UnmarshalJSON(data, &authenticateWithPersonalAccessToken, "", true, true); err == nil { - u.AuthenticateWithPersonalAccessToken = authenticateWithPersonalAccessToken - u.Type = SourceAsanaAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken + sourceAsanaAuthenticateWithPersonalAccessToken := new(SourceAsanaAuthenticateWithPersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceAsanaAuthenticateWithPersonalAccessToken, "", true, true); err == nil { + u.SourceAsanaAuthenticateWithPersonalAccessToken = sourceAsanaAuthenticateWithPersonalAccessToken + u.Type = SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateWithPersonalAccessToken return nil } - authenticateViaAsanaOauth := new(SourceAsanaAuthenticateViaAsanaOauth) - if err := utils.UnmarshalJSON(data, &authenticateViaAsanaOauth, "", true, true); err == nil { - u.AuthenticateViaAsanaOauth = authenticateViaAsanaOauth - u.Type = SourceAsanaAuthenticationMechanismTypeAuthenticateViaAsanaOauth + sourceAsanaAuthenticateViaAsanaOauth := new(SourceAsanaAuthenticateViaAsanaOauth) + if err := utils.UnmarshalJSON(data, &sourceAsanaAuthenticateViaAsanaOauth, "", true, true); err == nil { + u.SourceAsanaAuthenticateViaAsanaOauth = sourceAsanaAuthenticateViaAsanaOauth + u.Type = SourceAsanaAuthenticationMechanismTypeSourceAsanaAuthenticateViaAsanaOauth return nil } @@ -186,12 +186,12 @@ func (u *SourceAsanaAuthenticationMechanism) UnmarshalJSON(data []byte) error { } func (u SourceAsanaAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaAsanaOauth != nil { - return utils.MarshalJSON(u.AuthenticateViaAsanaOauth, "", true) + if u.SourceAsanaAuthenticateViaAsanaOauth != nil { + return utils.MarshalJSON(u.SourceAsanaAuthenticateViaAsanaOauth, "", true) } - if u.AuthenticateWithPersonalAccessToken != nil { - return utils.MarshalJSON(u.AuthenticateWithPersonalAccessToken, "", true) + if u.SourceAsanaAuthenticateWithPersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceAsanaAuthenticateWithPersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceasanaupdate.go b/internal/sdk/pkg/models/shared/sourceasanaupdate.go index 4a05ad2a9..bca71279b 100644 --- a/internal/sdk/pkg/models/shared/sourceasanaupdate.go +++ b/internal/sdk/pkg/models/shared/sourceasanaupdate.go @@ -137,8 +137,8 @@ func (o *AuthenticateViaAsanaOauth) GetRefreshToken() string { type AuthenticationMechanismType string const ( - AuthenticationMechanismTypeAuthenticateViaAsanaOauth AuthenticationMechanismType = "AuthenticateViaAsanaOauth" - AuthenticationMechanismTypeAuthenticateWithPersonalAccessToken AuthenticationMechanismType = "AuthenticateWithPersonalAccessToken" + AuthenticationMechanismTypeAuthenticateViaAsanaOauth AuthenticationMechanismType = "Authenticate via Asana (Oauth)" + AuthenticationMechanismTypeAuthenticateWithPersonalAccessToken AuthenticationMechanismType = "Authenticate with Personal Access Token" ) type AuthenticationMechanism struct { diff --git a/internal/sdk/pkg/models/shared/sourceauth0.go b/internal/sdk/pkg/models/shared/sourceauth0.go index a6c8368f5..2d491a86d 100644 --- a/internal/sdk/pkg/models/shared/sourceauth0.go +++ b/internal/sdk/pkg/models/shared/sourceauth0.go @@ -134,48 +134,48 @@ func (o *SourceAuth0OAuth2ConfidentialApplication) GetClientSecret() string { type SourceAuth0AuthenticationMethodType string const ( - SourceAuth0AuthenticationMethodTypeOAuth2ConfidentialApplication SourceAuth0AuthenticationMethodType = "OAuth2ConfidentialApplication" - SourceAuth0AuthenticationMethodTypeOAuth2AccessToken SourceAuth0AuthenticationMethodType = "OAuth2AccessToken" + SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2ConfidentialApplication SourceAuth0AuthenticationMethodType = "source-auth0_OAuth2 Confidential Application" + SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2AccessToken SourceAuth0AuthenticationMethodType = "source-auth0_OAuth2 Access Token" ) type SourceAuth0AuthenticationMethod struct { - OAuth2ConfidentialApplication *SourceAuth0OAuth2ConfidentialApplication - OAuth2AccessToken *SourceAuth0OAuth2AccessToken + SourceAuth0OAuth2ConfidentialApplication *SourceAuth0OAuth2ConfidentialApplication + SourceAuth0OAuth2AccessToken *SourceAuth0OAuth2AccessToken Type SourceAuth0AuthenticationMethodType } -func CreateSourceAuth0AuthenticationMethodOAuth2ConfidentialApplication(oAuth2ConfidentialApplication SourceAuth0OAuth2ConfidentialApplication) SourceAuth0AuthenticationMethod { - typ := SourceAuth0AuthenticationMethodTypeOAuth2ConfidentialApplication +func CreateSourceAuth0AuthenticationMethodSourceAuth0OAuth2ConfidentialApplication(sourceAuth0OAuth2ConfidentialApplication SourceAuth0OAuth2ConfidentialApplication) SourceAuth0AuthenticationMethod { + typ := SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2ConfidentialApplication return SourceAuth0AuthenticationMethod{ - OAuth2ConfidentialApplication: &oAuth2ConfidentialApplication, - Type: typ, + SourceAuth0OAuth2ConfidentialApplication: &sourceAuth0OAuth2ConfidentialApplication, + Type: typ, } } -func CreateSourceAuth0AuthenticationMethodOAuth2AccessToken(oAuth2AccessToken SourceAuth0OAuth2AccessToken) SourceAuth0AuthenticationMethod { - typ := SourceAuth0AuthenticationMethodTypeOAuth2AccessToken +func CreateSourceAuth0AuthenticationMethodSourceAuth0OAuth2AccessToken(sourceAuth0OAuth2AccessToken SourceAuth0OAuth2AccessToken) SourceAuth0AuthenticationMethod { + typ := SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2AccessToken return SourceAuth0AuthenticationMethod{ - OAuth2AccessToken: &oAuth2AccessToken, - Type: typ, + SourceAuth0OAuth2AccessToken: &sourceAuth0OAuth2AccessToken, + Type: typ, } } func (u *SourceAuth0AuthenticationMethod) UnmarshalJSON(data []byte) error { - oAuth2AccessToken := new(SourceAuth0OAuth2AccessToken) - if err := utils.UnmarshalJSON(data, &oAuth2AccessToken, "", true, true); err == nil { - u.OAuth2AccessToken = oAuth2AccessToken - u.Type = SourceAuth0AuthenticationMethodTypeOAuth2AccessToken + sourceAuth0OAuth2AccessToken := new(SourceAuth0OAuth2AccessToken) + if err := utils.UnmarshalJSON(data, &sourceAuth0OAuth2AccessToken, "", true, true); err == nil { + u.SourceAuth0OAuth2AccessToken = sourceAuth0OAuth2AccessToken + u.Type = SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2AccessToken return nil } - oAuth2ConfidentialApplication := new(SourceAuth0OAuth2ConfidentialApplication) - if err := utils.UnmarshalJSON(data, &oAuth2ConfidentialApplication, "", true, true); err == nil { - u.OAuth2ConfidentialApplication = oAuth2ConfidentialApplication - u.Type = SourceAuth0AuthenticationMethodTypeOAuth2ConfidentialApplication + sourceAuth0OAuth2ConfidentialApplication := new(SourceAuth0OAuth2ConfidentialApplication) + if err := utils.UnmarshalJSON(data, &sourceAuth0OAuth2ConfidentialApplication, "", true, true); err == nil { + u.SourceAuth0OAuth2ConfidentialApplication = sourceAuth0OAuth2ConfidentialApplication + u.Type = SourceAuth0AuthenticationMethodTypeSourceAuth0OAuth2ConfidentialApplication return nil } @@ -183,12 +183,12 @@ func (u *SourceAuth0AuthenticationMethod) UnmarshalJSON(data []byte) error { } func (u SourceAuth0AuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth2ConfidentialApplication != nil { - return utils.MarshalJSON(u.OAuth2ConfidentialApplication, "", true) + if u.SourceAuth0OAuth2ConfidentialApplication != nil { + return utils.MarshalJSON(u.SourceAuth0OAuth2ConfidentialApplication, "", true) } - if u.OAuth2AccessToken != nil { - return utils.MarshalJSON(u.OAuth2AccessToken, "", true) + if u.SourceAuth0OAuth2AccessToken != nil { + return utils.MarshalJSON(u.SourceAuth0OAuth2AccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceauth0update.go b/internal/sdk/pkg/models/shared/sourceauth0update.go index bc43456f8..6dbdbc370 100644 --- a/internal/sdk/pkg/models/shared/sourceauth0update.go +++ b/internal/sdk/pkg/models/shared/sourceauth0update.go @@ -134,8 +134,8 @@ func (o *OAuth2ConfidentialApplication) GetClientSecret() string { type SourceAuth0UpdateAuthenticationMethodType string const ( - SourceAuth0UpdateAuthenticationMethodTypeOAuth2ConfidentialApplication SourceAuth0UpdateAuthenticationMethodType = "OAuth2ConfidentialApplication" - SourceAuth0UpdateAuthenticationMethodTypeOAuth2AccessToken SourceAuth0UpdateAuthenticationMethodType = "OAuth2AccessToken" + SourceAuth0UpdateAuthenticationMethodTypeOAuth2ConfidentialApplication SourceAuth0UpdateAuthenticationMethodType = "OAuth2 Confidential Application" + SourceAuth0UpdateAuthenticationMethodTypeOAuth2AccessToken SourceAuth0UpdateAuthenticationMethodType = "OAuth2 Access Token" ) type SourceAuth0UpdateAuthenticationMethod struct { diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstorage.go b/internal/sdk/pkg/models/shared/sourceazureblobstorage.go index 246d8e457..1ee9dd686 100644 --- a/internal/sdk/pkg/models/shared/sourceazureblobstorage.go +++ b/internal/sdk/pkg/models/shared/sourceazureblobstorage.go @@ -56,30 +56,30 @@ func (o *SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON) GetFormatType() So type SourceAzureBlobStorageInputFormatType string const ( - SourceAzureBlobStorageInputFormatTypeJSONLinesNewlineDelimitedJSON SourceAzureBlobStorageInputFormatType = "JSONLinesNewlineDelimitedJSON" + SourceAzureBlobStorageInputFormatTypeSourceAzureBlobStorageJSONLinesNewlineDelimitedJSON SourceAzureBlobStorageInputFormatType = "source-azure-blob-storage_JSON Lines: newline-delimited JSON" ) type SourceAzureBlobStorageInputFormat struct { - JSONLinesNewlineDelimitedJSON *SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON + SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON *SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON Type SourceAzureBlobStorageInputFormatType } -func CreateSourceAzureBlobStorageInputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON) SourceAzureBlobStorageInputFormat { - typ := SourceAzureBlobStorageInputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateSourceAzureBlobStorageInputFormatSourceAzureBlobStorageJSONLinesNewlineDelimitedJSON(sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON) SourceAzureBlobStorageInputFormat { + typ := SourceAzureBlobStorageInputFormatTypeSourceAzureBlobStorageJSONLinesNewlineDelimitedJSON return SourceAzureBlobStorageInputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON: &sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *SourceAzureBlobStorageInputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = SourceAzureBlobStorageInputFormatTypeJSONLinesNewlineDelimitedJSON + sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON = sourceAzureBlobStorageJSONLinesNewlineDelimitedJSON + u.Type = SourceAzureBlobStorageInputFormatTypeSourceAzureBlobStorageJSONLinesNewlineDelimitedJSON return nil } @@ -87,8 +87,8 @@ func (u *SourceAzureBlobStorageInputFormat) UnmarshalJSON(data []byte) error { } func (u SourceAzureBlobStorageInputFormat) MarshalJSON() ([]byte, error) { - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.SourceAzureBlobStorageJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go b/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go index 847de42f7..166598948 100644 --- a/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go +++ b/internal/sdk/pkg/models/shared/sourceazureblobstorageupdate.go @@ -56,30 +56,30 @@ func (o *SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) GetFormatTyp type InputFormatType string const ( - InputFormatTypeJSONLinesNewlineDelimitedJSON InputFormatType = "JSONLinesNewlineDelimitedJSON" + InputFormatTypeSourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON InputFormatType = "source-azure-blob-storage-update_JSON Lines: newline-delimited JSON" ) type InputFormat struct { - JSONLinesNewlineDelimitedJSON *SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON + SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON *SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON Type InputFormatType } -func CreateInputFormatJSONLinesNewlineDelimitedJSON(jsonLinesNewlineDelimitedJSON SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) InputFormat { - typ := InputFormatTypeJSONLinesNewlineDelimitedJSON +func CreateInputFormatSourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON(sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) InputFormat { + typ := InputFormatTypeSourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON return InputFormat{ - JSONLinesNewlineDelimitedJSON: &jsonLinesNewlineDelimitedJSON, - Type: typ, + SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON: &sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, + Type: typ, } } func (u *InputFormat) UnmarshalJSON(data []byte) error { - jsonLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) - if err := utils.UnmarshalJSON(data, &jsonLinesNewlineDelimitedJSON, "", true, true); err == nil { - u.JSONLinesNewlineDelimitedJSON = jsonLinesNewlineDelimitedJSON - u.Type = InputFormatTypeJSONLinesNewlineDelimitedJSON + sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON := new(SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON) + if err := utils.UnmarshalJSON(data, &sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, "", true, true); err == nil { + u.SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON = sourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON + u.Type = InputFormatTypeSourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON return nil } @@ -87,8 +87,8 @@ func (u *InputFormat) UnmarshalJSON(data []byte) error { } func (u InputFormat) MarshalJSON() ([]byte, error) { - if u.JSONLinesNewlineDelimitedJSON != nil { - return utils.MarshalJSON(u.JSONLinesNewlineDelimitedJSON, "", true) + if u.SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON != nil { + return utils.MarshalJSON(u.SourceAzureBlobStorageUpdateJSONLinesNewlineDelimitedJSON, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceclickhouse.go b/internal/sdk/pkg/models/shared/sourceclickhouse.go index fce2e9f34..07df600dd 100644 --- a/internal/sdk/pkg/models/shared/sourceclickhouse.go +++ b/internal/sdk/pkg/models/shared/sourceclickhouse.go @@ -246,66 +246,66 @@ func (o *SourceClickhouseNoTunnel) GetTunnelMethod() SourceClickhouseTunnelMetho type SourceClickhouseSSHTunnelMethodType string const ( - SourceClickhouseSSHTunnelMethodTypeNoTunnel SourceClickhouseSSHTunnelMethodType = "NoTunnel" - SourceClickhouseSSHTunnelMethodTypeSSHKeyAuthentication SourceClickhouseSSHTunnelMethodType = "SSHKeyAuthentication" - SourceClickhouseSSHTunnelMethodTypePasswordAuthentication SourceClickhouseSSHTunnelMethodType = "PasswordAuthentication" + SourceClickhouseSSHTunnelMethodTypeSourceClickhouseNoTunnel SourceClickhouseSSHTunnelMethodType = "source-clickhouse_No Tunnel" + SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHKeyAuthentication SourceClickhouseSSHTunnelMethodType = "source-clickhouse_SSH Key Authentication" + SourceClickhouseSSHTunnelMethodTypeSourceClickhousePasswordAuthentication SourceClickhouseSSHTunnelMethodType = "source-clickhouse_Password Authentication" ) type SourceClickhouseSSHTunnelMethod struct { - NoTunnel *SourceClickhouseNoTunnel - SSHKeyAuthentication *SourceClickhouseSSHKeyAuthentication - PasswordAuthentication *SourceClickhousePasswordAuthentication + SourceClickhouseNoTunnel *SourceClickhouseNoTunnel + SourceClickhouseSSHKeyAuthentication *SourceClickhouseSSHKeyAuthentication + SourceClickhousePasswordAuthentication *SourceClickhousePasswordAuthentication Type SourceClickhouseSSHTunnelMethodType } -func CreateSourceClickhouseSSHTunnelMethodNoTunnel(noTunnel SourceClickhouseNoTunnel) SourceClickhouseSSHTunnelMethod { - typ := SourceClickhouseSSHTunnelMethodTypeNoTunnel +func CreateSourceClickhouseSSHTunnelMethodSourceClickhouseNoTunnel(sourceClickhouseNoTunnel SourceClickhouseNoTunnel) SourceClickhouseSSHTunnelMethod { + typ := SourceClickhouseSSHTunnelMethodTypeSourceClickhouseNoTunnel return SourceClickhouseSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceClickhouseNoTunnel: &sourceClickhouseNoTunnel, + Type: typ, } } -func CreateSourceClickhouseSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceClickhouseSSHKeyAuthentication) SourceClickhouseSSHTunnelMethod { - typ := SourceClickhouseSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceClickhouseSSHTunnelMethodSourceClickhouseSSHKeyAuthentication(sourceClickhouseSSHKeyAuthentication SourceClickhouseSSHKeyAuthentication) SourceClickhouseSSHTunnelMethod { + typ := SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHKeyAuthentication return SourceClickhouseSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceClickhouseSSHKeyAuthentication: &sourceClickhouseSSHKeyAuthentication, + Type: typ, } } -func CreateSourceClickhouseSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceClickhousePasswordAuthentication) SourceClickhouseSSHTunnelMethod { - typ := SourceClickhouseSSHTunnelMethodTypePasswordAuthentication +func CreateSourceClickhouseSSHTunnelMethodSourceClickhousePasswordAuthentication(sourceClickhousePasswordAuthentication SourceClickhousePasswordAuthentication) SourceClickhouseSSHTunnelMethod { + typ := SourceClickhouseSSHTunnelMethodTypeSourceClickhousePasswordAuthentication return SourceClickhouseSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceClickhousePasswordAuthentication: &sourceClickhousePasswordAuthentication, + Type: typ, } } func (u *SourceClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceClickhouseNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceClickhouseSSHTunnelMethodTypeNoTunnel + sourceClickhouseNoTunnel := new(SourceClickhouseNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceClickhouseNoTunnel, "", true, true); err == nil { + u.SourceClickhouseNoTunnel = sourceClickhouseNoTunnel + u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhouseNoTunnel return nil } - sshKeyAuthentication := new(SourceClickhouseSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceClickhouseSSHTunnelMethodTypeSSHKeyAuthentication + sourceClickhouseSSHKeyAuthentication := new(SourceClickhouseSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceClickhouseSSHKeyAuthentication, "", true, true); err == nil { + u.SourceClickhouseSSHKeyAuthentication = sourceClickhouseSSHKeyAuthentication + u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhouseSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceClickhousePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceClickhouseSSHTunnelMethodTypePasswordAuthentication + sourceClickhousePasswordAuthentication := new(SourceClickhousePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceClickhousePasswordAuthentication, "", true, true); err == nil { + u.SourceClickhousePasswordAuthentication = sourceClickhousePasswordAuthentication + u.Type = SourceClickhouseSSHTunnelMethodTypeSourceClickhousePasswordAuthentication return nil } @@ -313,16 +313,16 @@ func (u *SourceClickhouseSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceClickhouseSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceClickhouseNoTunnel != nil { + return utils.MarshalJSON(u.SourceClickhouseNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceClickhouseSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceClickhouseSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceClickhousePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceClickhousePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go b/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go index 128d49685..67c4e33a1 100644 --- a/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go +++ b/internal/sdk/pkg/models/shared/sourceclickhouseupdate.go @@ -222,66 +222,66 @@ func (o *SourceClickhouseUpdateNoTunnel) GetTunnelMethod() SourceClickhouseUpdat type SourceClickhouseUpdateSSHTunnelMethodType string const ( - SourceClickhouseUpdateSSHTunnelMethodTypeNoTunnel SourceClickhouseUpdateSSHTunnelMethodType = "NoTunnel" - SourceClickhouseUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourceClickhouseUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourceClickhouseUpdateSSHTunnelMethodTypePasswordAuthentication SourceClickhouseUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateNoTunnel SourceClickhouseUpdateSSHTunnelMethodType = "source-clickhouse-update_No Tunnel" + SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHKeyAuthentication SourceClickhouseUpdateSSHTunnelMethodType = "source-clickhouse-update_SSH Key Authentication" + SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdatePasswordAuthentication SourceClickhouseUpdateSSHTunnelMethodType = "source-clickhouse-update_Password Authentication" ) type SourceClickhouseUpdateSSHTunnelMethod struct { - NoTunnel *SourceClickhouseUpdateNoTunnel - SSHKeyAuthentication *SourceClickhouseUpdateSSHKeyAuthentication - PasswordAuthentication *SourceClickhouseUpdatePasswordAuthentication + SourceClickhouseUpdateNoTunnel *SourceClickhouseUpdateNoTunnel + SourceClickhouseUpdateSSHKeyAuthentication *SourceClickhouseUpdateSSHKeyAuthentication + SourceClickhouseUpdatePasswordAuthentication *SourceClickhouseUpdatePasswordAuthentication Type SourceClickhouseUpdateSSHTunnelMethodType } -func CreateSourceClickhouseUpdateSSHTunnelMethodNoTunnel(noTunnel SourceClickhouseUpdateNoTunnel) SourceClickhouseUpdateSSHTunnelMethod { - typ := SourceClickhouseUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourceClickhouseUpdateSSHTunnelMethodSourceClickhouseUpdateNoTunnel(sourceClickhouseUpdateNoTunnel SourceClickhouseUpdateNoTunnel) SourceClickhouseUpdateSSHTunnelMethod { + typ := SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateNoTunnel return SourceClickhouseUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceClickhouseUpdateNoTunnel: &sourceClickhouseUpdateNoTunnel, + Type: typ, } } -func CreateSourceClickhouseUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceClickhouseUpdateSSHKeyAuthentication) SourceClickhouseUpdateSSHTunnelMethod { - typ := SourceClickhouseUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceClickhouseUpdateSSHTunnelMethodSourceClickhouseUpdateSSHKeyAuthentication(sourceClickhouseUpdateSSHKeyAuthentication SourceClickhouseUpdateSSHKeyAuthentication) SourceClickhouseUpdateSSHTunnelMethod { + typ := SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHKeyAuthentication return SourceClickhouseUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceClickhouseUpdateSSHKeyAuthentication: &sourceClickhouseUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourceClickhouseUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceClickhouseUpdatePasswordAuthentication) SourceClickhouseUpdateSSHTunnelMethod { - typ := SourceClickhouseUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourceClickhouseUpdateSSHTunnelMethodSourceClickhouseUpdatePasswordAuthentication(sourceClickhouseUpdatePasswordAuthentication SourceClickhouseUpdatePasswordAuthentication) SourceClickhouseUpdateSSHTunnelMethod { + typ := SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdatePasswordAuthentication return SourceClickhouseUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceClickhouseUpdatePasswordAuthentication: &sourceClickhouseUpdatePasswordAuthentication, + Type: typ, } } func (u *SourceClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceClickhouseUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeNoTunnel + sourceClickhouseUpdateNoTunnel := new(SourceClickhouseUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdateNoTunnel, "", true, true); err == nil { + u.SourceClickhouseUpdateNoTunnel = sourceClickhouseUpdateNoTunnel + u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourceClickhouseUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourceClickhouseUpdateSSHKeyAuthentication := new(SourceClickhouseUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceClickhouseUpdateSSHKeyAuthentication = sourceClickhouseUpdateSSHKeyAuthentication + u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceClickhouseUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceClickhouseUpdateSSHTunnelMethodTypePasswordAuthentication + sourceClickhouseUpdatePasswordAuthentication := new(SourceClickhouseUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceClickhouseUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceClickhouseUpdatePasswordAuthentication = sourceClickhouseUpdatePasswordAuthentication + u.Type = SourceClickhouseUpdateSSHTunnelMethodTypeSourceClickhouseUpdatePasswordAuthentication return nil } @@ -289,16 +289,16 @@ func (u *SourceClickhouseUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error } func (u SourceClickhouseUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceClickhouseUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourceClickhouseUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceClickhouseUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceClickhouseUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceClickhouseUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceClickhouseUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloud.go b/internal/sdk/pkg/models/shared/sourcee2etestcloud.go index 916fb8ecf..d08b006f9 100644 --- a/internal/sdk/pkg/models/shared/sourcee2etestcloud.go +++ b/internal/sdk/pkg/models/shared/sourcee2etestcloud.go @@ -136,48 +136,48 @@ func (o *SourceE2eTestCloudSingleSchema) GetType() *SourceE2eTestCloudSchemasMoc type SourceE2eTestCloudMockCatalogType string const ( - SourceE2eTestCloudMockCatalogTypeSingleSchema SourceE2eTestCloudMockCatalogType = "SingleSchema" - SourceE2eTestCloudMockCatalogTypeMultiSchema SourceE2eTestCloudMockCatalogType = "MultiSchema" + SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudSingleSchema SourceE2eTestCloudMockCatalogType = "source-e2e-test-cloud_Single Schema" + SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudMultiSchema SourceE2eTestCloudMockCatalogType = "source-e2e-test-cloud_Multi Schema" ) type SourceE2eTestCloudMockCatalog struct { - SingleSchema *SourceE2eTestCloudSingleSchema - MultiSchema *SourceE2eTestCloudMultiSchema + SourceE2eTestCloudSingleSchema *SourceE2eTestCloudSingleSchema + SourceE2eTestCloudMultiSchema *SourceE2eTestCloudMultiSchema Type SourceE2eTestCloudMockCatalogType } -func CreateSourceE2eTestCloudMockCatalogSingleSchema(singleSchema SourceE2eTestCloudSingleSchema) SourceE2eTestCloudMockCatalog { - typ := SourceE2eTestCloudMockCatalogTypeSingleSchema +func CreateSourceE2eTestCloudMockCatalogSourceE2eTestCloudSingleSchema(sourceE2eTestCloudSingleSchema SourceE2eTestCloudSingleSchema) SourceE2eTestCloudMockCatalog { + typ := SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudSingleSchema return SourceE2eTestCloudMockCatalog{ - SingleSchema: &singleSchema, - Type: typ, + SourceE2eTestCloudSingleSchema: &sourceE2eTestCloudSingleSchema, + Type: typ, } } -func CreateSourceE2eTestCloudMockCatalogMultiSchema(multiSchema SourceE2eTestCloudMultiSchema) SourceE2eTestCloudMockCatalog { - typ := SourceE2eTestCloudMockCatalogTypeMultiSchema +func CreateSourceE2eTestCloudMockCatalogSourceE2eTestCloudMultiSchema(sourceE2eTestCloudMultiSchema SourceE2eTestCloudMultiSchema) SourceE2eTestCloudMockCatalog { + typ := SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudMultiSchema return SourceE2eTestCloudMockCatalog{ - MultiSchema: &multiSchema, - Type: typ, + SourceE2eTestCloudMultiSchema: &sourceE2eTestCloudMultiSchema, + Type: typ, } } func (u *SourceE2eTestCloudMockCatalog) UnmarshalJSON(data []byte) error { - multiSchema := new(SourceE2eTestCloudMultiSchema) - if err := utils.UnmarshalJSON(data, &multiSchema, "", true, true); err == nil { - u.MultiSchema = multiSchema - u.Type = SourceE2eTestCloudMockCatalogTypeMultiSchema + sourceE2eTestCloudMultiSchema := new(SourceE2eTestCloudMultiSchema) + if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudMultiSchema, "", true, true); err == nil { + u.SourceE2eTestCloudMultiSchema = sourceE2eTestCloudMultiSchema + u.Type = SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudMultiSchema return nil } - singleSchema := new(SourceE2eTestCloudSingleSchema) - if err := utils.UnmarshalJSON(data, &singleSchema, "", true, true); err == nil { - u.SingleSchema = singleSchema - u.Type = SourceE2eTestCloudMockCatalogTypeSingleSchema + sourceE2eTestCloudSingleSchema := new(SourceE2eTestCloudSingleSchema) + if err := utils.UnmarshalJSON(data, &sourceE2eTestCloudSingleSchema, "", true, true); err == nil { + u.SourceE2eTestCloudSingleSchema = sourceE2eTestCloudSingleSchema + u.Type = SourceE2eTestCloudMockCatalogTypeSourceE2eTestCloudSingleSchema return nil } @@ -185,12 +185,12 @@ func (u *SourceE2eTestCloudMockCatalog) UnmarshalJSON(data []byte) error { } func (u SourceE2eTestCloudMockCatalog) MarshalJSON() ([]byte, error) { - if u.SingleSchema != nil { - return utils.MarshalJSON(u.SingleSchema, "", true) + if u.SourceE2eTestCloudSingleSchema != nil { + return utils.MarshalJSON(u.SourceE2eTestCloudSingleSchema, "", true) } - if u.MultiSchema != nil { - return utils.MarshalJSON(u.MultiSchema, "", true) + if u.SourceE2eTestCloudMultiSchema != nil { + return utils.MarshalJSON(u.SourceE2eTestCloudMultiSchema, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go b/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go index 88783966b..7bc950002 100644 --- a/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go +++ b/internal/sdk/pkg/models/shared/sourcee2etestcloudupdate.go @@ -136,8 +136,8 @@ func (o *SingleSchema) GetType() *SourceE2eTestCloudUpdateSchemasType { type MockCatalogType string const ( - MockCatalogTypeSingleSchema MockCatalogType = "SingleSchema" - MockCatalogTypeMultiSchema MockCatalogType = "MultiSchema" + MockCatalogTypeSingleSchema MockCatalogType = "Single Schema" + MockCatalogTypeMultiSchema MockCatalogType = "Multi Schema" ) type MockCatalog struct { diff --git a/internal/sdk/pkg/models/shared/sourcefauna.go b/internal/sdk/pkg/models/shared/sourcefauna.go index 3472dba52..65358d2ea 100644 --- a/internal/sdk/pkg/models/shared/sourcefauna.go +++ b/internal/sdk/pkg/models/shared/sourcefauna.go @@ -115,48 +115,48 @@ func (o *SourceFaunaDisabled) GetDeletionMode() SourceFaunaSchemasDeletionMode { type SourceFaunaDeletionModeType string const ( - SourceFaunaDeletionModeTypeDisabled SourceFaunaDeletionModeType = "Disabled" - SourceFaunaDeletionModeTypeEnabled SourceFaunaDeletionModeType = "Enabled" + SourceFaunaDeletionModeTypeSourceFaunaDisabled SourceFaunaDeletionModeType = "source-fauna_Disabled" + SourceFaunaDeletionModeTypeSourceFaunaEnabled SourceFaunaDeletionModeType = "source-fauna_Enabled" ) type SourceFaunaDeletionMode struct { - Disabled *SourceFaunaDisabled - Enabled *SourceFaunaEnabled + SourceFaunaDisabled *SourceFaunaDisabled + SourceFaunaEnabled *SourceFaunaEnabled Type SourceFaunaDeletionModeType } -func CreateSourceFaunaDeletionModeDisabled(disabled SourceFaunaDisabled) SourceFaunaDeletionMode { - typ := SourceFaunaDeletionModeTypeDisabled +func CreateSourceFaunaDeletionModeSourceFaunaDisabled(sourceFaunaDisabled SourceFaunaDisabled) SourceFaunaDeletionMode { + typ := SourceFaunaDeletionModeTypeSourceFaunaDisabled return SourceFaunaDeletionMode{ - Disabled: &disabled, - Type: typ, + SourceFaunaDisabled: &sourceFaunaDisabled, + Type: typ, } } -func CreateSourceFaunaDeletionModeEnabled(enabled SourceFaunaEnabled) SourceFaunaDeletionMode { - typ := SourceFaunaDeletionModeTypeEnabled +func CreateSourceFaunaDeletionModeSourceFaunaEnabled(sourceFaunaEnabled SourceFaunaEnabled) SourceFaunaDeletionMode { + typ := SourceFaunaDeletionModeTypeSourceFaunaEnabled return SourceFaunaDeletionMode{ - Enabled: &enabled, - Type: typ, + SourceFaunaEnabled: &sourceFaunaEnabled, + Type: typ, } } func (u *SourceFaunaDeletionMode) UnmarshalJSON(data []byte) error { - disabled := new(SourceFaunaDisabled) - if err := utils.UnmarshalJSON(data, &disabled, "", true, true); err == nil { - u.Disabled = disabled - u.Type = SourceFaunaDeletionModeTypeDisabled + sourceFaunaDisabled := new(SourceFaunaDisabled) + if err := utils.UnmarshalJSON(data, &sourceFaunaDisabled, "", true, true); err == nil { + u.SourceFaunaDisabled = sourceFaunaDisabled + u.Type = SourceFaunaDeletionModeTypeSourceFaunaDisabled return nil } - enabled := new(SourceFaunaEnabled) - if err := utils.UnmarshalJSON(data, &enabled, "", true, true); err == nil { - u.Enabled = enabled - u.Type = SourceFaunaDeletionModeTypeEnabled + sourceFaunaEnabled := new(SourceFaunaEnabled) + if err := utils.UnmarshalJSON(data, &sourceFaunaEnabled, "", true, true); err == nil { + u.SourceFaunaEnabled = sourceFaunaEnabled + u.Type = SourceFaunaDeletionModeTypeSourceFaunaEnabled return nil } @@ -164,12 +164,12 @@ func (u *SourceFaunaDeletionMode) UnmarshalJSON(data []byte) error { } func (u SourceFaunaDeletionMode) MarshalJSON() ([]byte, error) { - if u.Disabled != nil { - return utils.MarshalJSON(u.Disabled, "", true) + if u.SourceFaunaDisabled != nil { + return utils.MarshalJSON(u.SourceFaunaDisabled, "", true) } - if u.Enabled != nil { - return utils.MarshalJSON(u.Enabled, "", true) + if u.SourceFaunaEnabled != nil { + return utils.MarshalJSON(u.SourceFaunaEnabled, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcefilesecure.go b/internal/sdk/pkg/models/shared/sourcefilesecure.go index 6533cbd43..b024c96a3 100644 --- a/internal/sdk/pkg/models/shared/sourcefilesecure.go +++ b/internal/sdk/pkg/models/shared/sourcefilesecure.go @@ -525,138 +525,138 @@ func (o *SourceFileSecureHTTPSPublicWeb) GetUserAgent() *bool { type SourceFileSecureStorageProviderType string const ( - SourceFileSecureStorageProviderTypeHTTPSPublicWeb SourceFileSecureStorageProviderType = "HTTPSPublicWeb" - SourceFileSecureStorageProviderTypeGCSGoogleCloudStorage SourceFileSecureStorageProviderType = "GCSGoogleCloudStorage" - SourceFileSecureStorageProviderTypeS3AmazonWebServices SourceFileSecureStorageProviderType = "S3AmazonWebServices" - SourceFileSecureStorageProviderTypeAzBlobAzureBlobStorage SourceFileSecureStorageProviderType = "AzBlobAzureBlobStorage" - SourceFileSecureStorageProviderTypeSSHSecureShell SourceFileSecureStorageProviderType = "SSHSecureShell" - SourceFileSecureStorageProviderTypeSCPSecureCopyProtocol SourceFileSecureStorageProviderType = "SCPSecureCopyProtocol" - SourceFileSecureStorageProviderTypeSFTPSecureFileTransferProtocol SourceFileSecureStorageProviderType = "SFTPSecureFileTransferProtocol" + SourceFileSecureStorageProviderTypeSourceFileSecureHTTPSPublicWeb SourceFileSecureStorageProviderType = "source-file-secure_HTTPS: Public Web" + SourceFileSecureStorageProviderTypeSourceFileSecureGCSGoogleCloudStorage SourceFileSecureStorageProviderType = "source-file-secure_GCS: Google Cloud Storage" + SourceFileSecureStorageProviderTypeSourceFileSecureS3AmazonWebServices SourceFileSecureStorageProviderType = "source-file-secure_S3: Amazon Web Services" + SourceFileSecureStorageProviderTypeSourceFileSecureAzBlobAzureBlobStorage SourceFileSecureStorageProviderType = "source-file-secure_AzBlob: Azure Blob Storage" + SourceFileSecureStorageProviderTypeSourceFileSecureSSHSecureShell SourceFileSecureStorageProviderType = "source-file-secure_SSH: Secure Shell" + SourceFileSecureStorageProviderTypeSourceFileSecureSCPSecureCopyProtocol SourceFileSecureStorageProviderType = "source-file-secure_SCP: Secure copy protocol" + SourceFileSecureStorageProviderTypeSourceFileSecureSFTPSecureFileTransferProtocol SourceFileSecureStorageProviderType = "source-file-secure_SFTP: Secure File Transfer Protocol" ) type SourceFileSecureStorageProvider struct { - HTTPSPublicWeb *SourceFileSecureHTTPSPublicWeb - GCSGoogleCloudStorage *SourceFileSecureGCSGoogleCloudStorage - S3AmazonWebServices *SourceFileSecureS3AmazonWebServices - AzBlobAzureBlobStorage *SourceFileSecureAzBlobAzureBlobStorage - SSHSecureShell *SourceFileSecureSSHSecureShell - SCPSecureCopyProtocol *SourceFileSecureSCPSecureCopyProtocol - SFTPSecureFileTransferProtocol *SourceFileSecureSFTPSecureFileTransferProtocol + SourceFileSecureHTTPSPublicWeb *SourceFileSecureHTTPSPublicWeb + SourceFileSecureGCSGoogleCloudStorage *SourceFileSecureGCSGoogleCloudStorage + SourceFileSecureS3AmazonWebServices *SourceFileSecureS3AmazonWebServices + SourceFileSecureAzBlobAzureBlobStorage *SourceFileSecureAzBlobAzureBlobStorage + SourceFileSecureSSHSecureShell *SourceFileSecureSSHSecureShell + SourceFileSecureSCPSecureCopyProtocol *SourceFileSecureSCPSecureCopyProtocol + SourceFileSecureSFTPSecureFileTransferProtocol *SourceFileSecureSFTPSecureFileTransferProtocol Type SourceFileSecureStorageProviderType } -func CreateSourceFileSecureStorageProviderHTTPSPublicWeb(httpsPublicWeb SourceFileSecureHTTPSPublicWeb) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeHTTPSPublicWeb +func CreateSourceFileSecureStorageProviderSourceFileSecureHTTPSPublicWeb(sourceFileSecureHTTPSPublicWeb SourceFileSecureHTTPSPublicWeb) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureHTTPSPublicWeb return SourceFileSecureStorageProvider{ - HTTPSPublicWeb: &httpsPublicWeb, - Type: typ, + SourceFileSecureHTTPSPublicWeb: &sourceFileSecureHTTPSPublicWeb, + Type: typ, } } -func CreateSourceFileSecureStorageProviderGCSGoogleCloudStorage(gcsGoogleCloudStorage SourceFileSecureGCSGoogleCloudStorage) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeGCSGoogleCloudStorage +func CreateSourceFileSecureStorageProviderSourceFileSecureGCSGoogleCloudStorage(sourceFileSecureGCSGoogleCloudStorage SourceFileSecureGCSGoogleCloudStorage) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureGCSGoogleCloudStorage return SourceFileSecureStorageProvider{ - GCSGoogleCloudStorage: &gcsGoogleCloudStorage, - Type: typ, + SourceFileSecureGCSGoogleCloudStorage: &sourceFileSecureGCSGoogleCloudStorage, + Type: typ, } } -func CreateSourceFileSecureStorageProviderS3AmazonWebServices(s3AmazonWebServices SourceFileSecureS3AmazonWebServices) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeS3AmazonWebServices +func CreateSourceFileSecureStorageProviderSourceFileSecureS3AmazonWebServices(sourceFileSecureS3AmazonWebServices SourceFileSecureS3AmazonWebServices) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureS3AmazonWebServices return SourceFileSecureStorageProvider{ - S3AmazonWebServices: &s3AmazonWebServices, - Type: typ, + SourceFileSecureS3AmazonWebServices: &sourceFileSecureS3AmazonWebServices, + Type: typ, } } -func CreateSourceFileSecureStorageProviderAzBlobAzureBlobStorage(azBlobAzureBlobStorage SourceFileSecureAzBlobAzureBlobStorage) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeAzBlobAzureBlobStorage +func CreateSourceFileSecureStorageProviderSourceFileSecureAzBlobAzureBlobStorage(sourceFileSecureAzBlobAzureBlobStorage SourceFileSecureAzBlobAzureBlobStorage) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureAzBlobAzureBlobStorage return SourceFileSecureStorageProvider{ - AzBlobAzureBlobStorage: &azBlobAzureBlobStorage, - Type: typ, + SourceFileSecureAzBlobAzureBlobStorage: &sourceFileSecureAzBlobAzureBlobStorage, + Type: typ, } } -func CreateSourceFileSecureStorageProviderSSHSecureShell(sshSecureShell SourceFileSecureSSHSecureShell) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeSSHSecureShell +func CreateSourceFileSecureStorageProviderSourceFileSecureSSHSecureShell(sourceFileSecureSSHSecureShell SourceFileSecureSSHSecureShell) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureSSHSecureShell return SourceFileSecureStorageProvider{ - SSHSecureShell: &sshSecureShell, - Type: typ, + SourceFileSecureSSHSecureShell: &sourceFileSecureSSHSecureShell, + Type: typ, } } -func CreateSourceFileSecureStorageProviderSCPSecureCopyProtocol(scpSecureCopyProtocol SourceFileSecureSCPSecureCopyProtocol) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeSCPSecureCopyProtocol +func CreateSourceFileSecureStorageProviderSourceFileSecureSCPSecureCopyProtocol(sourceFileSecureSCPSecureCopyProtocol SourceFileSecureSCPSecureCopyProtocol) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureSCPSecureCopyProtocol return SourceFileSecureStorageProvider{ - SCPSecureCopyProtocol: &scpSecureCopyProtocol, - Type: typ, + SourceFileSecureSCPSecureCopyProtocol: &sourceFileSecureSCPSecureCopyProtocol, + Type: typ, } } -func CreateSourceFileSecureStorageProviderSFTPSecureFileTransferProtocol(sftpSecureFileTransferProtocol SourceFileSecureSFTPSecureFileTransferProtocol) SourceFileSecureStorageProvider { - typ := SourceFileSecureStorageProviderTypeSFTPSecureFileTransferProtocol +func CreateSourceFileSecureStorageProviderSourceFileSecureSFTPSecureFileTransferProtocol(sourceFileSecureSFTPSecureFileTransferProtocol SourceFileSecureSFTPSecureFileTransferProtocol) SourceFileSecureStorageProvider { + typ := SourceFileSecureStorageProviderTypeSourceFileSecureSFTPSecureFileTransferProtocol return SourceFileSecureStorageProvider{ - SFTPSecureFileTransferProtocol: &sftpSecureFileTransferProtocol, - Type: typ, + SourceFileSecureSFTPSecureFileTransferProtocol: &sourceFileSecureSFTPSecureFileTransferProtocol, + Type: typ, } } func (u *SourceFileSecureStorageProvider) UnmarshalJSON(data []byte) error { - httpsPublicWeb := new(SourceFileSecureHTTPSPublicWeb) - if err := utils.UnmarshalJSON(data, &httpsPublicWeb, "", true, true); err == nil { - u.HTTPSPublicWeb = httpsPublicWeb - u.Type = SourceFileSecureStorageProviderTypeHTTPSPublicWeb + sourceFileSecureHTTPSPublicWeb := new(SourceFileSecureHTTPSPublicWeb) + if err := utils.UnmarshalJSON(data, &sourceFileSecureHTTPSPublicWeb, "", true, true); err == nil { + u.SourceFileSecureHTTPSPublicWeb = sourceFileSecureHTTPSPublicWeb + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureHTTPSPublicWeb return nil } - gcsGoogleCloudStorage := new(SourceFileSecureGCSGoogleCloudStorage) - if err := utils.UnmarshalJSON(data, &gcsGoogleCloudStorage, "", true, true); err == nil { - u.GCSGoogleCloudStorage = gcsGoogleCloudStorage - u.Type = SourceFileSecureStorageProviderTypeGCSGoogleCloudStorage + sourceFileSecureGCSGoogleCloudStorage := new(SourceFileSecureGCSGoogleCloudStorage) + if err := utils.UnmarshalJSON(data, &sourceFileSecureGCSGoogleCloudStorage, "", true, true); err == nil { + u.SourceFileSecureGCSGoogleCloudStorage = sourceFileSecureGCSGoogleCloudStorage + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureGCSGoogleCloudStorage return nil } - s3AmazonWebServices := new(SourceFileSecureS3AmazonWebServices) - if err := utils.UnmarshalJSON(data, &s3AmazonWebServices, "", true, true); err == nil { - u.S3AmazonWebServices = s3AmazonWebServices - u.Type = SourceFileSecureStorageProviderTypeS3AmazonWebServices + sourceFileSecureS3AmazonWebServices := new(SourceFileSecureS3AmazonWebServices) + if err := utils.UnmarshalJSON(data, &sourceFileSecureS3AmazonWebServices, "", true, true); err == nil { + u.SourceFileSecureS3AmazonWebServices = sourceFileSecureS3AmazonWebServices + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureS3AmazonWebServices return nil } - azBlobAzureBlobStorage := new(SourceFileSecureAzBlobAzureBlobStorage) - if err := utils.UnmarshalJSON(data, &azBlobAzureBlobStorage, "", true, true); err == nil { - u.AzBlobAzureBlobStorage = azBlobAzureBlobStorage - u.Type = SourceFileSecureStorageProviderTypeAzBlobAzureBlobStorage + sourceFileSecureAzBlobAzureBlobStorage := new(SourceFileSecureAzBlobAzureBlobStorage) + if err := utils.UnmarshalJSON(data, &sourceFileSecureAzBlobAzureBlobStorage, "", true, true); err == nil { + u.SourceFileSecureAzBlobAzureBlobStorage = sourceFileSecureAzBlobAzureBlobStorage + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureAzBlobAzureBlobStorage return nil } - sshSecureShell := new(SourceFileSecureSSHSecureShell) - if err := utils.UnmarshalJSON(data, &sshSecureShell, "", true, true); err == nil { - u.SSHSecureShell = sshSecureShell - u.Type = SourceFileSecureStorageProviderTypeSSHSecureShell + sourceFileSecureSSHSecureShell := new(SourceFileSecureSSHSecureShell) + if err := utils.UnmarshalJSON(data, &sourceFileSecureSSHSecureShell, "", true, true); err == nil { + u.SourceFileSecureSSHSecureShell = sourceFileSecureSSHSecureShell + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureSSHSecureShell return nil } - scpSecureCopyProtocol := new(SourceFileSecureSCPSecureCopyProtocol) - if err := utils.UnmarshalJSON(data, &scpSecureCopyProtocol, "", true, true); err == nil { - u.SCPSecureCopyProtocol = scpSecureCopyProtocol - u.Type = SourceFileSecureStorageProviderTypeSCPSecureCopyProtocol + sourceFileSecureSCPSecureCopyProtocol := new(SourceFileSecureSCPSecureCopyProtocol) + if err := utils.UnmarshalJSON(data, &sourceFileSecureSCPSecureCopyProtocol, "", true, true); err == nil { + u.SourceFileSecureSCPSecureCopyProtocol = sourceFileSecureSCPSecureCopyProtocol + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureSCPSecureCopyProtocol return nil } - sftpSecureFileTransferProtocol := new(SourceFileSecureSFTPSecureFileTransferProtocol) - if err := utils.UnmarshalJSON(data, &sftpSecureFileTransferProtocol, "", true, true); err == nil { - u.SFTPSecureFileTransferProtocol = sftpSecureFileTransferProtocol - u.Type = SourceFileSecureStorageProviderTypeSFTPSecureFileTransferProtocol + sourceFileSecureSFTPSecureFileTransferProtocol := new(SourceFileSecureSFTPSecureFileTransferProtocol) + if err := utils.UnmarshalJSON(data, &sourceFileSecureSFTPSecureFileTransferProtocol, "", true, true); err == nil { + u.SourceFileSecureSFTPSecureFileTransferProtocol = sourceFileSecureSFTPSecureFileTransferProtocol + u.Type = SourceFileSecureStorageProviderTypeSourceFileSecureSFTPSecureFileTransferProtocol return nil } @@ -664,32 +664,32 @@ func (u *SourceFileSecureStorageProvider) UnmarshalJSON(data []byte) error { } func (u SourceFileSecureStorageProvider) MarshalJSON() ([]byte, error) { - if u.HTTPSPublicWeb != nil { - return utils.MarshalJSON(u.HTTPSPublicWeb, "", true) + if u.SourceFileSecureHTTPSPublicWeb != nil { + return utils.MarshalJSON(u.SourceFileSecureHTTPSPublicWeb, "", true) } - if u.GCSGoogleCloudStorage != nil { - return utils.MarshalJSON(u.GCSGoogleCloudStorage, "", true) + if u.SourceFileSecureGCSGoogleCloudStorage != nil { + return utils.MarshalJSON(u.SourceFileSecureGCSGoogleCloudStorage, "", true) } - if u.S3AmazonWebServices != nil { - return utils.MarshalJSON(u.S3AmazonWebServices, "", true) + if u.SourceFileSecureS3AmazonWebServices != nil { + return utils.MarshalJSON(u.SourceFileSecureS3AmazonWebServices, "", true) } - if u.AzBlobAzureBlobStorage != nil { - return utils.MarshalJSON(u.AzBlobAzureBlobStorage, "", true) + if u.SourceFileSecureAzBlobAzureBlobStorage != nil { + return utils.MarshalJSON(u.SourceFileSecureAzBlobAzureBlobStorage, "", true) } - if u.SSHSecureShell != nil { - return utils.MarshalJSON(u.SSHSecureShell, "", true) + if u.SourceFileSecureSSHSecureShell != nil { + return utils.MarshalJSON(u.SourceFileSecureSSHSecureShell, "", true) } - if u.SCPSecureCopyProtocol != nil { - return utils.MarshalJSON(u.SCPSecureCopyProtocol, "", true) + if u.SourceFileSecureSCPSecureCopyProtocol != nil { + return utils.MarshalJSON(u.SourceFileSecureSCPSecureCopyProtocol, "", true) } - if u.SFTPSecureFileTransferProtocol != nil { - return utils.MarshalJSON(u.SFTPSecureFileTransferProtocol, "", true) + if u.SourceFileSecureSFTPSecureFileTransferProtocol != nil { + return utils.MarshalJSON(u.SourceFileSecureSFTPSecureFileTransferProtocol, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go b/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go index c44e236c7..b316ab072 100644 --- a/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go +++ b/internal/sdk/pkg/models/shared/sourcefilesecureupdate.go @@ -525,23 +525,23 @@ func (o *HTTPSPublicWeb) GetUserAgent() *bool { type StorageProviderType string const ( - StorageProviderTypeHTTPSPublicWeb StorageProviderType = "HTTPSPublicWeb" - StorageProviderTypeGCSGoogleCloudStorage StorageProviderType = "GCSGoogleCloudStorage" - StorageProviderTypeS3AmazonWebServices StorageProviderType = "S3AmazonWebServices" - StorageProviderTypeAzBlobAzureBlobStorage StorageProviderType = "AzBlobAzureBlobStorage" - StorageProviderTypeSSHSecureShell StorageProviderType = "SSHSecureShell" - StorageProviderTypeSCPSecureCopyProtocol StorageProviderType = "SCPSecureCopyProtocol" - StorageProviderTypeSFTPSecureFileTransferProtocol StorageProviderType = "SFTPSecureFileTransferProtocol" + StorageProviderTypeHTTPSPublicWeb StorageProviderType = "HTTPS: Public Web" + StorageProviderTypeGCSGoogleCloudStorage StorageProviderType = "GCS: Google Cloud Storage" + StorageProviderTypeSourceFileSecureUpdateS3AmazonWebServices StorageProviderType = "source-file-secure-update_S3: Amazon Web Services" + StorageProviderTypeAzBlobAzureBlobStorage StorageProviderType = "AzBlob: Azure Blob Storage" + StorageProviderTypeSSHSecureShell StorageProviderType = "SSH: Secure Shell" + StorageProviderTypeSCPSecureCopyProtocol StorageProviderType = "SCP: Secure copy protocol" + StorageProviderTypeSFTPSecureFileTransferProtocol StorageProviderType = "SFTP: Secure File Transfer Protocol" ) type StorageProvider struct { - HTTPSPublicWeb *HTTPSPublicWeb - GCSGoogleCloudStorage *GCSGoogleCloudStorage - S3AmazonWebServices *SourceFileSecureUpdateS3AmazonWebServices - AzBlobAzureBlobStorage *AzBlobAzureBlobStorage - SSHSecureShell *SSHSecureShell - SCPSecureCopyProtocol *SCPSecureCopyProtocol - SFTPSecureFileTransferProtocol *SFTPSecureFileTransferProtocol + HTTPSPublicWeb *HTTPSPublicWeb + GCSGoogleCloudStorage *GCSGoogleCloudStorage + SourceFileSecureUpdateS3AmazonWebServices *SourceFileSecureUpdateS3AmazonWebServices + AzBlobAzureBlobStorage *AzBlobAzureBlobStorage + SSHSecureShell *SSHSecureShell + SCPSecureCopyProtocol *SCPSecureCopyProtocol + SFTPSecureFileTransferProtocol *SFTPSecureFileTransferProtocol Type StorageProviderType } @@ -564,12 +564,12 @@ func CreateStorageProviderGCSGoogleCloudStorage(gcsGoogleCloudStorage GCSGoogleC } } -func CreateStorageProviderS3AmazonWebServices(s3AmazonWebServices SourceFileSecureUpdateS3AmazonWebServices) StorageProvider { - typ := StorageProviderTypeS3AmazonWebServices +func CreateStorageProviderSourceFileSecureUpdateS3AmazonWebServices(sourceFileSecureUpdateS3AmazonWebServices SourceFileSecureUpdateS3AmazonWebServices) StorageProvider { + typ := StorageProviderTypeSourceFileSecureUpdateS3AmazonWebServices return StorageProvider{ - S3AmazonWebServices: &s3AmazonWebServices, - Type: typ, + SourceFileSecureUpdateS3AmazonWebServices: &sourceFileSecureUpdateS3AmazonWebServices, + Type: typ, } } @@ -625,10 +625,10 @@ func (u *StorageProvider) UnmarshalJSON(data []byte) error { return nil } - s3AmazonWebServices := new(SourceFileSecureUpdateS3AmazonWebServices) - if err := utils.UnmarshalJSON(data, &s3AmazonWebServices, "", true, true); err == nil { - u.S3AmazonWebServices = s3AmazonWebServices - u.Type = StorageProviderTypeS3AmazonWebServices + sourceFileSecureUpdateS3AmazonWebServices := new(SourceFileSecureUpdateS3AmazonWebServices) + if err := utils.UnmarshalJSON(data, &sourceFileSecureUpdateS3AmazonWebServices, "", true, true); err == nil { + u.SourceFileSecureUpdateS3AmazonWebServices = sourceFileSecureUpdateS3AmazonWebServices + u.Type = StorageProviderTypeSourceFileSecureUpdateS3AmazonWebServices return nil } @@ -672,8 +672,8 @@ func (u StorageProvider) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.GCSGoogleCloudStorage, "", true) } - if u.S3AmazonWebServices != nil { - return utils.MarshalJSON(u.S3AmazonWebServices, "", true) + if u.SourceFileSecureUpdateS3AmazonWebServices != nil { + return utils.MarshalJSON(u.SourceFileSecureUpdateS3AmazonWebServices, "", true) } if u.AzBlobAzureBlobStorage != nil { diff --git a/internal/sdk/pkg/models/shared/sourcegithub.go b/internal/sdk/pkg/models/shared/sourcegithub.go index 28bdb9203..97e8c928e 100644 --- a/internal/sdk/pkg/models/shared/sourcegithub.go +++ b/internal/sdk/pkg/models/shared/sourcegithub.go @@ -137,48 +137,48 @@ func (o *SourceGithubOAuth) GetOptionTitle() *SourceGithubOptionTitle { type SourceGithubAuthenticationType string const ( - SourceGithubAuthenticationTypeOAuth SourceGithubAuthenticationType = "OAuth" - SourceGithubAuthenticationTypePersonalAccessToken SourceGithubAuthenticationType = "PersonalAccessToken" + SourceGithubAuthenticationTypeSourceGithubOAuth SourceGithubAuthenticationType = "source-github_OAuth" + SourceGithubAuthenticationTypeSourceGithubPersonalAccessToken SourceGithubAuthenticationType = "source-github_Personal Access Token" ) type SourceGithubAuthentication struct { - OAuth *SourceGithubOAuth - PersonalAccessToken *SourceGithubPersonalAccessToken + SourceGithubOAuth *SourceGithubOAuth + SourceGithubPersonalAccessToken *SourceGithubPersonalAccessToken Type SourceGithubAuthenticationType } -func CreateSourceGithubAuthenticationOAuth(oAuth SourceGithubOAuth) SourceGithubAuthentication { - typ := SourceGithubAuthenticationTypeOAuth +func CreateSourceGithubAuthenticationSourceGithubOAuth(sourceGithubOAuth SourceGithubOAuth) SourceGithubAuthentication { + typ := SourceGithubAuthenticationTypeSourceGithubOAuth return SourceGithubAuthentication{ - OAuth: &oAuth, - Type: typ, + SourceGithubOAuth: &sourceGithubOAuth, + Type: typ, } } -func CreateSourceGithubAuthenticationPersonalAccessToken(personalAccessToken SourceGithubPersonalAccessToken) SourceGithubAuthentication { - typ := SourceGithubAuthenticationTypePersonalAccessToken +func CreateSourceGithubAuthenticationSourceGithubPersonalAccessToken(sourceGithubPersonalAccessToken SourceGithubPersonalAccessToken) SourceGithubAuthentication { + typ := SourceGithubAuthenticationTypeSourceGithubPersonalAccessToken return SourceGithubAuthentication{ - PersonalAccessToken: &personalAccessToken, - Type: typ, + SourceGithubPersonalAccessToken: &sourceGithubPersonalAccessToken, + Type: typ, } } func (u *SourceGithubAuthentication) UnmarshalJSON(data []byte) error { - personalAccessToken := new(SourceGithubPersonalAccessToken) - if err := utils.UnmarshalJSON(data, &personalAccessToken, "", true, true); err == nil { - u.PersonalAccessToken = personalAccessToken - u.Type = SourceGithubAuthenticationTypePersonalAccessToken + sourceGithubPersonalAccessToken := new(SourceGithubPersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceGithubPersonalAccessToken, "", true, true); err == nil { + u.SourceGithubPersonalAccessToken = sourceGithubPersonalAccessToken + u.Type = SourceGithubAuthenticationTypeSourceGithubPersonalAccessToken return nil } - oAuth := new(SourceGithubOAuth) - if err := utils.UnmarshalJSON(data, &oAuth, "", true, true); err == nil { - u.OAuth = oAuth - u.Type = SourceGithubAuthenticationTypeOAuth + sourceGithubOAuth := new(SourceGithubOAuth) + if err := utils.UnmarshalJSON(data, &sourceGithubOAuth, "", true, true); err == nil { + u.SourceGithubOAuth = sourceGithubOAuth + u.Type = SourceGithubAuthenticationTypeSourceGithubOAuth return nil } @@ -186,12 +186,12 @@ func (u *SourceGithubAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceGithubAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth != nil { - return utils.MarshalJSON(u.OAuth, "", true) + if u.SourceGithubOAuth != nil { + return utils.MarshalJSON(u.SourceGithubOAuth, "", true) } - if u.PersonalAccessToken != nil { - return utils.MarshalJSON(u.PersonalAccessToken, "", true) + if u.SourceGithubPersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceGithubPersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegithubupdate.go b/internal/sdk/pkg/models/shared/sourcegithubupdate.go index fa5d0cf6c..8364523a6 100644 --- a/internal/sdk/pkg/models/shared/sourcegithubupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegithubupdate.go @@ -137,13 +137,13 @@ func (o *OAuth) GetOptionTitle() *OptionTitle { type SourceGithubUpdateAuthenticationType string const ( - SourceGithubUpdateAuthenticationTypeOAuth SourceGithubUpdateAuthenticationType = "OAuth" - SourceGithubUpdateAuthenticationTypePersonalAccessToken SourceGithubUpdateAuthenticationType = "PersonalAccessToken" + SourceGithubUpdateAuthenticationTypeOAuth SourceGithubUpdateAuthenticationType = "OAuth" + SourceGithubUpdateAuthenticationTypeSourceGithubUpdatePersonalAccessToken SourceGithubUpdateAuthenticationType = "source-github-update_Personal Access Token" ) type SourceGithubUpdateAuthentication struct { - OAuth *OAuth - PersonalAccessToken *SourceGithubUpdatePersonalAccessToken + OAuth *OAuth + SourceGithubUpdatePersonalAccessToken *SourceGithubUpdatePersonalAccessToken Type SourceGithubUpdateAuthenticationType } @@ -157,21 +157,21 @@ func CreateSourceGithubUpdateAuthenticationOAuth(oAuth OAuth) SourceGithubUpdate } } -func CreateSourceGithubUpdateAuthenticationPersonalAccessToken(personalAccessToken SourceGithubUpdatePersonalAccessToken) SourceGithubUpdateAuthentication { - typ := SourceGithubUpdateAuthenticationTypePersonalAccessToken +func CreateSourceGithubUpdateAuthenticationSourceGithubUpdatePersonalAccessToken(sourceGithubUpdatePersonalAccessToken SourceGithubUpdatePersonalAccessToken) SourceGithubUpdateAuthentication { + typ := SourceGithubUpdateAuthenticationTypeSourceGithubUpdatePersonalAccessToken return SourceGithubUpdateAuthentication{ - PersonalAccessToken: &personalAccessToken, - Type: typ, + SourceGithubUpdatePersonalAccessToken: &sourceGithubUpdatePersonalAccessToken, + Type: typ, } } func (u *SourceGithubUpdateAuthentication) UnmarshalJSON(data []byte) error { - personalAccessToken := new(SourceGithubUpdatePersonalAccessToken) - if err := utils.UnmarshalJSON(data, &personalAccessToken, "", true, true); err == nil { - u.PersonalAccessToken = personalAccessToken - u.Type = SourceGithubUpdateAuthenticationTypePersonalAccessToken + sourceGithubUpdatePersonalAccessToken := new(SourceGithubUpdatePersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceGithubUpdatePersonalAccessToken, "", true, true); err == nil { + u.SourceGithubUpdatePersonalAccessToken = sourceGithubUpdatePersonalAccessToken + u.Type = SourceGithubUpdateAuthenticationTypeSourceGithubUpdatePersonalAccessToken return nil } @@ -190,8 +190,8 @@ func (u SourceGithubUpdateAuthentication) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.OAuth, "", true) } - if u.PersonalAccessToken != nil { - return utils.MarshalJSON(u.PersonalAccessToken, "", true) + if u.SourceGithubUpdatePersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceGithubUpdatePersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegitlab.go b/internal/sdk/pkg/models/shared/sourcegitlab.go index 31ea2b7c8..24be3635b 100644 --- a/internal/sdk/pkg/models/shared/sourcegitlab.go +++ b/internal/sdk/pkg/models/shared/sourcegitlab.go @@ -153,48 +153,48 @@ func (o *SourceGitlabOAuth20) GetTokenExpiryDate() time.Time { type SourceGitlabAuthorizationMethodType string const ( - SourceGitlabAuthorizationMethodTypeOAuth20 SourceGitlabAuthorizationMethodType = "OAuth20" - SourceGitlabAuthorizationMethodTypePrivateToken SourceGitlabAuthorizationMethodType = "PrivateToken" + SourceGitlabAuthorizationMethodTypeSourceGitlabOAuth20 SourceGitlabAuthorizationMethodType = "source-gitlab_OAuth2.0" + SourceGitlabAuthorizationMethodTypeSourceGitlabPrivateToken SourceGitlabAuthorizationMethodType = "source-gitlab_Private Token" ) type SourceGitlabAuthorizationMethod struct { - OAuth20 *SourceGitlabOAuth20 - PrivateToken *SourceGitlabPrivateToken + SourceGitlabOAuth20 *SourceGitlabOAuth20 + SourceGitlabPrivateToken *SourceGitlabPrivateToken Type SourceGitlabAuthorizationMethodType } -func CreateSourceGitlabAuthorizationMethodOAuth20(oAuth20 SourceGitlabOAuth20) SourceGitlabAuthorizationMethod { - typ := SourceGitlabAuthorizationMethodTypeOAuth20 +func CreateSourceGitlabAuthorizationMethodSourceGitlabOAuth20(sourceGitlabOAuth20 SourceGitlabOAuth20) SourceGitlabAuthorizationMethod { + typ := SourceGitlabAuthorizationMethodTypeSourceGitlabOAuth20 return SourceGitlabAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceGitlabOAuth20: &sourceGitlabOAuth20, + Type: typ, } } -func CreateSourceGitlabAuthorizationMethodPrivateToken(privateToken SourceGitlabPrivateToken) SourceGitlabAuthorizationMethod { - typ := SourceGitlabAuthorizationMethodTypePrivateToken +func CreateSourceGitlabAuthorizationMethodSourceGitlabPrivateToken(sourceGitlabPrivateToken SourceGitlabPrivateToken) SourceGitlabAuthorizationMethod { + typ := SourceGitlabAuthorizationMethodTypeSourceGitlabPrivateToken return SourceGitlabAuthorizationMethod{ - PrivateToken: &privateToken, - Type: typ, + SourceGitlabPrivateToken: &sourceGitlabPrivateToken, + Type: typ, } } func (u *SourceGitlabAuthorizationMethod) UnmarshalJSON(data []byte) error { - privateToken := new(SourceGitlabPrivateToken) - if err := utils.UnmarshalJSON(data, &privateToken, "", true, true); err == nil { - u.PrivateToken = privateToken - u.Type = SourceGitlabAuthorizationMethodTypePrivateToken + sourceGitlabPrivateToken := new(SourceGitlabPrivateToken) + if err := utils.UnmarshalJSON(data, &sourceGitlabPrivateToken, "", true, true); err == nil { + u.SourceGitlabPrivateToken = sourceGitlabPrivateToken + u.Type = SourceGitlabAuthorizationMethodTypeSourceGitlabPrivateToken return nil } - oAuth20 := new(SourceGitlabOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceGitlabAuthorizationMethodTypeOAuth20 + sourceGitlabOAuth20 := new(SourceGitlabOAuth20) + if err := utils.UnmarshalJSON(data, &sourceGitlabOAuth20, "", true, true); err == nil { + u.SourceGitlabOAuth20 = sourceGitlabOAuth20 + u.Type = SourceGitlabAuthorizationMethodTypeSourceGitlabOAuth20 return nil } @@ -202,12 +202,12 @@ func (u *SourceGitlabAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceGitlabAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceGitlabOAuth20 != nil { + return utils.MarshalJSON(u.SourceGitlabOAuth20, "", true) } - if u.PrivateToken != nil { - return utils.MarshalJSON(u.PrivateToken, "", true) + if u.SourceGitlabPrivateToken != nil { + return utils.MarshalJSON(u.SourceGitlabPrivateToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegitlabupdate.go b/internal/sdk/pkg/models/shared/sourcegitlabupdate.go index 6ae16b018..953c8c8cd 100644 --- a/internal/sdk/pkg/models/shared/sourcegitlabupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegitlabupdate.go @@ -153,23 +153,23 @@ func (o *SourceGitlabUpdateOAuth20) GetTokenExpiryDate() time.Time { type SourceGitlabUpdateAuthorizationMethodType string const ( - SourceGitlabUpdateAuthorizationMethodTypeOAuth20 SourceGitlabUpdateAuthorizationMethodType = "OAuth20" - SourceGitlabUpdateAuthorizationMethodTypePrivateToken SourceGitlabUpdateAuthorizationMethodType = "PrivateToken" + SourceGitlabUpdateAuthorizationMethodTypeSourceGitlabUpdateOAuth20 SourceGitlabUpdateAuthorizationMethodType = "source-gitlab-update_OAuth2.0" + SourceGitlabUpdateAuthorizationMethodTypePrivateToken SourceGitlabUpdateAuthorizationMethodType = "Private Token" ) type SourceGitlabUpdateAuthorizationMethod struct { - OAuth20 *SourceGitlabUpdateOAuth20 - PrivateToken *PrivateToken + SourceGitlabUpdateOAuth20 *SourceGitlabUpdateOAuth20 + PrivateToken *PrivateToken Type SourceGitlabUpdateAuthorizationMethodType } -func CreateSourceGitlabUpdateAuthorizationMethodOAuth20(oAuth20 SourceGitlabUpdateOAuth20) SourceGitlabUpdateAuthorizationMethod { - typ := SourceGitlabUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceGitlabUpdateAuthorizationMethodSourceGitlabUpdateOAuth20(sourceGitlabUpdateOAuth20 SourceGitlabUpdateOAuth20) SourceGitlabUpdateAuthorizationMethod { + typ := SourceGitlabUpdateAuthorizationMethodTypeSourceGitlabUpdateOAuth20 return SourceGitlabUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceGitlabUpdateOAuth20: &sourceGitlabUpdateOAuth20, + Type: typ, } } @@ -191,10 +191,10 @@ func (u *SourceGitlabUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error return nil } - oAuth20 := new(SourceGitlabUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceGitlabUpdateAuthorizationMethodTypeOAuth20 + sourceGitlabUpdateOAuth20 := new(SourceGitlabUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceGitlabUpdateOAuth20, "", true, true); err == nil { + u.SourceGitlabUpdateOAuth20 = sourceGitlabUpdateOAuth20 + u.Type = SourceGitlabUpdateAuthorizationMethodTypeSourceGitlabUpdateOAuth20 return nil } @@ -202,8 +202,8 @@ func (u *SourceGitlabUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error } func (u SourceGitlabUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceGitlabUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceGitlabUpdateOAuth20, "", true) } if u.PrivateToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go index 5f0db72b3..b0c75e1f4 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go +++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapi.go @@ -146,48 +146,48 @@ func (o *SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth) GetRefreshToken type SourceGoogleAnalyticsDataAPICredentialsType string const ( - SourceGoogleAnalyticsDataAPICredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPICredentialsType = "AuthenticateViaGoogleOauth" - SourceGoogleAnalyticsDataAPICredentialsTypeServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPICredentialsType = "ServiceAccountKeyAuthentication" + SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPICredentialsType = "source-google-analytics-data-api_Authenticate via Google (Oauth)" + SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPICredentialsType = "source-google-analytics-data-api_Service Account Key Authentication" ) type SourceGoogleAnalyticsDataAPICredentials struct { - AuthenticateViaGoogleOauth *SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth - ServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication + SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth *SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth + SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication *SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication Type SourceGoogleAnalyticsDataAPICredentialsType } -func CreateSourceGoogleAnalyticsDataAPICredentialsAuthenticateViaGoogleOauth(authenticateViaGoogleOauth SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth) SourceGoogleAnalyticsDataAPICredentials { - typ := SourceGoogleAnalyticsDataAPICredentialsTypeAuthenticateViaGoogleOauth +func CreateSourceGoogleAnalyticsDataAPICredentialsSourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth(sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth) SourceGoogleAnalyticsDataAPICredentials { + typ := SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth return SourceGoogleAnalyticsDataAPICredentials{ - AuthenticateViaGoogleOauth: &authenticateViaGoogleOauth, - Type: typ, + SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth: &sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth, + Type: typ, } } -func CreateSourceGoogleAnalyticsDataAPICredentialsServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPICredentials { - typ := SourceGoogleAnalyticsDataAPICredentialsTypeServiceAccountKeyAuthentication +func CreateSourceGoogleAnalyticsDataAPICredentialsSourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication(sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication) SourceGoogleAnalyticsDataAPICredentials { + typ := SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication return SourceGoogleAnalyticsDataAPICredentials{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication: &sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleAnalyticsDataAPICredentials) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeServiceAccountKeyAuthentication + sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication = sourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication return nil } - authenticateViaGoogleOauth := new(SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth) - if err := utils.UnmarshalJSON(data, &authenticateViaGoogleOauth, "", true, true); err == nil { - u.AuthenticateViaGoogleOauth = authenticateViaGoogleOauth - u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeAuthenticateViaGoogleOauth + sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth, "", true, true); err == nil { + u.SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth = sourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth + u.Type = SourceGoogleAnalyticsDataAPICredentialsTypeSourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth return nil } @@ -195,12 +195,12 @@ func (u *SourceGoogleAnalyticsDataAPICredentials) UnmarshalJSON(data []byte) err } func (u SourceGoogleAnalyticsDataAPICredentials) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaGoogleOauth != nil { - return utils.MarshalJSON(u.AuthenticateViaGoogleOauth, "", true) + if u.SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIAuthenticateViaGoogleOauth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsDataAPIServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go index c0154d002..2f3d444d2 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsdataapiupdate.go @@ -146,8 +146,8 @@ func (o *AuthenticateViaGoogleOauth) GetRefreshToken() string { type CredentialsType string const ( - CredentialsTypeAuthenticateViaGoogleOauth CredentialsType = "AuthenticateViaGoogleOauth" - CredentialsTypeServiceAccountKeyAuthentication CredentialsType = "ServiceAccountKeyAuthentication" + CredentialsTypeAuthenticateViaGoogleOauth CredentialsType = "Authenticate via Google (Oauth)" + CredentialsTypeServiceAccountKeyAuthentication CredentialsType = "Service Account Key Authentication" ) type Credentials struct { diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go index 966df2874..969c85892 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go +++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4.go @@ -146,48 +146,48 @@ func (o *SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth) GetRefreshToken() st type SourceGoogleAnalyticsV4CredentialsType string const ( - SourceGoogleAnalyticsV4CredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsV4CredentialsType = "AuthenticateViaGoogleOauth" - SourceGoogleAnalyticsV4CredentialsTypeServiceAccountKeyAuthentication SourceGoogleAnalyticsV4CredentialsType = "ServiceAccountKeyAuthentication" + SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4AuthenticateViaGoogleOauth SourceGoogleAnalyticsV4CredentialsType = "source-google-analytics-v4_Authenticate via Google (Oauth)" + SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4ServiceAccountKeyAuthentication SourceGoogleAnalyticsV4CredentialsType = "source-google-analytics-v4_Service Account Key Authentication" ) type SourceGoogleAnalyticsV4Credentials struct { - AuthenticateViaGoogleOauth *SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth - ServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication + SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth *SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth + SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication Type SourceGoogleAnalyticsV4CredentialsType } -func CreateSourceGoogleAnalyticsV4CredentialsAuthenticateViaGoogleOauth(authenticateViaGoogleOauth SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth) SourceGoogleAnalyticsV4Credentials { - typ := SourceGoogleAnalyticsV4CredentialsTypeAuthenticateViaGoogleOauth +func CreateSourceGoogleAnalyticsV4CredentialsSourceGoogleAnalyticsV4AuthenticateViaGoogleOauth(sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth) SourceGoogleAnalyticsV4Credentials { + typ := SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4AuthenticateViaGoogleOauth return SourceGoogleAnalyticsV4Credentials{ - AuthenticateViaGoogleOauth: &authenticateViaGoogleOauth, - Type: typ, + SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth: &sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth, + Type: typ, } } -func CreateSourceGoogleAnalyticsV4CredentialsServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4Credentials { - typ := SourceGoogleAnalyticsV4CredentialsTypeServiceAccountKeyAuthentication +func CreateSourceGoogleAnalyticsV4CredentialsSourceGoogleAnalyticsV4ServiceAccountKeyAuthentication(sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4Credentials { + typ := SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4ServiceAccountKeyAuthentication return SourceGoogleAnalyticsV4Credentials{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication: &sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleAnalyticsV4Credentials) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleAnalyticsV4CredentialsTypeServiceAccountKeyAuthentication + sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication = sourceGoogleAnalyticsV4ServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4ServiceAccountKeyAuthentication return nil } - authenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth) - if err := utils.UnmarshalJSON(data, &authenticateViaGoogleOauth, "", true, true); err == nil { - u.AuthenticateViaGoogleOauth = authenticateViaGoogleOauth - u.Type = SourceGoogleAnalyticsV4CredentialsTypeAuthenticateViaGoogleOauth + sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth = sourceGoogleAnalyticsV4AuthenticateViaGoogleOauth + u.Type = SourceGoogleAnalyticsV4CredentialsTypeSourceGoogleAnalyticsV4AuthenticateViaGoogleOauth return nil } @@ -195,12 +195,12 @@ func (u *SourceGoogleAnalyticsV4Credentials) UnmarshalJSON(data []byte) error { } func (u SourceGoogleAnalyticsV4Credentials) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaGoogleOauth != nil { - return utils.MarshalJSON(u.AuthenticateViaGoogleOauth, "", true) + if u.SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4AuthenticateViaGoogleOauth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4ServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go index 487060440..f6be69ee9 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go +++ b/internal/sdk/pkg/models/shared/sourcegoogleanalyticsv4update.go @@ -146,48 +146,48 @@ func (o *SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth) GetRefreshToke type SourceGoogleAnalyticsV4UpdateCredentialsType string const ( - SourceGoogleAnalyticsV4UpdateCredentialsTypeAuthenticateViaGoogleOauth SourceGoogleAnalyticsV4UpdateCredentialsType = "AuthenticateViaGoogleOauth" - SourceGoogleAnalyticsV4UpdateCredentialsTypeServiceAccountKeyAuthentication SourceGoogleAnalyticsV4UpdateCredentialsType = "ServiceAccountKeyAuthentication" + SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth SourceGoogleAnalyticsV4UpdateCredentialsType = "source-google-analytics-v4-update_Authenticate via Google (Oauth)" + SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsV4UpdateCredentialsType = "source-google-analytics-v4-update_Service Account Key Authentication" ) type SourceGoogleAnalyticsV4UpdateCredentials struct { - AuthenticateViaGoogleOauth *SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth - ServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication + SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth *SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth + SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication *SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication Type SourceGoogleAnalyticsV4UpdateCredentialsType } -func CreateSourceGoogleAnalyticsV4UpdateCredentialsAuthenticateViaGoogleOauth(authenticateViaGoogleOauth SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth) SourceGoogleAnalyticsV4UpdateCredentials { - typ := SourceGoogleAnalyticsV4UpdateCredentialsTypeAuthenticateViaGoogleOauth +func CreateSourceGoogleAnalyticsV4UpdateCredentialsSourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth(sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth) SourceGoogleAnalyticsV4UpdateCredentials { + typ := SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth return SourceGoogleAnalyticsV4UpdateCredentials{ - AuthenticateViaGoogleOauth: &authenticateViaGoogleOauth, - Type: typ, + SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth: &sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth, + Type: typ, } } -func CreateSourceGoogleAnalyticsV4UpdateCredentialsServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4UpdateCredentials { - typ := SourceGoogleAnalyticsV4UpdateCredentialsTypeServiceAccountKeyAuthentication +func CreateSourceGoogleAnalyticsV4UpdateCredentialsSourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication(sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication) SourceGoogleAnalyticsV4UpdateCredentials { + typ := SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication return SourceGoogleAnalyticsV4UpdateCredentials{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication: &sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleAnalyticsV4UpdateCredentials) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeServiceAccountKeyAuthentication + sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication := new(SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication = sourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication + u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication return nil } - authenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth) - if err := utils.UnmarshalJSON(data, &authenticateViaGoogleOauth, "", true, true); err == nil { - u.AuthenticateViaGoogleOauth = authenticateViaGoogleOauth - u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeAuthenticateViaGoogleOauth + sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth := new(SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth) + if err := utils.UnmarshalJSON(data, &sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth, "", true, true); err == nil { + u.SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth = sourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth + u.Type = SourceGoogleAnalyticsV4UpdateCredentialsTypeSourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth return nil } @@ -195,12 +195,12 @@ func (u *SourceGoogleAnalyticsV4UpdateCredentials) UnmarshalJSON(data []byte) er } func (u SourceGoogleAnalyticsV4UpdateCredentials) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaGoogleOauth != nil { - return utils.MarshalJSON(u.AuthenticateViaGoogleOauth, "", true) + if u.SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4UpdateAuthenticateViaGoogleOauth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleAnalyticsV4UpdateServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectory.go b/internal/sdk/pkg/models/shared/sourcegoogledirectory.go index a8002ab23..1d6e7c1b6 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogledirectory.go +++ b/internal/sdk/pkg/models/shared/sourcegoogledirectory.go @@ -149,48 +149,48 @@ func (o *SourceGoogleDirectorySignInViaGoogleOAuth) GetRefreshToken() string { type SourceGoogleDirectoryGoogleCredentialsType string const ( - SourceGoogleDirectoryGoogleCredentialsTypeSignInViaGoogleOAuth SourceGoogleDirectoryGoogleCredentialsType = "SignInViaGoogleOAuth" - SourceGoogleDirectoryGoogleCredentialsTypeServiceAccountKey SourceGoogleDirectoryGoogleCredentialsType = "ServiceAccountKey" + SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectorySignInViaGoogleOAuth SourceGoogleDirectoryGoogleCredentialsType = "source-google-directory_Sign in via Google (OAuth)" + SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectoryServiceAccountKey SourceGoogleDirectoryGoogleCredentialsType = "source-google-directory_Service Account Key" ) type SourceGoogleDirectoryGoogleCredentials struct { - SignInViaGoogleOAuth *SourceGoogleDirectorySignInViaGoogleOAuth - ServiceAccountKey *SourceGoogleDirectoryServiceAccountKey + SourceGoogleDirectorySignInViaGoogleOAuth *SourceGoogleDirectorySignInViaGoogleOAuth + SourceGoogleDirectoryServiceAccountKey *SourceGoogleDirectoryServiceAccountKey Type SourceGoogleDirectoryGoogleCredentialsType } -func CreateSourceGoogleDirectoryGoogleCredentialsSignInViaGoogleOAuth(signInViaGoogleOAuth SourceGoogleDirectorySignInViaGoogleOAuth) SourceGoogleDirectoryGoogleCredentials { - typ := SourceGoogleDirectoryGoogleCredentialsTypeSignInViaGoogleOAuth +func CreateSourceGoogleDirectoryGoogleCredentialsSourceGoogleDirectorySignInViaGoogleOAuth(sourceGoogleDirectorySignInViaGoogleOAuth SourceGoogleDirectorySignInViaGoogleOAuth) SourceGoogleDirectoryGoogleCredentials { + typ := SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectorySignInViaGoogleOAuth return SourceGoogleDirectoryGoogleCredentials{ - SignInViaGoogleOAuth: &signInViaGoogleOAuth, - Type: typ, + SourceGoogleDirectorySignInViaGoogleOAuth: &sourceGoogleDirectorySignInViaGoogleOAuth, + Type: typ, } } -func CreateSourceGoogleDirectoryGoogleCredentialsServiceAccountKey(serviceAccountKey SourceGoogleDirectoryServiceAccountKey) SourceGoogleDirectoryGoogleCredentials { - typ := SourceGoogleDirectoryGoogleCredentialsTypeServiceAccountKey +func CreateSourceGoogleDirectoryGoogleCredentialsSourceGoogleDirectoryServiceAccountKey(sourceGoogleDirectoryServiceAccountKey SourceGoogleDirectoryServiceAccountKey) SourceGoogleDirectoryGoogleCredentials { + typ := SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectoryServiceAccountKey return SourceGoogleDirectoryGoogleCredentials{ - ServiceAccountKey: &serviceAccountKey, - Type: typ, + SourceGoogleDirectoryServiceAccountKey: &sourceGoogleDirectoryServiceAccountKey, + Type: typ, } } func (u *SourceGoogleDirectoryGoogleCredentials) UnmarshalJSON(data []byte) error { - serviceAccountKey := new(SourceGoogleDirectoryServiceAccountKey) - if err := utils.UnmarshalJSON(data, &serviceAccountKey, "", true, true); err == nil { - u.ServiceAccountKey = serviceAccountKey - u.Type = SourceGoogleDirectoryGoogleCredentialsTypeServiceAccountKey + sourceGoogleDirectoryServiceAccountKey := new(SourceGoogleDirectoryServiceAccountKey) + if err := utils.UnmarshalJSON(data, &sourceGoogleDirectoryServiceAccountKey, "", true, true); err == nil { + u.SourceGoogleDirectoryServiceAccountKey = sourceGoogleDirectoryServiceAccountKey + u.Type = SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectoryServiceAccountKey return nil } - signInViaGoogleOAuth := new(SourceGoogleDirectorySignInViaGoogleOAuth) - if err := utils.UnmarshalJSON(data, &signInViaGoogleOAuth, "", true, true); err == nil { - u.SignInViaGoogleOAuth = signInViaGoogleOAuth - u.Type = SourceGoogleDirectoryGoogleCredentialsTypeSignInViaGoogleOAuth + sourceGoogleDirectorySignInViaGoogleOAuth := new(SourceGoogleDirectorySignInViaGoogleOAuth) + if err := utils.UnmarshalJSON(data, &sourceGoogleDirectorySignInViaGoogleOAuth, "", true, true); err == nil { + u.SourceGoogleDirectorySignInViaGoogleOAuth = sourceGoogleDirectorySignInViaGoogleOAuth + u.Type = SourceGoogleDirectoryGoogleCredentialsTypeSourceGoogleDirectorySignInViaGoogleOAuth return nil } @@ -198,12 +198,12 @@ func (u *SourceGoogleDirectoryGoogleCredentials) UnmarshalJSON(data []byte) erro } func (u SourceGoogleDirectoryGoogleCredentials) MarshalJSON() ([]byte, error) { - if u.SignInViaGoogleOAuth != nil { - return utils.MarshalJSON(u.SignInViaGoogleOAuth, "", true) + if u.SourceGoogleDirectorySignInViaGoogleOAuth != nil { + return utils.MarshalJSON(u.SourceGoogleDirectorySignInViaGoogleOAuth, "", true) } - if u.ServiceAccountKey != nil { - return utils.MarshalJSON(u.ServiceAccountKey, "", true) + if u.SourceGoogleDirectoryServiceAccountKey != nil { + return utils.MarshalJSON(u.SourceGoogleDirectoryServiceAccountKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go b/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go index c07ca7b67..88569b18d 100644 --- a/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegoogledirectoryupdate.go @@ -149,8 +149,8 @@ func (o *SignInViaGoogleOAuth) GetRefreshToken() string { type SourceGoogleDirectoryUpdateGoogleCredentialsType string const ( - SourceGoogleDirectoryUpdateGoogleCredentialsTypeSignInViaGoogleOAuth SourceGoogleDirectoryUpdateGoogleCredentialsType = "SignInViaGoogleOAuth" - SourceGoogleDirectoryUpdateGoogleCredentialsTypeServiceAccountKey SourceGoogleDirectoryUpdateGoogleCredentialsType = "ServiceAccountKey" + SourceGoogleDirectoryUpdateGoogleCredentialsTypeSignInViaGoogleOAuth SourceGoogleDirectoryUpdateGoogleCredentialsType = "Sign in via Google (OAuth)" + SourceGoogleDirectoryUpdateGoogleCredentialsTypeServiceAccountKey SourceGoogleDirectoryUpdateGoogleCredentialsType = "Service Account Key" ) type SourceGoogleDirectoryUpdateGoogleCredentials struct { diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go index 35231ce23..35e1c3106 100644 --- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go +++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsole.go @@ -153,48 +153,48 @@ func (o *SourceGoogleSearchConsoleOAuth) GetRefreshToken() string { type SourceGoogleSearchConsoleAuthenticationTypeType string const ( - SourceGoogleSearchConsoleAuthenticationTypeTypeOAuth SourceGoogleSearchConsoleAuthenticationTypeType = "OAuth" - SourceGoogleSearchConsoleAuthenticationTypeTypeServiceAccountKeyAuthentication SourceGoogleSearchConsoleAuthenticationTypeType = "ServiceAccountKeyAuthentication" + SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleOAuth SourceGoogleSearchConsoleAuthenticationTypeType = "source-google-search-console_OAuth" + SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleServiceAccountKeyAuthentication SourceGoogleSearchConsoleAuthenticationTypeType = "source-google-search-console_Service Account Key Authentication" ) type SourceGoogleSearchConsoleAuthenticationType struct { - OAuth *SourceGoogleSearchConsoleOAuth - ServiceAccountKeyAuthentication *SourceGoogleSearchConsoleServiceAccountKeyAuthentication + SourceGoogleSearchConsoleOAuth *SourceGoogleSearchConsoleOAuth + SourceGoogleSearchConsoleServiceAccountKeyAuthentication *SourceGoogleSearchConsoleServiceAccountKeyAuthentication Type SourceGoogleSearchConsoleAuthenticationTypeType } -func CreateSourceGoogleSearchConsoleAuthenticationTypeOAuth(oAuth SourceGoogleSearchConsoleOAuth) SourceGoogleSearchConsoleAuthenticationType { - typ := SourceGoogleSearchConsoleAuthenticationTypeTypeOAuth +func CreateSourceGoogleSearchConsoleAuthenticationTypeSourceGoogleSearchConsoleOAuth(sourceGoogleSearchConsoleOAuth SourceGoogleSearchConsoleOAuth) SourceGoogleSearchConsoleAuthenticationType { + typ := SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleOAuth return SourceGoogleSearchConsoleAuthenticationType{ - OAuth: &oAuth, - Type: typ, + SourceGoogleSearchConsoleOAuth: &sourceGoogleSearchConsoleOAuth, + Type: typ, } } -func CreateSourceGoogleSearchConsoleAuthenticationTypeServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleSearchConsoleServiceAccountKeyAuthentication) SourceGoogleSearchConsoleAuthenticationType { - typ := SourceGoogleSearchConsoleAuthenticationTypeTypeServiceAccountKeyAuthentication +func CreateSourceGoogleSearchConsoleAuthenticationTypeSourceGoogleSearchConsoleServiceAccountKeyAuthentication(sourceGoogleSearchConsoleServiceAccountKeyAuthentication SourceGoogleSearchConsoleServiceAccountKeyAuthentication) SourceGoogleSearchConsoleAuthenticationType { + typ := SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleServiceAccountKeyAuthentication return SourceGoogleSearchConsoleAuthenticationType{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleSearchConsoleServiceAccountKeyAuthentication: &sourceGoogleSearchConsoleServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleSearchConsoleAuthenticationType) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleSearchConsoleServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeServiceAccountKeyAuthentication + sourceGoogleSearchConsoleServiceAccountKeyAuthentication := new(SourceGoogleSearchConsoleServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleSearchConsoleServiceAccountKeyAuthentication = sourceGoogleSearchConsoleServiceAccountKeyAuthentication + u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleServiceAccountKeyAuthentication return nil } - oAuth := new(SourceGoogleSearchConsoleOAuth) - if err := utils.UnmarshalJSON(data, &oAuth, "", true, true); err == nil { - u.OAuth = oAuth - u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeOAuth + sourceGoogleSearchConsoleOAuth := new(SourceGoogleSearchConsoleOAuth) + if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleOAuth, "", true, true); err == nil { + u.SourceGoogleSearchConsoleOAuth = sourceGoogleSearchConsoleOAuth + u.Type = SourceGoogleSearchConsoleAuthenticationTypeTypeSourceGoogleSearchConsoleOAuth return nil } @@ -202,12 +202,12 @@ func (u *SourceGoogleSearchConsoleAuthenticationType) UnmarshalJSON(data []byte) } func (u SourceGoogleSearchConsoleAuthenticationType) MarshalJSON() ([]byte, error) { - if u.OAuth != nil { - return utils.MarshalJSON(u.OAuth, "", true) + if u.SourceGoogleSearchConsoleOAuth != nil { + return utils.MarshalJSON(u.SourceGoogleSearchConsoleOAuth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleSearchConsoleServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleSearchConsoleServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go index 159abe420..0e5a0d5f2 100644 --- a/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegooglesearchconsoleupdate.go @@ -153,48 +153,48 @@ func (o *SourceGoogleSearchConsoleUpdateOAuth) GetRefreshToken() string { type AuthenticationTypeType string const ( - AuthenticationTypeTypeOAuth AuthenticationTypeType = "OAuth" - AuthenticationTypeTypeServiceAccountKeyAuthentication AuthenticationTypeType = "ServiceAccountKeyAuthentication" + AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateOAuth AuthenticationTypeType = "source-google-search-console-update_OAuth" + AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication AuthenticationTypeType = "source-google-search-console-update_Service Account Key Authentication" ) type AuthenticationType struct { - OAuth *SourceGoogleSearchConsoleUpdateOAuth - ServiceAccountKeyAuthentication *SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication + SourceGoogleSearchConsoleUpdateOAuth *SourceGoogleSearchConsoleUpdateOAuth + SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication *SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication Type AuthenticationTypeType } -func CreateAuthenticationTypeOAuth(oAuth SourceGoogleSearchConsoleUpdateOAuth) AuthenticationType { - typ := AuthenticationTypeTypeOAuth +func CreateAuthenticationTypeSourceGoogleSearchConsoleUpdateOAuth(sourceGoogleSearchConsoleUpdateOAuth SourceGoogleSearchConsoleUpdateOAuth) AuthenticationType { + typ := AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateOAuth return AuthenticationType{ - OAuth: &oAuth, - Type: typ, + SourceGoogleSearchConsoleUpdateOAuth: &sourceGoogleSearchConsoleUpdateOAuth, + Type: typ, } } -func CreateAuthenticationTypeServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication) AuthenticationType { - typ := AuthenticationTypeTypeServiceAccountKeyAuthentication +func CreateAuthenticationTypeSourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication(sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication) AuthenticationType { + typ := AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication return AuthenticationType{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication: &sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, + Type: typ, } } func (u *AuthenticationType) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = AuthenticationTypeTypeServiceAccountKeyAuthentication + sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication := new(SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication = sourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication + u.Type = AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication return nil } - oAuth := new(SourceGoogleSearchConsoleUpdateOAuth) - if err := utils.UnmarshalJSON(data, &oAuth, "", true, true); err == nil { - u.OAuth = oAuth - u.Type = AuthenticationTypeTypeOAuth + sourceGoogleSearchConsoleUpdateOAuth := new(SourceGoogleSearchConsoleUpdateOAuth) + if err := utils.UnmarshalJSON(data, &sourceGoogleSearchConsoleUpdateOAuth, "", true, true); err == nil { + u.SourceGoogleSearchConsoleUpdateOAuth = sourceGoogleSearchConsoleUpdateOAuth + u.Type = AuthenticationTypeTypeSourceGoogleSearchConsoleUpdateOAuth return nil } @@ -202,12 +202,12 @@ func (u *AuthenticationType) UnmarshalJSON(data []byte) error { } func (u AuthenticationType) MarshalJSON() ([]byte, error) { - if u.OAuth != nil { - return utils.MarshalJSON(u.OAuth, "", true) + if u.SourceGoogleSearchConsoleUpdateOAuth != nil { + return utils.MarshalJSON(u.SourceGoogleSearchConsoleUpdateOAuth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleSearchConsoleUpdateServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheets.go b/internal/sdk/pkg/models/shared/sourcegooglesheets.go index 23f5d61dd..b7edb7578 100644 --- a/internal/sdk/pkg/models/shared/sourcegooglesheets.go +++ b/internal/sdk/pkg/models/shared/sourcegooglesheets.go @@ -136,48 +136,48 @@ func (o *SourceGoogleSheetsAuthenticateViaGoogleOAuth) GetRefreshToken() string type SourceGoogleSheetsAuthenticationType string const ( - SourceGoogleSheetsAuthenticationTypeAuthenticateViaGoogleOAuth SourceGoogleSheetsAuthenticationType = "AuthenticateViaGoogleOAuth" - SourceGoogleSheetsAuthenticationTypeServiceAccountKeyAuthentication SourceGoogleSheetsAuthenticationType = "ServiceAccountKeyAuthentication" + SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsAuthenticateViaGoogleOAuth SourceGoogleSheetsAuthenticationType = "source-google-sheets_Authenticate via Google (OAuth)" + SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsServiceAccountKeyAuthentication SourceGoogleSheetsAuthenticationType = "source-google-sheets_Service Account Key Authentication" ) type SourceGoogleSheetsAuthentication struct { - AuthenticateViaGoogleOAuth *SourceGoogleSheetsAuthenticateViaGoogleOAuth - ServiceAccountKeyAuthentication *SourceGoogleSheetsServiceAccountKeyAuthentication + SourceGoogleSheetsAuthenticateViaGoogleOAuth *SourceGoogleSheetsAuthenticateViaGoogleOAuth + SourceGoogleSheetsServiceAccountKeyAuthentication *SourceGoogleSheetsServiceAccountKeyAuthentication Type SourceGoogleSheetsAuthenticationType } -func CreateSourceGoogleSheetsAuthenticationAuthenticateViaGoogleOAuth(authenticateViaGoogleOAuth SourceGoogleSheetsAuthenticateViaGoogleOAuth) SourceGoogleSheetsAuthentication { - typ := SourceGoogleSheetsAuthenticationTypeAuthenticateViaGoogleOAuth +func CreateSourceGoogleSheetsAuthenticationSourceGoogleSheetsAuthenticateViaGoogleOAuth(sourceGoogleSheetsAuthenticateViaGoogleOAuth SourceGoogleSheetsAuthenticateViaGoogleOAuth) SourceGoogleSheetsAuthentication { + typ := SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsAuthenticateViaGoogleOAuth return SourceGoogleSheetsAuthentication{ - AuthenticateViaGoogleOAuth: &authenticateViaGoogleOAuth, - Type: typ, + SourceGoogleSheetsAuthenticateViaGoogleOAuth: &sourceGoogleSheetsAuthenticateViaGoogleOAuth, + Type: typ, } } -func CreateSourceGoogleSheetsAuthenticationServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleSheetsServiceAccountKeyAuthentication) SourceGoogleSheetsAuthentication { - typ := SourceGoogleSheetsAuthenticationTypeServiceAccountKeyAuthentication +func CreateSourceGoogleSheetsAuthenticationSourceGoogleSheetsServiceAccountKeyAuthentication(sourceGoogleSheetsServiceAccountKeyAuthentication SourceGoogleSheetsServiceAccountKeyAuthentication) SourceGoogleSheetsAuthentication { + typ := SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsServiceAccountKeyAuthentication return SourceGoogleSheetsAuthentication{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleSheetsServiceAccountKeyAuthentication: &sourceGoogleSheetsServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleSheetsAuthentication) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleSheetsServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleSheetsAuthenticationTypeServiceAccountKeyAuthentication + sourceGoogleSheetsServiceAccountKeyAuthentication := new(SourceGoogleSheetsServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleSheetsServiceAccountKeyAuthentication = sourceGoogleSheetsServiceAccountKeyAuthentication + u.Type = SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsServiceAccountKeyAuthentication return nil } - authenticateViaGoogleOAuth := new(SourceGoogleSheetsAuthenticateViaGoogleOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaGoogleOAuth, "", true, true); err == nil { - u.AuthenticateViaGoogleOAuth = authenticateViaGoogleOAuth - u.Type = SourceGoogleSheetsAuthenticationTypeAuthenticateViaGoogleOAuth + sourceGoogleSheetsAuthenticateViaGoogleOAuth := new(SourceGoogleSheetsAuthenticateViaGoogleOAuth) + if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsAuthenticateViaGoogleOAuth, "", true, true); err == nil { + u.SourceGoogleSheetsAuthenticateViaGoogleOAuth = sourceGoogleSheetsAuthenticateViaGoogleOAuth + u.Type = SourceGoogleSheetsAuthenticationTypeSourceGoogleSheetsAuthenticateViaGoogleOAuth return nil } @@ -185,12 +185,12 @@ func (u *SourceGoogleSheetsAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceGoogleSheetsAuthentication) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaGoogleOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaGoogleOAuth, "", true) + if u.SourceGoogleSheetsAuthenticateViaGoogleOAuth != nil { + return utils.MarshalJSON(u.SourceGoogleSheetsAuthenticateViaGoogleOAuth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleSheetsServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleSheetsServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go b/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go index cdea56759..bf277f4b6 100644 --- a/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go +++ b/internal/sdk/pkg/models/shared/sourcegooglesheetsupdate.go @@ -136,48 +136,48 @@ func (o *SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth) GetRefreshToken() s type SourceGoogleSheetsUpdateAuthenticationType string const ( - SourceGoogleSheetsUpdateAuthenticationTypeAuthenticateViaGoogleOAuth SourceGoogleSheetsUpdateAuthenticationType = "AuthenticateViaGoogleOAuth" - SourceGoogleSheetsUpdateAuthenticationTypeServiceAccountKeyAuthentication SourceGoogleSheetsUpdateAuthenticationType = "ServiceAccountKeyAuthentication" + SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth SourceGoogleSheetsUpdateAuthenticationType = "source-google-sheets-update_Authenticate via Google (OAuth)" + SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateServiceAccountKeyAuthentication SourceGoogleSheetsUpdateAuthenticationType = "source-google-sheets-update_Service Account Key Authentication" ) type SourceGoogleSheetsUpdateAuthentication struct { - AuthenticateViaGoogleOAuth *SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth - ServiceAccountKeyAuthentication *SourceGoogleSheetsUpdateServiceAccountKeyAuthentication + SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth *SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth + SourceGoogleSheetsUpdateServiceAccountKeyAuthentication *SourceGoogleSheetsUpdateServiceAccountKeyAuthentication Type SourceGoogleSheetsUpdateAuthenticationType } -func CreateSourceGoogleSheetsUpdateAuthenticationAuthenticateViaGoogleOAuth(authenticateViaGoogleOAuth SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth) SourceGoogleSheetsUpdateAuthentication { - typ := SourceGoogleSheetsUpdateAuthenticationTypeAuthenticateViaGoogleOAuth +func CreateSourceGoogleSheetsUpdateAuthenticationSourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth(sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth) SourceGoogleSheetsUpdateAuthentication { + typ := SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth return SourceGoogleSheetsUpdateAuthentication{ - AuthenticateViaGoogleOAuth: &authenticateViaGoogleOAuth, - Type: typ, + SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth: &sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth, + Type: typ, } } -func CreateSourceGoogleSheetsUpdateAuthenticationServiceAccountKeyAuthentication(serviceAccountKeyAuthentication SourceGoogleSheetsUpdateServiceAccountKeyAuthentication) SourceGoogleSheetsUpdateAuthentication { - typ := SourceGoogleSheetsUpdateAuthenticationTypeServiceAccountKeyAuthentication +func CreateSourceGoogleSheetsUpdateAuthenticationSourceGoogleSheetsUpdateServiceAccountKeyAuthentication(sourceGoogleSheetsUpdateServiceAccountKeyAuthentication SourceGoogleSheetsUpdateServiceAccountKeyAuthentication) SourceGoogleSheetsUpdateAuthentication { + typ := SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateServiceAccountKeyAuthentication return SourceGoogleSheetsUpdateAuthentication{ - ServiceAccountKeyAuthentication: &serviceAccountKeyAuthentication, - Type: typ, + SourceGoogleSheetsUpdateServiceAccountKeyAuthentication: &sourceGoogleSheetsUpdateServiceAccountKeyAuthentication, + Type: typ, } } func (u *SourceGoogleSheetsUpdateAuthentication) UnmarshalJSON(data []byte) error { - serviceAccountKeyAuthentication := new(SourceGoogleSheetsUpdateServiceAccountKeyAuthentication) - if err := utils.UnmarshalJSON(data, &serviceAccountKeyAuthentication, "", true, true); err == nil { - u.ServiceAccountKeyAuthentication = serviceAccountKeyAuthentication - u.Type = SourceGoogleSheetsUpdateAuthenticationTypeServiceAccountKeyAuthentication + sourceGoogleSheetsUpdateServiceAccountKeyAuthentication := new(SourceGoogleSheetsUpdateServiceAccountKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsUpdateServiceAccountKeyAuthentication, "", true, true); err == nil { + u.SourceGoogleSheetsUpdateServiceAccountKeyAuthentication = sourceGoogleSheetsUpdateServiceAccountKeyAuthentication + u.Type = SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateServiceAccountKeyAuthentication return nil } - authenticateViaGoogleOAuth := new(SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaGoogleOAuth, "", true, true); err == nil { - u.AuthenticateViaGoogleOAuth = authenticateViaGoogleOAuth - u.Type = SourceGoogleSheetsUpdateAuthenticationTypeAuthenticateViaGoogleOAuth + sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth := new(SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth) + if err := utils.UnmarshalJSON(data, &sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth, "", true, true); err == nil { + u.SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth = sourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth + u.Type = SourceGoogleSheetsUpdateAuthenticationTypeSourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth return nil } @@ -185,12 +185,12 @@ func (u *SourceGoogleSheetsUpdateAuthentication) UnmarshalJSON(data []byte) erro } func (u SourceGoogleSheetsUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaGoogleOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaGoogleOAuth, "", true) + if u.SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth != nil { + return utils.MarshalJSON(u.SourceGoogleSheetsUpdateAuthenticateViaGoogleOAuth, "", true) } - if u.ServiceAccountKeyAuthentication != nil { - return utils.MarshalJSON(u.ServiceAccountKeyAuthentication, "", true) + if u.SourceGoogleSheetsUpdateServiceAccountKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceGoogleSheetsUpdateServiceAccountKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceharvest.go b/internal/sdk/pkg/models/shared/sourceharvest.go index de96d329b..b20701ed3 100644 --- a/internal/sdk/pkg/models/shared/sourceharvest.go +++ b/internal/sdk/pkg/models/shared/sourceharvest.go @@ -153,48 +153,48 @@ func (o *SourceHarvestAuthenticateViaHarvestOAuth) GetRefreshToken() string { type SourceHarvestAuthenticationMechanismType string const ( - SourceHarvestAuthenticationMechanismTypeAuthenticateViaHarvestOAuth SourceHarvestAuthenticationMechanismType = "AuthenticateViaHarvestOAuth" - SourceHarvestAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken SourceHarvestAuthenticationMechanismType = "AuthenticateWithPersonalAccessToken" + SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateViaHarvestOAuth SourceHarvestAuthenticationMechanismType = "source-harvest_Authenticate via Harvest (OAuth)" + SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateWithPersonalAccessToken SourceHarvestAuthenticationMechanismType = "source-harvest_Authenticate with Personal Access Token" ) type SourceHarvestAuthenticationMechanism struct { - AuthenticateViaHarvestOAuth *SourceHarvestAuthenticateViaHarvestOAuth - AuthenticateWithPersonalAccessToken *SourceHarvestAuthenticateWithPersonalAccessToken + SourceHarvestAuthenticateViaHarvestOAuth *SourceHarvestAuthenticateViaHarvestOAuth + SourceHarvestAuthenticateWithPersonalAccessToken *SourceHarvestAuthenticateWithPersonalAccessToken Type SourceHarvestAuthenticationMechanismType } -func CreateSourceHarvestAuthenticationMechanismAuthenticateViaHarvestOAuth(authenticateViaHarvestOAuth SourceHarvestAuthenticateViaHarvestOAuth) SourceHarvestAuthenticationMechanism { - typ := SourceHarvestAuthenticationMechanismTypeAuthenticateViaHarvestOAuth +func CreateSourceHarvestAuthenticationMechanismSourceHarvestAuthenticateViaHarvestOAuth(sourceHarvestAuthenticateViaHarvestOAuth SourceHarvestAuthenticateViaHarvestOAuth) SourceHarvestAuthenticationMechanism { + typ := SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateViaHarvestOAuth return SourceHarvestAuthenticationMechanism{ - AuthenticateViaHarvestOAuth: &authenticateViaHarvestOAuth, - Type: typ, + SourceHarvestAuthenticateViaHarvestOAuth: &sourceHarvestAuthenticateViaHarvestOAuth, + Type: typ, } } -func CreateSourceHarvestAuthenticationMechanismAuthenticateWithPersonalAccessToken(authenticateWithPersonalAccessToken SourceHarvestAuthenticateWithPersonalAccessToken) SourceHarvestAuthenticationMechanism { - typ := SourceHarvestAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken +func CreateSourceHarvestAuthenticationMechanismSourceHarvestAuthenticateWithPersonalAccessToken(sourceHarvestAuthenticateWithPersonalAccessToken SourceHarvestAuthenticateWithPersonalAccessToken) SourceHarvestAuthenticationMechanism { + typ := SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateWithPersonalAccessToken return SourceHarvestAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: &authenticateWithPersonalAccessToken, - Type: typ, + SourceHarvestAuthenticateWithPersonalAccessToken: &sourceHarvestAuthenticateWithPersonalAccessToken, + Type: typ, } } func (u *SourceHarvestAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateWithPersonalAccessToken := new(SourceHarvestAuthenticateWithPersonalAccessToken) - if err := utils.UnmarshalJSON(data, &authenticateWithPersonalAccessToken, "", true, true); err == nil { - u.AuthenticateWithPersonalAccessToken = authenticateWithPersonalAccessToken - u.Type = SourceHarvestAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken + sourceHarvestAuthenticateWithPersonalAccessToken := new(SourceHarvestAuthenticateWithPersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceHarvestAuthenticateWithPersonalAccessToken, "", true, true); err == nil { + u.SourceHarvestAuthenticateWithPersonalAccessToken = sourceHarvestAuthenticateWithPersonalAccessToken + u.Type = SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateWithPersonalAccessToken return nil } - authenticateViaHarvestOAuth := new(SourceHarvestAuthenticateViaHarvestOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaHarvestOAuth, "", true, true); err == nil { - u.AuthenticateViaHarvestOAuth = authenticateViaHarvestOAuth - u.Type = SourceHarvestAuthenticationMechanismTypeAuthenticateViaHarvestOAuth + sourceHarvestAuthenticateViaHarvestOAuth := new(SourceHarvestAuthenticateViaHarvestOAuth) + if err := utils.UnmarshalJSON(data, &sourceHarvestAuthenticateViaHarvestOAuth, "", true, true); err == nil { + u.SourceHarvestAuthenticateViaHarvestOAuth = sourceHarvestAuthenticateViaHarvestOAuth + u.Type = SourceHarvestAuthenticationMechanismTypeSourceHarvestAuthenticateViaHarvestOAuth return nil } @@ -202,12 +202,12 @@ func (u *SourceHarvestAuthenticationMechanism) UnmarshalJSON(data []byte) error } func (u SourceHarvestAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaHarvestOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaHarvestOAuth, "", true) + if u.SourceHarvestAuthenticateViaHarvestOAuth != nil { + return utils.MarshalJSON(u.SourceHarvestAuthenticateViaHarvestOAuth, "", true) } - if u.AuthenticateWithPersonalAccessToken != nil { - return utils.MarshalJSON(u.AuthenticateWithPersonalAccessToken, "", true) + if u.SourceHarvestAuthenticateWithPersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceHarvestAuthenticateWithPersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceharvestupdate.go b/internal/sdk/pkg/models/shared/sourceharvestupdate.go index 39bff1525..3c046935e 100644 --- a/internal/sdk/pkg/models/shared/sourceharvestupdate.go +++ b/internal/sdk/pkg/models/shared/sourceharvestupdate.go @@ -153,13 +153,13 @@ func (o *AuthenticateViaHarvestOAuth) GetRefreshToken() string { type SourceHarvestUpdateAuthenticationMechanismType string const ( - SourceHarvestUpdateAuthenticationMechanismTypeAuthenticateViaHarvestOAuth SourceHarvestUpdateAuthenticationMechanismType = "AuthenticateViaHarvestOAuth" - SourceHarvestUpdateAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken SourceHarvestUpdateAuthenticationMechanismType = "AuthenticateWithPersonalAccessToken" + SourceHarvestUpdateAuthenticationMechanismTypeAuthenticateViaHarvestOAuth SourceHarvestUpdateAuthenticationMechanismType = "Authenticate via Harvest (OAuth)" + SourceHarvestUpdateAuthenticationMechanismTypeSourceHarvestUpdateAuthenticateWithPersonalAccessToken SourceHarvestUpdateAuthenticationMechanismType = "source-harvest-update_Authenticate with Personal Access Token" ) type SourceHarvestUpdateAuthenticationMechanism struct { - AuthenticateViaHarvestOAuth *AuthenticateViaHarvestOAuth - AuthenticateWithPersonalAccessToken *SourceHarvestUpdateAuthenticateWithPersonalAccessToken + AuthenticateViaHarvestOAuth *AuthenticateViaHarvestOAuth + SourceHarvestUpdateAuthenticateWithPersonalAccessToken *SourceHarvestUpdateAuthenticateWithPersonalAccessToken Type SourceHarvestUpdateAuthenticationMechanismType } @@ -173,21 +173,21 @@ func CreateSourceHarvestUpdateAuthenticationMechanismAuthenticateViaHarvestOAuth } } -func CreateSourceHarvestUpdateAuthenticationMechanismAuthenticateWithPersonalAccessToken(authenticateWithPersonalAccessToken SourceHarvestUpdateAuthenticateWithPersonalAccessToken) SourceHarvestUpdateAuthenticationMechanism { - typ := SourceHarvestUpdateAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken +func CreateSourceHarvestUpdateAuthenticationMechanismSourceHarvestUpdateAuthenticateWithPersonalAccessToken(sourceHarvestUpdateAuthenticateWithPersonalAccessToken SourceHarvestUpdateAuthenticateWithPersonalAccessToken) SourceHarvestUpdateAuthenticationMechanism { + typ := SourceHarvestUpdateAuthenticationMechanismTypeSourceHarvestUpdateAuthenticateWithPersonalAccessToken return SourceHarvestUpdateAuthenticationMechanism{ - AuthenticateWithPersonalAccessToken: &authenticateWithPersonalAccessToken, - Type: typ, + SourceHarvestUpdateAuthenticateWithPersonalAccessToken: &sourceHarvestUpdateAuthenticateWithPersonalAccessToken, + Type: typ, } } func (u *SourceHarvestUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateWithPersonalAccessToken := new(SourceHarvestUpdateAuthenticateWithPersonalAccessToken) - if err := utils.UnmarshalJSON(data, &authenticateWithPersonalAccessToken, "", true, true); err == nil { - u.AuthenticateWithPersonalAccessToken = authenticateWithPersonalAccessToken - u.Type = SourceHarvestUpdateAuthenticationMechanismTypeAuthenticateWithPersonalAccessToken + sourceHarvestUpdateAuthenticateWithPersonalAccessToken := new(SourceHarvestUpdateAuthenticateWithPersonalAccessToken) + if err := utils.UnmarshalJSON(data, &sourceHarvestUpdateAuthenticateWithPersonalAccessToken, "", true, true); err == nil { + u.SourceHarvestUpdateAuthenticateWithPersonalAccessToken = sourceHarvestUpdateAuthenticateWithPersonalAccessToken + u.Type = SourceHarvestUpdateAuthenticationMechanismTypeSourceHarvestUpdateAuthenticateWithPersonalAccessToken return nil } @@ -206,8 +206,8 @@ func (u SourceHarvestUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error return utils.MarshalJSON(u.AuthenticateViaHarvestOAuth, "", true) } - if u.AuthenticateWithPersonalAccessToken != nil { - return utils.MarshalJSON(u.AuthenticateWithPersonalAccessToken, "", true) + if u.SourceHarvestUpdateAuthenticateWithPersonalAccessToken != nil { + return utils.MarshalJSON(u.SourceHarvestUpdateAuthenticateWithPersonalAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcehubspot.go b/internal/sdk/pkg/models/shared/sourcehubspot.go index 498c2d572..7cbebce5c 100644 --- a/internal/sdk/pkg/models/shared/sourcehubspot.go +++ b/internal/sdk/pkg/models/shared/sourcehubspot.go @@ -141,48 +141,48 @@ func (o *SourceHubspotOAuth) GetRefreshToken() string { type SourceHubspotAuthenticationType string const ( - SourceHubspotAuthenticationTypeOAuth SourceHubspotAuthenticationType = "OAuth" - SourceHubspotAuthenticationTypePrivateApp SourceHubspotAuthenticationType = "PrivateApp" + SourceHubspotAuthenticationTypeSourceHubspotOAuth SourceHubspotAuthenticationType = "source-hubspot_OAuth" + SourceHubspotAuthenticationTypeSourceHubspotPrivateApp SourceHubspotAuthenticationType = "source-hubspot_Private App" ) type SourceHubspotAuthentication struct { - OAuth *SourceHubspotOAuth - PrivateApp *SourceHubspotPrivateApp + SourceHubspotOAuth *SourceHubspotOAuth + SourceHubspotPrivateApp *SourceHubspotPrivateApp Type SourceHubspotAuthenticationType } -func CreateSourceHubspotAuthenticationOAuth(oAuth SourceHubspotOAuth) SourceHubspotAuthentication { - typ := SourceHubspotAuthenticationTypeOAuth +func CreateSourceHubspotAuthenticationSourceHubspotOAuth(sourceHubspotOAuth SourceHubspotOAuth) SourceHubspotAuthentication { + typ := SourceHubspotAuthenticationTypeSourceHubspotOAuth return SourceHubspotAuthentication{ - OAuth: &oAuth, - Type: typ, + SourceHubspotOAuth: &sourceHubspotOAuth, + Type: typ, } } -func CreateSourceHubspotAuthenticationPrivateApp(privateApp SourceHubspotPrivateApp) SourceHubspotAuthentication { - typ := SourceHubspotAuthenticationTypePrivateApp +func CreateSourceHubspotAuthenticationSourceHubspotPrivateApp(sourceHubspotPrivateApp SourceHubspotPrivateApp) SourceHubspotAuthentication { + typ := SourceHubspotAuthenticationTypeSourceHubspotPrivateApp return SourceHubspotAuthentication{ - PrivateApp: &privateApp, - Type: typ, + SourceHubspotPrivateApp: &sourceHubspotPrivateApp, + Type: typ, } } func (u *SourceHubspotAuthentication) UnmarshalJSON(data []byte) error { - privateApp := new(SourceHubspotPrivateApp) - if err := utils.UnmarshalJSON(data, &privateApp, "", true, true); err == nil { - u.PrivateApp = privateApp - u.Type = SourceHubspotAuthenticationTypePrivateApp + sourceHubspotPrivateApp := new(SourceHubspotPrivateApp) + if err := utils.UnmarshalJSON(data, &sourceHubspotPrivateApp, "", true, true); err == nil { + u.SourceHubspotPrivateApp = sourceHubspotPrivateApp + u.Type = SourceHubspotAuthenticationTypeSourceHubspotPrivateApp return nil } - oAuth := new(SourceHubspotOAuth) - if err := utils.UnmarshalJSON(data, &oAuth, "", true, true); err == nil { - u.OAuth = oAuth - u.Type = SourceHubspotAuthenticationTypeOAuth + sourceHubspotOAuth := new(SourceHubspotOAuth) + if err := utils.UnmarshalJSON(data, &sourceHubspotOAuth, "", true, true); err == nil { + u.SourceHubspotOAuth = sourceHubspotOAuth + u.Type = SourceHubspotAuthenticationTypeSourceHubspotOAuth return nil } @@ -190,12 +190,12 @@ func (u *SourceHubspotAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceHubspotAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth != nil { - return utils.MarshalJSON(u.OAuth, "", true) + if u.SourceHubspotOAuth != nil { + return utils.MarshalJSON(u.SourceHubspotOAuth, "", true) } - if u.PrivateApp != nil { - return utils.MarshalJSON(u.PrivateApp, "", true) + if u.SourceHubspotPrivateApp != nil { + return utils.MarshalJSON(u.SourceHubspotPrivateApp, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcehubspotupdate.go b/internal/sdk/pkg/models/shared/sourcehubspotupdate.go index a2b26f5cf..be7147549 100644 --- a/internal/sdk/pkg/models/shared/sourcehubspotupdate.go +++ b/internal/sdk/pkg/models/shared/sourcehubspotupdate.go @@ -141,23 +141,23 @@ func (o *SourceHubspotUpdateOAuth) GetRefreshToken() string { type SourceHubspotUpdateAuthenticationType string const ( - SourceHubspotUpdateAuthenticationTypeOAuth SourceHubspotUpdateAuthenticationType = "OAuth" - SourceHubspotUpdateAuthenticationTypePrivateApp SourceHubspotUpdateAuthenticationType = "PrivateApp" + SourceHubspotUpdateAuthenticationTypeSourceHubspotUpdateOAuth SourceHubspotUpdateAuthenticationType = "source-hubspot-update_OAuth" + SourceHubspotUpdateAuthenticationTypePrivateApp SourceHubspotUpdateAuthenticationType = "Private App" ) type SourceHubspotUpdateAuthentication struct { - OAuth *SourceHubspotUpdateOAuth - PrivateApp *PrivateApp + SourceHubspotUpdateOAuth *SourceHubspotUpdateOAuth + PrivateApp *PrivateApp Type SourceHubspotUpdateAuthenticationType } -func CreateSourceHubspotUpdateAuthenticationOAuth(oAuth SourceHubspotUpdateOAuth) SourceHubspotUpdateAuthentication { - typ := SourceHubspotUpdateAuthenticationTypeOAuth +func CreateSourceHubspotUpdateAuthenticationSourceHubspotUpdateOAuth(sourceHubspotUpdateOAuth SourceHubspotUpdateOAuth) SourceHubspotUpdateAuthentication { + typ := SourceHubspotUpdateAuthenticationTypeSourceHubspotUpdateOAuth return SourceHubspotUpdateAuthentication{ - OAuth: &oAuth, - Type: typ, + SourceHubspotUpdateOAuth: &sourceHubspotUpdateOAuth, + Type: typ, } } @@ -179,10 +179,10 @@ func (u *SourceHubspotUpdateAuthentication) UnmarshalJSON(data []byte) error { return nil } - oAuth := new(SourceHubspotUpdateOAuth) - if err := utils.UnmarshalJSON(data, &oAuth, "", true, true); err == nil { - u.OAuth = oAuth - u.Type = SourceHubspotUpdateAuthenticationTypeOAuth + sourceHubspotUpdateOAuth := new(SourceHubspotUpdateOAuth) + if err := utils.UnmarshalJSON(data, &sourceHubspotUpdateOAuth, "", true, true); err == nil { + u.SourceHubspotUpdateOAuth = sourceHubspotUpdateOAuth + u.Type = SourceHubspotUpdateAuthenticationTypeSourceHubspotUpdateOAuth return nil } @@ -190,8 +190,8 @@ func (u *SourceHubspotUpdateAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceHubspotUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth != nil { - return utils.MarshalJSON(u.OAuth, "", true) + if u.SourceHubspotUpdateOAuth != nil { + return utils.MarshalJSON(u.SourceHubspotUpdateOAuth, "", true) } if u.PrivateApp != nil { diff --git a/internal/sdk/pkg/models/shared/sourceleverhiring.go b/internal/sdk/pkg/models/shared/sourceleverhiring.go index 632143652..9860b8e32 100644 --- a/internal/sdk/pkg/models/shared/sourceleverhiring.go +++ b/internal/sdk/pkg/models/shared/sourceleverhiring.go @@ -136,48 +136,48 @@ func (o *SourceLeverHiringAuthenticateViaLeverOAuth) GetRefreshToken() string { type SourceLeverHiringAuthenticationMechanismType string const ( - SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverOAuth SourceLeverHiringAuthenticationMechanismType = "AuthenticateViaLeverOAuth" - SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverAPIKey SourceLeverHiringAuthenticationMechanismType = "AuthenticateViaLeverAPIKey" + SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverOAuth SourceLeverHiringAuthenticationMechanismType = "source-lever-hiring_Authenticate via Lever (OAuth)" + SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverAPIKey SourceLeverHiringAuthenticationMechanismType = "source-lever-hiring_Authenticate via Lever (Api Key)" ) type SourceLeverHiringAuthenticationMechanism struct { - AuthenticateViaLeverOAuth *SourceLeverHiringAuthenticateViaLeverOAuth - AuthenticateViaLeverAPIKey *SourceLeverHiringAuthenticateViaLeverAPIKey + SourceLeverHiringAuthenticateViaLeverOAuth *SourceLeverHiringAuthenticateViaLeverOAuth + SourceLeverHiringAuthenticateViaLeverAPIKey *SourceLeverHiringAuthenticateViaLeverAPIKey Type SourceLeverHiringAuthenticationMechanismType } -func CreateSourceLeverHiringAuthenticationMechanismAuthenticateViaLeverOAuth(authenticateViaLeverOAuth SourceLeverHiringAuthenticateViaLeverOAuth) SourceLeverHiringAuthenticationMechanism { - typ := SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverOAuth +func CreateSourceLeverHiringAuthenticationMechanismSourceLeverHiringAuthenticateViaLeverOAuth(sourceLeverHiringAuthenticateViaLeverOAuth SourceLeverHiringAuthenticateViaLeverOAuth) SourceLeverHiringAuthenticationMechanism { + typ := SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverOAuth return SourceLeverHiringAuthenticationMechanism{ - AuthenticateViaLeverOAuth: &authenticateViaLeverOAuth, - Type: typ, + SourceLeverHiringAuthenticateViaLeverOAuth: &sourceLeverHiringAuthenticateViaLeverOAuth, + Type: typ, } } -func CreateSourceLeverHiringAuthenticationMechanismAuthenticateViaLeverAPIKey(authenticateViaLeverAPIKey SourceLeverHiringAuthenticateViaLeverAPIKey) SourceLeverHiringAuthenticationMechanism { - typ := SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverAPIKey +func CreateSourceLeverHiringAuthenticationMechanismSourceLeverHiringAuthenticateViaLeverAPIKey(sourceLeverHiringAuthenticateViaLeverAPIKey SourceLeverHiringAuthenticateViaLeverAPIKey) SourceLeverHiringAuthenticationMechanism { + typ := SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverAPIKey return SourceLeverHiringAuthenticationMechanism{ - AuthenticateViaLeverAPIKey: &authenticateViaLeverAPIKey, - Type: typ, + SourceLeverHiringAuthenticateViaLeverAPIKey: &sourceLeverHiringAuthenticateViaLeverAPIKey, + Type: typ, } } func (u *SourceLeverHiringAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateViaLeverAPIKey := new(SourceLeverHiringAuthenticateViaLeverAPIKey) - if err := utils.UnmarshalJSON(data, &authenticateViaLeverAPIKey, "", true, true); err == nil { - u.AuthenticateViaLeverAPIKey = authenticateViaLeverAPIKey - u.Type = SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverAPIKey + sourceLeverHiringAuthenticateViaLeverAPIKey := new(SourceLeverHiringAuthenticateViaLeverAPIKey) + if err := utils.UnmarshalJSON(data, &sourceLeverHiringAuthenticateViaLeverAPIKey, "", true, true); err == nil { + u.SourceLeverHiringAuthenticateViaLeverAPIKey = sourceLeverHiringAuthenticateViaLeverAPIKey + u.Type = SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverAPIKey return nil } - authenticateViaLeverOAuth := new(SourceLeverHiringAuthenticateViaLeverOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaLeverOAuth, "", true, true); err == nil { - u.AuthenticateViaLeverOAuth = authenticateViaLeverOAuth - u.Type = SourceLeverHiringAuthenticationMechanismTypeAuthenticateViaLeverOAuth + sourceLeverHiringAuthenticateViaLeverOAuth := new(SourceLeverHiringAuthenticateViaLeverOAuth) + if err := utils.UnmarshalJSON(data, &sourceLeverHiringAuthenticateViaLeverOAuth, "", true, true); err == nil { + u.SourceLeverHiringAuthenticateViaLeverOAuth = sourceLeverHiringAuthenticateViaLeverOAuth + u.Type = SourceLeverHiringAuthenticationMechanismTypeSourceLeverHiringAuthenticateViaLeverOAuth return nil } @@ -185,12 +185,12 @@ func (u *SourceLeverHiringAuthenticationMechanism) UnmarshalJSON(data []byte) er } func (u SourceLeverHiringAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaLeverOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaLeverOAuth, "", true) + if u.SourceLeverHiringAuthenticateViaLeverOAuth != nil { + return utils.MarshalJSON(u.SourceLeverHiringAuthenticateViaLeverOAuth, "", true) } - if u.AuthenticateViaLeverAPIKey != nil { - return utils.MarshalJSON(u.AuthenticateViaLeverAPIKey, "", true) + if u.SourceLeverHiringAuthenticateViaLeverAPIKey != nil { + return utils.MarshalJSON(u.SourceLeverHiringAuthenticateViaLeverAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go b/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go index 52e856bc3..8b6d728a8 100644 --- a/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go +++ b/internal/sdk/pkg/models/shared/sourceleverhiringupdate.go @@ -136,8 +136,8 @@ func (o *AuthenticateViaLeverOAuth) GetRefreshToken() string { type SourceLeverHiringUpdateAuthenticationMechanismType string const ( - SourceLeverHiringUpdateAuthenticationMechanismTypeAuthenticateViaLeverOAuth SourceLeverHiringUpdateAuthenticationMechanismType = "AuthenticateViaLeverOAuth" - SourceLeverHiringUpdateAuthenticationMechanismTypeAuthenticateViaLeverAPIKey SourceLeverHiringUpdateAuthenticationMechanismType = "AuthenticateViaLeverAPIKey" + SourceLeverHiringUpdateAuthenticationMechanismTypeAuthenticateViaLeverOAuth SourceLeverHiringUpdateAuthenticationMechanismType = "Authenticate via Lever (OAuth)" + SourceLeverHiringUpdateAuthenticationMechanismTypeAuthenticateViaLeverAPIKey SourceLeverHiringUpdateAuthenticationMechanismType = "Authenticate via Lever (Api Key)" ) type SourceLeverHiringUpdateAuthenticationMechanism struct { diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinads.go b/internal/sdk/pkg/models/shared/sourcelinkedinads.go index 408fb3b7c..f2a632511 100644 --- a/internal/sdk/pkg/models/shared/sourcelinkedinads.go +++ b/internal/sdk/pkg/models/shared/sourcelinkedinads.go @@ -285,48 +285,48 @@ func (o *SourceLinkedinAdsOAuth20) GetRefreshToken() string { type SourceLinkedinAdsAuthenticationType string const ( - SourceLinkedinAdsAuthenticationTypeOAuth20 SourceLinkedinAdsAuthenticationType = "OAuth20" - SourceLinkedinAdsAuthenticationTypeAccessToken SourceLinkedinAdsAuthenticationType = "AccessToken" + SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsOAuth20 SourceLinkedinAdsAuthenticationType = "source-linkedin-ads_OAuth2.0" + SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsAccessToken SourceLinkedinAdsAuthenticationType = "source-linkedin-ads_Access Token" ) type SourceLinkedinAdsAuthentication struct { - OAuth20 *SourceLinkedinAdsOAuth20 - AccessToken *SourceLinkedinAdsAccessToken + SourceLinkedinAdsOAuth20 *SourceLinkedinAdsOAuth20 + SourceLinkedinAdsAccessToken *SourceLinkedinAdsAccessToken Type SourceLinkedinAdsAuthenticationType } -func CreateSourceLinkedinAdsAuthenticationOAuth20(oAuth20 SourceLinkedinAdsOAuth20) SourceLinkedinAdsAuthentication { - typ := SourceLinkedinAdsAuthenticationTypeOAuth20 +func CreateSourceLinkedinAdsAuthenticationSourceLinkedinAdsOAuth20(sourceLinkedinAdsOAuth20 SourceLinkedinAdsOAuth20) SourceLinkedinAdsAuthentication { + typ := SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsOAuth20 return SourceLinkedinAdsAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceLinkedinAdsOAuth20: &sourceLinkedinAdsOAuth20, + Type: typ, } } -func CreateSourceLinkedinAdsAuthenticationAccessToken(accessToken SourceLinkedinAdsAccessToken) SourceLinkedinAdsAuthentication { - typ := SourceLinkedinAdsAuthenticationTypeAccessToken +func CreateSourceLinkedinAdsAuthenticationSourceLinkedinAdsAccessToken(sourceLinkedinAdsAccessToken SourceLinkedinAdsAccessToken) SourceLinkedinAdsAuthentication { + typ := SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsAccessToken return SourceLinkedinAdsAuthentication{ - AccessToken: &accessToken, - Type: typ, + SourceLinkedinAdsAccessToken: &sourceLinkedinAdsAccessToken, + Type: typ, } } func (u *SourceLinkedinAdsAuthentication) UnmarshalJSON(data []byte) error { - accessToken := new(SourceLinkedinAdsAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceLinkedinAdsAuthenticationTypeAccessToken + sourceLinkedinAdsAccessToken := new(SourceLinkedinAdsAccessToken) + if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsAccessToken, "", true, true); err == nil { + u.SourceLinkedinAdsAccessToken = sourceLinkedinAdsAccessToken + u.Type = SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsAccessToken return nil } - oAuth20 := new(SourceLinkedinAdsOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceLinkedinAdsAuthenticationTypeOAuth20 + sourceLinkedinAdsOAuth20 := new(SourceLinkedinAdsOAuth20) + if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsOAuth20, "", true, true); err == nil { + u.SourceLinkedinAdsOAuth20 = sourceLinkedinAdsOAuth20 + u.Type = SourceLinkedinAdsAuthenticationTypeSourceLinkedinAdsOAuth20 return nil } @@ -334,12 +334,12 @@ func (u *SourceLinkedinAdsAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceLinkedinAdsAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceLinkedinAdsOAuth20 != nil { + return utils.MarshalJSON(u.SourceLinkedinAdsOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceLinkedinAdsAccessToken != nil { + return utils.MarshalJSON(u.SourceLinkedinAdsAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go b/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go index 4735c6b5c..014650c37 100644 --- a/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go +++ b/internal/sdk/pkg/models/shared/sourcelinkedinadsupdate.go @@ -285,23 +285,23 @@ func (o *SourceLinkedinAdsUpdateOAuth20) GetRefreshToken() string { type SourceLinkedinAdsUpdateAuthenticationType string const ( - SourceLinkedinAdsUpdateAuthenticationTypeOAuth20 SourceLinkedinAdsUpdateAuthenticationType = "OAuth20" - SourceLinkedinAdsUpdateAuthenticationTypeAccessToken SourceLinkedinAdsUpdateAuthenticationType = "AccessToken" + SourceLinkedinAdsUpdateAuthenticationTypeSourceLinkedinAdsUpdateOAuth20 SourceLinkedinAdsUpdateAuthenticationType = "source-linkedin-ads-update_OAuth2.0" + SourceLinkedinAdsUpdateAuthenticationTypeAccessToken SourceLinkedinAdsUpdateAuthenticationType = "Access Token" ) type SourceLinkedinAdsUpdateAuthentication struct { - OAuth20 *SourceLinkedinAdsUpdateOAuth20 - AccessToken *AccessToken + SourceLinkedinAdsUpdateOAuth20 *SourceLinkedinAdsUpdateOAuth20 + AccessToken *AccessToken Type SourceLinkedinAdsUpdateAuthenticationType } -func CreateSourceLinkedinAdsUpdateAuthenticationOAuth20(oAuth20 SourceLinkedinAdsUpdateOAuth20) SourceLinkedinAdsUpdateAuthentication { - typ := SourceLinkedinAdsUpdateAuthenticationTypeOAuth20 +func CreateSourceLinkedinAdsUpdateAuthenticationSourceLinkedinAdsUpdateOAuth20(sourceLinkedinAdsUpdateOAuth20 SourceLinkedinAdsUpdateOAuth20) SourceLinkedinAdsUpdateAuthentication { + typ := SourceLinkedinAdsUpdateAuthenticationTypeSourceLinkedinAdsUpdateOAuth20 return SourceLinkedinAdsUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceLinkedinAdsUpdateOAuth20: &sourceLinkedinAdsUpdateOAuth20, + Type: typ, } } @@ -323,10 +323,10 @@ func (u *SourceLinkedinAdsUpdateAuthentication) UnmarshalJSON(data []byte) error return nil } - oAuth20 := new(SourceLinkedinAdsUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceLinkedinAdsUpdateAuthenticationTypeOAuth20 + sourceLinkedinAdsUpdateOAuth20 := new(SourceLinkedinAdsUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceLinkedinAdsUpdateOAuth20, "", true, true); err == nil { + u.SourceLinkedinAdsUpdateOAuth20 = sourceLinkedinAdsUpdateOAuth20 + u.Type = SourceLinkedinAdsUpdateAuthenticationTypeSourceLinkedinAdsUpdateOAuth20 return nil } @@ -334,8 +334,8 @@ func (u *SourceLinkedinAdsUpdateAuthentication) UnmarshalJSON(data []byte) error } func (u SourceLinkedinAdsUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceLinkedinAdsUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceLinkedinAdsUpdateOAuth20, "", true) } if u.AccessToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpages.go b/internal/sdk/pkg/models/shared/sourcelinkedinpages.go index 2fb3bafe7..ef707a058 100644 --- a/internal/sdk/pkg/models/shared/sourcelinkedinpages.go +++ b/internal/sdk/pkg/models/shared/sourcelinkedinpages.go @@ -134,48 +134,48 @@ func (o *SourceLinkedinPagesOAuth20) GetRefreshToken() string { type SourceLinkedinPagesAuthenticationType string const ( - SourceLinkedinPagesAuthenticationTypeOAuth20 SourceLinkedinPagesAuthenticationType = "OAuth20" - SourceLinkedinPagesAuthenticationTypeAccessToken SourceLinkedinPagesAuthenticationType = "AccessToken" + SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesOAuth20 SourceLinkedinPagesAuthenticationType = "source-linkedin-pages_OAuth2.0" + SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesAccessToken SourceLinkedinPagesAuthenticationType = "source-linkedin-pages_Access token" ) type SourceLinkedinPagesAuthentication struct { - OAuth20 *SourceLinkedinPagesOAuth20 - AccessToken *SourceLinkedinPagesAccessToken + SourceLinkedinPagesOAuth20 *SourceLinkedinPagesOAuth20 + SourceLinkedinPagesAccessToken *SourceLinkedinPagesAccessToken Type SourceLinkedinPagesAuthenticationType } -func CreateSourceLinkedinPagesAuthenticationOAuth20(oAuth20 SourceLinkedinPagesOAuth20) SourceLinkedinPagesAuthentication { - typ := SourceLinkedinPagesAuthenticationTypeOAuth20 +func CreateSourceLinkedinPagesAuthenticationSourceLinkedinPagesOAuth20(sourceLinkedinPagesOAuth20 SourceLinkedinPagesOAuth20) SourceLinkedinPagesAuthentication { + typ := SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesOAuth20 return SourceLinkedinPagesAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceLinkedinPagesOAuth20: &sourceLinkedinPagesOAuth20, + Type: typ, } } -func CreateSourceLinkedinPagesAuthenticationAccessToken(accessToken SourceLinkedinPagesAccessToken) SourceLinkedinPagesAuthentication { - typ := SourceLinkedinPagesAuthenticationTypeAccessToken +func CreateSourceLinkedinPagesAuthenticationSourceLinkedinPagesAccessToken(sourceLinkedinPagesAccessToken SourceLinkedinPagesAccessToken) SourceLinkedinPagesAuthentication { + typ := SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesAccessToken return SourceLinkedinPagesAuthentication{ - AccessToken: &accessToken, - Type: typ, + SourceLinkedinPagesAccessToken: &sourceLinkedinPagesAccessToken, + Type: typ, } } func (u *SourceLinkedinPagesAuthentication) UnmarshalJSON(data []byte) error { - accessToken := new(SourceLinkedinPagesAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceLinkedinPagesAuthenticationTypeAccessToken + sourceLinkedinPagesAccessToken := new(SourceLinkedinPagesAccessToken) + if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesAccessToken, "", true, true); err == nil { + u.SourceLinkedinPagesAccessToken = sourceLinkedinPagesAccessToken + u.Type = SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesAccessToken return nil } - oAuth20 := new(SourceLinkedinPagesOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceLinkedinPagesAuthenticationTypeOAuth20 + sourceLinkedinPagesOAuth20 := new(SourceLinkedinPagesOAuth20) + if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesOAuth20, "", true, true); err == nil { + u.SourceLinkedinPagesOAuth20 = sourceLinkedinPagesOAuth20 + u.Type = SourceLinkedinPagesAuthenticationTypeSourceLinkedinPagesOAuth20 return nil } @@ -183,12 +183,12 @@ func (u *SourceLinkedinPagesAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceLinkedinPagesAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceLinkedinPagesOAuth20 != nil { + return utils.MarshalJSON(u.SourceLinkedinPagesOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceLinkedinPagesAccessToken != nil { + return utils.MarshalJSON(u.SourceLinkedinPagesAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go b/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go index c8c36cae8..481c85d5a 100644 --- a/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go +++ b/internal/sdk/pkg/models/shared/sourcelinkedinpagesupdate.go @@ -134,48 +134,48 @@ func (o *SourceLinkedinPagesUpdateOAuth20) GetRefreshToken() string { type SourceLinkedinPagesUpdateAuthenticationType string const ( - SourceLinkedinPagesUpdateAuthenticationTypeOAuth20 SourceLinkedinPagesUpdateAuthenticationType = "OAuth20" - SourceLinkedinPagesUpdateAuthenticationTypeAccessToken SourceLinkedinPagesUpdateAuthenticationType = "AccessToken" + SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateOAuth20 SourceLinkedinPagesUpdateAuthenticationType = "source-linkedin-pages-update_OAuth2.0" + SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateAccessToken SourceLinkedinPagesUpdateAuthenticationType = "source-linkedin-pages-update_Access token" ) type SourceLinkedinPagesUpdateAuthentication struct { - OAuth20 *SourceLinkedinPagesUpdateOAuth20 - AccessToken *SourceLinkedinPagesUpdateAccessToken + SourceLinkedinPagesUpdateOAuth20 *SourceLinkedinPagesUpdateOAuth20 + SourceLinkedinPagesUpdateAccessToken *SourceLinkedinPagesUpdateAccessToken Type SourceLinkedinPagesUpdateAuthenticationType } -func CreateSourceLinkedinPagesUpdateAuthenticationOAuth20(oAuth20 SourceLinkedinPagesUpdateOAuth20) SourceLinkedinPagesUpdateAuthentication { - typ := SourceLinkedinPagesUpdateAuthenticationTypeOAuth20 +func CreateSourceLinkedinPagesUpdateAuthenticationSourceLinkedinPagesUpdateOAuth20(sourceLinkedinPagesUpdateOAuth20 SourceLinkedinPagesUpdateOAuth20) SourceLinkedinPagesUpdateAuthentication { + typ := SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateOAuth20 return SourceLinkedinPagesUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceLinkedinPagesUpdateOAuth20: &sourceLinkedinPagesUpdateOAuth20, + Type: typ, } } -func CreateSourceLinkedinPagesUpdateAuthenticationAccessToken(accessToken SourceLinkedinPagesUpdateAccessToken) SourceLinkedinPagesUpdateAuthentication { - typ := SourceLinkedinPagesUpdateAuthenticationTypeAccessToken +func CreateSourceLinkedinPagesUpdateAuthenticationSourceLinkedinPagesUpdateAccessToken(sourceLinkedinPagesUpdateAccessToken SourceLinkedinPagesUpdateAccessToken) SourceLinkedinPagesUpdateAuthentication { + typ := SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateAccessToken return SourceLinkedinPagesUpdateAuthentication{ - AccessToken: &accessToken, - Type: typ, + SourceLinkedinPagesUpdateAccessToken: &sourceLinkedinPagesUpdateAccessToken, + Type: typ, } } func (u *SourceLinkedinPagesUpdateAuthentication) UnmarshalJSON(data []byte) error { - accessToken := new(SourceLinkedinPagesUpdateAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceLinkedinPagesUpdateAuthenticationTypeAccessToken + sourceLinkedinPagesUpdateAccessToken := new(SourceLinkedinPagesUpdateAccessToken) + if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesUpdateAccessToken, "", true, true); err == nil { + u.SourceLinkedinPagesUpdateAccessToken = sourceLinkedinPagesUpdateAccessToken + u.Type = SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateAccessToken return nil } - oAuth20 := new(SourceLinkedinPagesUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceLinkedinPagesUpdateAuthenticationTypeOAuth20 + sourceLinkedinPagesUpdateOAuth20 := new(SourceLinkedinPagesUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceLinkedinPagesUpdateOAuth20, "", true, true); err == nil { + u.SourceLinkedinPagesUpdateOAuth20 = sourceLinkedinPagesUpdateOAuth20 + u.Type = SourceLinkedinPagesUpdateAuthenticationTypeSourceLinkedinPagesUpdateOAuth20 return nil } @@ -183,12 +183,12 @@ func (u *SourceLinkedinPagesUpdateAuthentication) UnmarshalJSON(data []byte) err } func (u SourceLinkedinPagesUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceLinkedinPagesUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceLinkedinPagesUpdateOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceLinkedinPagesUpdateAccessToken != nil { + return utils.MarshalJSON(u.SourceLinkedinPagesUpdateAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemailchimp.go b/internal/sdk/pkg/models/shared/sourcemailchimp.go index 8a770cfb3..45b3ff259 100644 --- a/internal/sdk/pkg/models/shared/sourcemailchimp.go +++ b/internal/sdk/pkg/models/shared/sourcemailchimp.go @@ -134,48 +134,48 @@ func (o *SourceMailchimpOAuth20) GetClientSecret() *string { type SourceMailchimpAuthenticationType string const ( - SourceMailchimpAuthenticationTypeOAuth20 SourceMailchimpAuthenticationType = "OAuth20" - SourceMailchimpAuthenticationTypeAPIKey SourceMailchimpAuthenticationType = "APIKey" + SourceMailchimpAuthenticationTypeSourceMailchimpOAuth20 SourceMailchimpAuthenticationType = "source-mailchimp_OAuth2.0" + SourceMailchimpAuthenticationTypeSourceMailchimpAPIKey SourceMailchimpAuthenticationType = "source-mailchimp_API Key" ) type SourceMailchimpAuthentication struct { - OAuth20 *SourceMailchimpOAuth20 - APIKey *SourceMailchimpAPIKey + SourceMailchimpOAuth20 *SourceMailchimpOAuth20 + SourceMailchimpAPIKey *SourceMailchimpAPIKey Type SourceMailchimpAuthenticationType } -func CreateSourceMailchimpAuthenticationOAuth20(oAuth20 SourceMailchimpOAuth20) SourceMailchimpAuthentication { - typ := SourceMailchimpAuthenticationTypeOAuth20 +func CreateSourceMailchimpAuthenticationSourceMailchimpOAuth20(sourceMailchimpOAuth20 SourceMailchimpOAuth20) SourceMailchimpAuthentication { + typ := SourceMailchimpAuthenticationTypeSourceMailchimpOAuth20 return SourceMailchimpAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceMailchimpOAuth20: &sourceMailchimpOAuth20, + Type: typ, } } -func CreateSourceMailchimpAuthenticationAPIKey(apiKey SourceMailchimpAPIKey) SourceMailchimpAuthentication { - typ := SourceMailchimpAuthenticationTypeAPIKey +func CreateSourceMailchimpAuthenticationSourceMailchimpAPIKey(sourceMailchimpAPIKey SourceMailchimpAPIKey) SourceMailchimpAuthentication { + typ := SourceMailchimpAuthenticationTypeSourceMailchimpAPIKey return SourceMailchimpAuthentication{ - APIKey: &apiKey, - Type: typ, + SourceMailchimpAPIKey: &sourceMailchimpAPIKey, + Type: typ, } } func (u *SourceMailchimpAuthentication) UnmarshalJSON(data []byte) error { - apiKey := new(SourceMailchimpAPIKey) - if err := utils.UnmarshalJSON(data, &apiKey, "", true, true); err == nil { - u.APIKey = apiKey - u.Type = SourceMailchimpAuthenticationTypeAPIKey + sourceMailchimpAPIKey := new(SourceMailchimpAPIKey) + if err := utils.UnmarshalJSON(data, &sourceMailchimpAPIKey, "", true, true); err == nil { + u.SourceMailchimpAPIKey = sourceMailchimpAPIKey + u.Type = SourceMailchimpAuthenticationTypeSourceMailchimpAPIKey return nil } - oAuth20 := new(SourceMailchimpOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceMailchimpAuthenticationTypeOAuth20 + sourceMailchimpOAuth20 := new(SourceMailchimpOAuth20) + if err := utils.UnmarshalJSON(data, &sourceMailchimpOAuth20, "", true, true); err == nil { + u.SourceMailchimpOAuth20 = sourceMailchimpOAuth20 + u.Type = SourceMailchimpAuthenticationTypeSourceMailchimpOAuth20 return nil } @@ -183,12 +183,12 @@ func (u *SourceMailchimpAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceMailchimpAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceMailchimpOAuth20 != nil { + return utils.MarshalJSON(u.SourceMailchimpOAuth20, "", true) } - if u.APIKey != nil { - return utils.MarshalJSON(u.APIKey, "", true) + if u.SourceMailchimpAPIKey != nil { + return utils.MarshalJSON(u.SourceMailchimpAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go b/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go index b89004c8e..94a5f9091 100644 --- a/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemailchimpupdate.go @@ -134,23 +134,23 @@ func (o *SourceMailchimpUpdateOAuth20) GetClientSecret() *string { type SourceMailchimpUpdateAuthenticationType string const ( - SourceMailchimpUpdateAuthenticationTypeOAuth20 SourceMailchimpUpdateAuthenticationType = "OAuth20" - SourceMailchimpUpdateAuthenticationTypeAPIKey SourceMailchimpUpdateAuthenticationType = "APIKey" + SourceMailchimpUpdateAuthenticationTypeSourceMailchimpUpdateOAuth20 SourceMailchimpUpdateAuthenticationType = "source-mailchimp-update_OAuth2.0" + SourceMailchimpUpdateAuthenticationTypeAPIKey SourceMailchimpUpdateAuthenticationType = "API Key" ) type SourceMailchimpUpdateAuthentication struct { - OAuth20 *SourceMailchimpUpdateOAuth20 - APIKey *APIKey + SourceMailchimpUpdateOAuth20 *SourceMailchimpUpdateOAuth20 + APIKey *APIKey Type SourceMailchimpUpdateAuthenticationType } -func CreateSourceMailchimpUpdateAuthenticationOAuth20(oAuth20 SourceMailchimpUpdateOAuth20) SourceMailchimpUpdateAuthentication { - typ := SourceMailchimpUpdateAuthenticationTypeOAuth20 +func CreateSourceMailchimpUpdateAuthenticationSourceMailchimpUpdateOAuth20(sourceMailchimpUpdateOAuth20 SourceMailchimpUpdateOAuth20) SourceMailchimpUpdateAuthentication { + typ := SourceMailchimpUpdateAuthenticationTypeSourceMailchimpUpdateOAuth20 return SourceMailchimpUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceMailchimpUpdateOAuth20: &sourceMailchimpUpdateOAuth20, + Type: typ, } } @@ -172,10 +172,10 @@ func (u *SourceMailchimpUpdateAuthentication) UnmarshalJSON(data []byte) error { return nil } - oAuth20 := new(SourceMailchimpUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceMailchimpUpdateAuthenticationTypeOAuth20 + sourceMailchimpUpdateOAuth20 := new(SourceMailchimpUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceMailchimpUpdateOAuth20, "", true, true); err == nil { + u.SourceMailchimpUpdateOAuth20 = sourceMailchimpUpdateOAuth20 + u.Type = SourceMailchimpUpdateAuthenticationTypeSourceMailchimpUpdateOAuth20 return nil } @@ -183,8 +183,8 @@ func (u *SourceMailchimpUpdateAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceMailchimpUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceMailchimpUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceMailchimpUpdateOAuth20, "", true) } if u.APIKey != nil { diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go index 9b4fb9d40..e23f9be07 100644 --- a/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go +++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteams.go @@ -163,48 +163,48 @@ func (o *SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20) GetTenantID() stri type SourceMicrosoftTeamsAuthenticationMechanismType string const ( - SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsAuthenticationMechanismType = "AuthenticateViaMicrosoftOAuth20" - SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoft SourceMicrosoftTeamsAuthenticationMechanismType = "AuthenticateViaMicrosoft" + SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsAuthenticationMechanismType = "source-microsoft-teams_Authenticate via Microsoft (OAuth 2.0)" + SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoft SourceMicrosoftTeamsAuthenticationMechanismType = "source-microsoft-teams_Authenticate via Microsoft" ) type SourceMicrosoftTeamsAuthenticationMechanism struct { - AuthenticateViaMicrosoftOAuth20 *SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 - AuthenticateViaMicrosoft *SourceMicrosoftTeamsAuthenticateViaMicrosoft + SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 *SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 + SourceMicrosoftTeamsAuthenticateViaMicrosoft *SourceMicrosoftTeamsAuthenticateViaMicrosoft Type SourceMicrosoftTeamsAuthenticationMechanismType } -func CreateSourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoftOAuth20(authenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20) SourceMicrosoftTeamsAuthenticationMechanism { - typ := SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoftOAuth20 +func CreateSourceMicrosoftTeamsAuthenticationMechanismSourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20(sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20) SourceMicrosoftTeamsAuthenticationMechanism { + typ := SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 return SourceMicrosoftTeamsAuthenticationMechanism{ - AuthenticateViaMicrosoftOAuth20: &authenticateViaMicrosoftOAuth20, - Type: typ, + SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20: &sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20, + Type: typ, } } -func CreateSourceMicrosoftTeamsAuthenticationMechanismAuthenticateViaMicrosoft(authenticateViaMicrosoft SourceMicrosoftTeamsAuthenticateViaMicrosoft) SourceMicrosoftTeamsAuthenticationMechanism { - typ := SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoft +func CreateSourceMicrosoftTeamsAuthenticationMechanismSourceMicrosoftTeamsAuthenticateViaMicrosoft(sourceMicrosoftTeamsAuthenticateViaMicrosoft SourceMicrosoftTeamsAuthenticateViaMicrosoft) SourceMicrosoftTeamsAuthenticationMechanism { + typ := SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoft return SourceMicrosoftTeamsAuthenticationMechanism{ - AuthenticateViaMicrosoft: &authenticateViaMicrosoft, - Type: typ, + SourceMicrosoftTeamsAuthenticateViaMicrosoft: &sourceMicrosoftTeamsAuthenticateViaMicrosoft, + Type: typ, } } func (u *SourceMicrosoftTeamsAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateViaMicrosoft := new(SourceMicrosoftTeamsAuthenticateViaMicrosoft) - if err := utils.UnmarshalJSON(data, &authenticateViaMicrosoft, "", true, true); err == nil { - u.AuthenticateViaMicrosoft = authenticateViaMicrosoft - u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoft + sourceMicrosoftTeamsAuthenticateViaMicrosoft := new(SourceMicrosoftTeamsAuthenticateViaMicrosoft) + if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsAuthenticateViaMicrosoft, "", true, true); err == nil { + u.SourceMicrosoftTeamsAuthenticateViaMicrosoft = sourceMicrosoftTeamsAuthenticateViaMicrosoft + u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoft return nil } - authenticateViaMicrosoftOAuth20 := new(SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20) - if err := utils.UnmarshalJSON(data, &authenticateViaMicrosoftOAuth20, "", true, true); err == nil { - u.AuthenticateViaMicrosoftOAuth20 = authenticateViaMicrosoftOAuth20 - u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeAuthenticateViaMicrosoftOAuth20 + sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 := new(SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20) + if err := utils.UnmarshalJSON(data, &sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20, "", true, true); err == nil { + u.SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 = sourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 + u.Type = SourceMicrosoftTeamsAuthenticationMechanismTypeSourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 return nil } @@ -212,12 +212,12 @@ func (u *SourceMicrosoftTeamsAuthenticationMechanism) UnmarshalJSON(data []byte) } func (u SourceMicrosoftTeamsAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaMicrosoftOAuth20 != nil { - return utils.MarshalJSON(u.AuthenticateViaMicrosoftOAuth20, "", true) + if u.SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20 != nil { + return utils.MarshalJSON(u.SourceMicrosoftTeamsAuthenticateViaMicrosoftOAuth20, "", true) } - if u.AuthenticateViaMicrosoft != nil { - return utils.MarshalJSON(u.AuthenticateViaMicrosoft, "", true) + if u.SourceMicrosoftTeamsAuthenticateViaMicrosoft != nil { + return utils.MarshalJSON(u.SourceMicrosoftTeamsAuthenticateViaMicrosoft, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go index ac116692b..8e54e4497 100644 --- a/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemicrosoftteamsupdate.go @@ -163,8 +163,8 @@ func (o *AuthenticateViaMicrosoftOAuth20) GetTenantID() string { type SourceMicrosoftTeamsUpdateAuthenticationMechanismType string const ( - SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeAuthenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsUpdateAuthenticationMechanismType = "AuthenticateViaMicrosoftOAuth20" - SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeAuthenticateViaMicrosoft SourceMicrosoftTeamsUpdateAuthenticationMechanismType = "AuthenticateViaMicrosoft" + SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeAuthenticateViaMicrosoftOAuth20 SourceMicrosoftTeamsUpdateAuthenticationMechanismType = "Authenticate via Microsoft (OAuth 2.0)" + SourceMicrosoftTeamsUpdateAuthenticationMechanismTypeAuthenticateViaMicrosoft SourceMicrosoftTeamsUpdateAuthenticationMechanismType = "Authenticate via Microsoft" ) type SourceMicrosoftTeamsUpdateAuthenticationMechanism struct { diff --git a/internal/sdk/pkg/models/shared/sourcemixpanel.go b/internal/sdk/pkg/models/shared/sourcemixpanel.go index 81fcdb457..b62f8eb51 100644 --- a/internal/sdk/pkg/models/shared/sourcemixpanel.go +++ b/internal/sdk/pkg/models/shared/sourcemixpanel.go @@ -128,48 +128,48 @@ func (o *SourceMixpanelServiceAccount) GetUsername() string { type SourceMixpanelAuthenticationWildcardType string const ( - SourceMixpanelAuthenticationWildcardTypeServiceAccount SourceMixpanelAuthenticationWildcardType = "ServiceAccount" - SourceMixpanelAuthenticationWildcardTypeProjectSecret SourceMixpanelAuthenticationWildcardType = "ProjectSecret" + SourceMixpanelAuthenticationWildcardTypeSourceMixpanelServiceAccount SourceMixpanelAuthenticationWildcardType = "source-mixpanel_Service Account" + SourceMixpanelAuthenticationWildcardTypeSourceMixpanelProjectSecret SourceMixpanelAuthenticationWildcardType = "source-mixpanel_Project Secret" ) type SourceMixpanelAuthenticationWildcard struct { - ServiceAccount *SourceMixpanelServiceAccount - ProjectSecret *SourceMixpanelProjectSecret + SourceMixpanelServiceAccount *SourceMixpanelServiceAccount + SourceMixpanelProjectSecret *SourceMixpanelProjectSecret Type SourceMixpanelAuthenticationWildcardType } -func CreateSourceMixpanelAuthenticationWildcardServiceAccount(serviceAccount SourceMixpanelServiceAccount) SourceMixpanelAuthenticationWildcard { - typ := SourceMixpanelAuthenticationWildcardTypeServiceAccount +func CreateSourceMixpanelAuthenticationWildcardSourceMixpanelServiceAccount(sourceMixpanelServiceAccount SourceMixpanelServiceAccount) SourceMixpanelAuthenticationWildcard { + typ := SourceMixpanelAuthenticationWildcardTypeSourceMixpanelServiceAccount return SourceMixpanelAuthenticationWildcard{ - ServiceAccount: &serviceAccount, - Type: typ, + SourceMixpanelServiceAccount: &sourceMixpanelServiceAccount, + Type: typ, } } -func CreateSourceMixpanelAuthenticationWildcardProjectSecret(projectSecret SourceMixpanelProjectSecret) SourceMixpanelAuthenticationWildcard { - typ := SourceMixpanelAuthenticationWildcardTypeProjectSecret +func CreateSourceMixpanelAuthenticationWildcardSourceMixpanelProjectSecret(sourceMixpanelProjectSecret SourceMixpanelProjectSecret) SourceMixpanelAuthenticationWildcard { + typ := SourceMixpanelAuthenticationWildcardTypeSourceMixpanelProjectSecret return SourceMixpanelAuthenticationWildcard{ - ProjectSecret: &projectSecret, - Type: typ, + SourceMixpanelProjectSecret: &sourceMixpanelProjectSecret, + Type: typ, } } func (u *SourceMixpanelAuthenticationWildcard) UnmarshalJSON(data []byte) error { - projectSecret := new(SourceMixpanelProjectSecret) - if err := utils.UnmarshalJSON(data, &projectSecret, "", true, true); err == nil { - u.ProjectSecret = projectSecret - u.Type = SourceMixpanelAuthenticationWildcardTypeProjectSecret + sourceMixpanelProjectSecret := new(SourceMixpanelProjectSecret) + if err := utils.UnmarshalJSON(data, &sourceMixpanelProjectSecret, "", true, true); err == nil { + u.SourceMixpanelProjectSecret = sourceMixpanelProjectSecret + u.Type = SourceMixpanelAuthenticationWildcardTypeSourceMixpanelProjectSecret return nil } - serviceAccount := new(SourceMixpanelServiceAccount) - if err := utils.UnmarshalJSON(data, &serviceAccount, "", true, true); err == nil { - u.ServiceAccount = serviceAccount - u.Type = SourceMixpanelAuthenticationWildcardTypeServiceAccount + sourceMixpanelServiceAccount := new(SourceMixpanelServiceAccount) + if err := utils.UnmarshalJSON(data, &sourceMixpanelServiceAccount, "", true, true); err == nil { + u.SourceMixpanelServiceAccount = sourceMixpanelServiceAccount + u.Type = SourceMixpanelAuthenticationWildcardTypeSourceMixpanelServiceAccount return nil } @@ -177,12 +177,12 @@ func (u *SourceMixpanelAuthenticationWildcard) UnmarshalJSON(data []byte) error } func (u SourceMixpanelAuthenticationWildcard) MarshalJSON() ([]byte, error) { - if u.ServiceAccount != nil { - return utils.MarshalJSON(u.ServiceAccount, "", true) + if u.SourceMixpanelServiceAccount != nil { + return utils.MarshalJSON(u.SourceMixpanelServiceAccount, "", true) } - if u.ProjectSecret != nil { - return utils.MarshalJSON(u.ProjectSecret, "", true) + if u.SourceMixpanelProjectSecret != nil { + return utils.MarshalJSON(u.SourceMixpanelProjectSecret, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go b/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go index 202b01d5d..30918080d 100644 --- a/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemixpanelupdate.go @@ -128,8 +128,8 @@ func (o *ServiceAccount) GetUsername() string { type AuthenticationWildcardType string const ( - AuthenticationWildcardTypeServiceAccount AuthenticationWildcardType = "ServiceAccount" - AuthenticationWildcardTypeProjectSecret AuthenticationWildcardType = "ProjectSecret" + AuthenticationWildcardTypeServiceAccount AuthenticationWildcardType = "Service Account" + AuthenticationWildcardTypeProjectSecret AuthenticationWildcardType = "Project Secret" ) type AuthenticationWildcard struct { diff --git a/internal/sdk/pkg/models/shared/sourcemonday.go b/internal/sdk/pkg/models/shared/sourcemonday.go index bdc4fbd3f..442208961 100644 --- a/internal/sdk/pkg/models/shared/sourcemonday.go +++ b/internal/sdk/pkg/models/shared/sourcemonday.go @@ -143,48 +143,48 @@ func (o *SourceMondayOAuth20) GetSubdomain() *string { type SourceMondayAuthorizationMethodType string const ( - SourceMondayAuthorizationMethodTypeOAuth20 SourceMondayAuthorizationMethodType = "OAuth20" - SourceMondayAuthorizationMethodTypeAPIToken SourceMondayAuthorizationMethodType = "APIToken" + SourceMondayAuthorizationMethodTypeSourceMondayOAuth20 SourceMondayAuthorizationMethodType = "source-monday_OAuth2.0" + SourceMondayAuthorizationMethodTypeSourceMondayAPIToken SourceMondayAuthorizationMethodType = "source-monday_API Token" ) type SourceMondayAuthorizationMethod struct { - OAuth20 *SourceMondayOAuth20 - APIToken *SourceMondayAPIToken + SourceMondayOAuth20 *SourceMondayOAuth20 + SourceMondayAPIToken *SourceMondayAPIToken Type SourceMondayAuthorizationMethodType } -func CreateSourceMondayAuthorizationMethodOAuth20(oAuth20 SourceMondayOAuth20) SourceMondayAuthorizationMethod { - typ := SourceMondayAuthorizationMethodTypeOAuth20 +func CreateSourceMondayAuthorizationMethodSourceMondayOAuth20(sourceMondayOAuth20 SourceMondayOAuth20) SourceMondayAuthorizationMethod { + typ := SourceMondayAuthorizationMethodTypeSourceMondayOAuth20 return SourceMondayAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceMondayOAuth20: &sourceMondayOAuth20, + Type: typ, } } -func CreateSourceMondayAuthorizationMethodAPIToken(apiToken SourceMondayAPIToken) SourceMondayAuthorizationMethod { - typ := SourceMondayAuthorizationMethodTypeAPIToken +func CreateSourceMondayAuthorizationMethodSourceMondayAPIToken(sourceMondayAPIToken SourceMondayAPIToken) SourceMondayAuthorizationMethod { + typ := SourceMondayAuthorizationMethodTypeSourceMondayAPIToken return SourceMondayAuthorizationMethod{ - APIToken: &apiToken, - Type: typ, + SourceMondayAPIToken: &sourceMondayAPIToken, + Type: typ, } } func (u *SourceMondayAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiToken := new(SourceMondayAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceMondayAuthorizationMethodTypeAPIToken + sourceMondayAPIToken := new(SourceMondayAPIToken) + if err := utils.UnmarshalJSON(data, &sourceMondayAPIToken, "", true, true); err == nil { + u.SourceMondayAPIToken = sourceMondayAPIToken + u.Type = SourceMondayAuthorizationMethodTypeSourceMondayAPIToken return nil } - oAuth20 := new(SourceMondayOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceMondayAuthorizationMethodTypeOAuth20 + sourceMondayOAuth20 := new(SourceMondayOAuth20) + if err := utils.UnmarshalJSON(data, &sourceMondayOAuth20, "", true, true); err == nil { + u.SourceMondayOAuth20 = sourceMondayOAuth20 + u.Type = SourceMondayAuthorizationMethodTypeSourceMondayOAuth20 return nil } @@ -192,12 +192,12 @@ func (u *SourceMondayAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceMondayAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceMondayOAuth20 != nil { + return utils.MarshalJSON(u.SourceMondayOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceMondayAPIToken != nil { + return utils.MarshalJSON(u.SourceMondayAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemondayupdate.go b/internal/sdk/pkg/models/shared/sourcemondayupdate.go index baf271dbd..af6c00a91 100644 --- a/internal/sdk/pkg/models/shared/sourcemondayupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemondayupdate.go @@ -143,23 +143,23 @@ func (o *SourceMondayUpdateOAuth20) GetSubdomain() *string { type SourceMondayUpdateAuthorizationMethodType string const ( - SourceMondayUpdateAuthorizationMethodTypeOAuth20 SourceMondayUpdateAuthorizationMethodType = "OAuth20" - SourceMondayUpdateAuthorizationMethodTypeAPIToken SourceMondayUpdateAuthorizationMethodType = "APIToken" + SourceMondayUpdateAuthorizationMethodTypeSourceMondayUpdateOAuth20 SourceMondayUpdateAuthorizationMethodType = "source-monday-update_OAuth2.0" + SourceMondayUpdateAuthorizationMethodTypeAPIToken SourceMondayUpdateAuthorizationMethodType = "API Token" ) type SourceMondayUpdateAuthorizationMethod struct { - OAuth20 *SourceMondayUpdateOAuth20 - APIToken *APIToken + SourceMondayUpdateOAuth20 *SourceMondayUpdateOAuth20 + APIToken *APIToken Type SourceMondayUpdateAuthorizationMethodType } -func CreateSourceMondayUpdateAuthorizationMethodOAuth20(oAuth20 SourceMondayUpdateOAuth20) SourceMondayUpdateAuthorizationMethod { - typ := SourceMondayUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceMondayUpdateAuthorizationMethodSourceMondayUpdateOAuth20(sourceMondayUpdateOAuth20 SourceMondayUpdateOAuth20) SourceMondayUpdateAuthorizationMethod { + typ := SourceMondayUpdateAuthorizationMethodTypeSourceMondayUpdateOAuth20 return SourceMondayUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceMondayUpdateOAuth20: &sourceMondayUpdateOAuth20, + Type: typ, } } @@ -181,10 +181,10 @@ func (u *SourceMondayUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error return nil } - oAuth20 := new(SourceMondayUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceMondayUpdateAuthorizationMethodTypeOAuth20 + sourceMondayUpdateOAuth20 := new(SourceMondayUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceMondayUpdateOAuth20, "", true, true); err == nil { + u.SourceMondayUpdateOAuth20 = sourceMondayUpdateOAuth20 + u.Type = SourceMondayUpdateAuthorizationMethodTypeSourceMondayUpdateOAuth20 return nil } @@ -192,8 +192,8 @@ func (u *SourceMondayUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error } func (u SourceMondayUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceMondayUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceMondayUpdateOAuth20, "", true) } if u.APIToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcemongodb.go b/internal/sdk/pkg/models/shared/sourcemongodb.go index 752c738f8..a196bc6e6 100644 --- a/internal/sdk/pkg/models/shared/sourcemongodb.go +++ b/internal/sdk/pkg/models/shared/sourcemongodb.go @@ -197,66 +197,66 @@ func (o *SourceMongodbStandaloneMongoDbInstance) GetPort() *int64 { type SourceMongodbMongoDbInstanceTypeType string const ( - SourceMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance SourceMongodbMongoDbInstanceTypeType = "StandaloneMongoDbInstance" - SourceMongodbMongoDbInstanceTypeTypeReplicaSet SourceMongodbMongoDbInstanceTypeType = "ReplicaSet" - SourceMongodbMongoDbInstanceTypeTypeMongoDBAtlas SourceMongodbMongoDbInstanceTypeType = "MongoDBAtlas" + SourceMongodbMongoDbInstanceTypeTypeSourceMongodbStandaloneMongoDbInstance SourceMongodbMongoDbInstanceTypeType = "source-mongodb_Standalone MongoDb Instance" + SourceMongodbMongoDbInstanceTypeTypeSourceMongodbReplicaSet SourceMongodbMongoDbInstanceTypeType = "source-mongodb_Replica Set" + SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDBAtlas SourceMongodbMongoDbInstanceTypeType = "source-mongodb_MongoDB Atlas" ) type SourceMongodbMongoDbInstanceType struct { - StandaloneMongoDbInstance *SourceMongodbStandaloneMongoDbInstance - ReplicaSet *SourceMongodbReplicaSet - MongoDBAtlas *SourceMongodbMongoDBAtlas + SourceMongodbStandaloneMongoDbInstance *SourceMongodbStandaloneMongoDbInstance + SourceMongodbReplicaSet *SourceMongodbReplicaSet + SourceMongodbMongoDBAtlas *SourceMongodbMongoDBAtlas Type SourceMongodbMongoDbInstanceTypeType } -func CreateSourceMongodbMongoDbInstanceTypeStandaloneMongoDbInstance(standaloneMongoDbInstance SourceMongodbStandaloneMongoDbInstance) SourceMongodbMongoDbInstanceType { - typ := SourceMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance +func CreateSourceMongodbMongoDbInstanceTypeSourceMongodbStandaloneMongoDbInstance(sourceMongodbStandaloneMongoDbInstance SourceMongodbStandaloneMongoDbInstance) SourceMongodbMongoDbInstanceType { + typ := SourceMongodbMongoDbInstanceTypeTypeSourceMongodbStandaloneMongoDbInstance return SourceMongodbMongoDbInstanceType{ - StandaloneMongoDbInstance: &standaloneMongoDbInstance, - Type: typ, + SourceMongodbStandaloneMongoDbInstance: &sourceMongodbStandaloneMongoDbInstance, + Type: typ, } } -func CreateSourceMongodbMongoDbInstanceTypeReplicaSet(replicaSet SourceMongodbReplicaSet) SourceMongodbMongoDbInstanceType { - typ := SourceMongodbMongoDbInstanceTypeTypeReplicaSet +func CreateSourceMongodbMongoDbInstanceTypeSourceMongodbReplicaSet(sourceMongodbReplicaSet SourceMongodbReplicaSet) SourceMongodbMongoDbInstanceType { + typ := SourceMongodbMongoDbInstanceTypeTypeSourceMongodbReplicaSet return SourceMongodbMongoDbInstanceType{ - ReplicaSet: &replicaSet, - Type: typ, + SourceMongodbReplicaSet: &sourceMongodbReplicaSet, + Type: typ, } } -func CreateSourceMongodbMongoDbInstanceTypeMongoDBAtlas(mongoDBAtlas SourceMongodbMongoDBAtlas) SourceMongodbMongoDbInstanceType { - typ := SourceMongodbMongoDbInstanceTypeTypeMongoDBAtlas +func CreateSourceMongodbMongoDbInstanceTypeSourceMongodbMongoDBAtlas(sourceMongodbMongoDBAtlas SourceMongodbMongoDBAtlas) SourceMongodbMongoDbInstanceType { + typ := SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDBAtlas return SourceMongodbMongoDbInstanceType{ - MongoDBAtlas: &mongoDBAtlas, - Type: typ, + SourceMongodbMongoDBAtlas: &sourceMongodbMongoDBAtlas, + Type: typ, } } func (u *SourceMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error { - standaloneMongoDbInstance := new(SourceMongodbStandaloneMongoDbInstance) - if err := utils.UnmarshalJSON(data, &standaloneMongoDbInstance, "", true, true); err == nil { - u.StandaloneMongoDbInstance = standaloneMongoDbInstance - u.Type = SourceMongodbMongoDbInstanceTypeTypeStandaloneMongoDbInstance + sourceMongodbStandaloneMongoDbInstance := new(SourceMongodbStandaloneMongoDbInstance) + if err := utils.UnmarshalJSON(data, &sourceMongodbStandaloneMongoDbInstance, "", true, true); err == nil { + u.SourceMongodbStandaloneMongoDbInstance = sourceMongodbStandaloneMongoDbInstance + u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbStandaloneMongoDbInstance return nil } - replicaSet := new(SourceMongodbReplicaSet) - if err := utils.UnmarshalJSON(data, &replicaSet, "", true, true); err == nil { - u.ReplicaSet = replicaSet - u.Type = SourceMongodbMongoDbInstanceTypeTypeReplicaSet + sourceMongodbReplicaSet := new(SourceMongodbReplicaSet) + if err := utils.UnmarshalJSON(data, &sourceMongodbReplicaSet, "", true, true); err == nil { + u.SourceMongodbReplicaSet = sourceMongodbReplicaSet + u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbReplicaSet return nil } - mongoDBAtlas := new(SourceMongodbMongoDBAtlas) - if err := utils.UnmarshalJSON(data, &mongoDBAtlas, "", true, true); err == nil { - u.MongoDBAtlas = mongoDBAtlas - u.Type = SourceMongodbMongoDbInstanceTypeTypeMongoDBAtlas + sourceMongodbMongoDBAtlas := new(SourceMongodbMongoDBAtlas) + if err := utils.UnmarshalJSON(data, &sourceMongodbMongoDBAtlas, "", true, true); err == nil { + u.SourceMongodbMongoDBAtlas = sourceMongodbMongoDBAtlas + u.Type = SourceMongodbMongoDbInstanceTypeTypeSourceMongodbMongoDBAtlas return nil } @@ -264,16 +264,16 @@ func (u *SourceMongodbMongoDbInstanceType) UnmarshalJSON(data []byte) error { } func (u SourceMongodbMongoDbInstanceType) MarshalJSON() ([]byte, error) { - if u.StandaloneMongoDbInstance != nil { - return utils.MarshalJSON(u.StandaloneMongoDbInstance, "", true) + if u.SourceMongodbStandaloneMongoDbInstance != nil { + return utils.MarshalJSON(u.SourceMongodbStandaloneMongoDbInstance, "", true) } - if u.ReplicaSet != nil { - return utils.MarshalJSON(u.ReplicaSet, "", true) + if u.SourceMongodbReplicaSet != nil { + return utils.MarshalJSON(u.SourceMongodbReplicaSet, "", true) } - if u.MongoDBAtlas != nil { - return utils.MarshalJSON(u.MongoDBAtlas, "", true) + if u.SourceMongodbMongoDBAtlas != nil { + return utils.MarshalJSON(u.SourceMongodbMongoDBAtlas, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemongodbupdate.go b/internal/sdk/pkg/models/shared/sourcemongodbupdate.go index a41d48c1e..65a579de6 100644 --- a/internal/sdk/pkg/models/shared/sourcemongodbupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemongodbupdate.go @@ -197,66 +197,66 @@ func (o *SourceMongodbUpdateStandaloneMongoDbInstance) GetPort() *int64 { type SourceMongodbUpdateMongoDbInstanceTypeType string const ( - SourceMongodbUpdateMongoDbInstanceTypeTypeStandaloneMongoDbInstance SourceMongodbUpdateMongoDbInstanceTypeType = "StandaloneMongoDbInstance" - SourceMongodbUpdateMongoDbInstanceTypeTypeReplicaSet SourceMongodbUpdateMongoDbInstanceTypeType = "ReplicaSet" - SourceMongodbUpdateMongoDbInstanceTypeTypeMongoDBAtlas SourceMongodbUpdateMongoDbInstanceTypeType = "MongoDBAtlas" + SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateStandaloneMongoDbInstance SourceMongodbUpdateMongoDbInstanceTypeType = "source-mongodb-update_Standalone MongoDb Instance" + SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateReplicaSet SourceMongodbUpdateMongoDbInstanceTypeType = "source-mongodb-update_Replica Set" + SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDBAtlas SourceMongodbUpdateMongoDbInstanceTypeType = "source-mongodb-update_MongoDB Atlas" ) type SourceMongodbUpdateMongoDbInstanceType struct { - StandaloneMongoDbInstance *SourceMongodbUpdateStandaloneMongoDbInstance - ReplicaSet *SourceMongodbUpdateReplicaSet - MongoDBAtlas *SourceMongodbUpdateMongoDBAtlas + SourceMongodbUpdateStandaloneMongoDbInstance *SourceMongodbUpdateStandaloneMongoDbInstance + SourceMongodbUpdateReplicaSet *SourceMongodbUpdateReplicaSet + SourceMongodbUpdateMongoDBAtlas *SourceMongodbUpdateMongoDBAtlas Type SourceMongodbUpdateMongoDbInstanceTypeType } -func CreateSourceMongodbUpdateMongoDbInstanceTypeStandaloneMongoDbInstance(standaloneMongoDbInstance SourceMongodbUpdateStandaloneMongoDbInstance) SourceMongodbUpdateMongoDbInstanceType { - typ := SourceMongodbUpdateMongoDbInstanceTypeTypeStandaloneMongoDbInstance +func CreateSourceMongodbUpdateMongoDbInstanceTypeSourceMongodbUpdateStandaloneMongoDbInstance(sourceMongodbUpdateStandaloneMongoDbInstance SourceMongodbUpdateStandaloneMongoDbInstance) SourceMongodbUpdateMongoDbInstanceType { + typ := SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateStandaloneMongoDbInstance return SourceMongodbUpdateMongoDbInstanceType{ - StandaloneMongoDbInstance: &standaloneMongoDbInstance, - Type: typ, + SourceMongodbUpdateStandaloneMongoDbInstance: &sourceMongodbUpdateStandaloneMongoDbInstance, + Type: typ, } } -func CreateSourceMongodbUpdateMongoDbInstanceTypeReplicaSet(replicaSet SourceMongodbUpdateReplicaSet) SourceMongodbUpdateMongoDbInstanceType { - typ := SourceMongodbUpdateMongoDbInstanceTypeTypeReplicaSet +func CreateSourceMongodbUpdateMongoDbInstanceTypeSourceMongodbUpdateReplicaSet(sourceMongodbUpdateReplicaSet SourceMongodbUpdateReplicaSet) SourceMongodbUpdateMongoDbInstanceType { + typ := SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateReplicaSet return SourceMongodbUpdateMongoDbInstanceType{ - ReplicaSet: &replicaSet, - Type: typ, + SourceMongodbUpdateReplicaSet: &sourceMongodbUpdateReplicaSet, + Type: typ, } } -func CreateSourceMongodbUpdateMongoDbInstanceTypeMongoDBAtlas(mongoDBAtlas SourceMongodbUpdateMongoDBAtlas) SourceMongodbUpdateMongoDbInstanceType { - typ := SourceMongodbUpdateMongoDbInstanceTypeTypeMongoDBAtlas +func CreateSourceMongodbUpdateMongoDbInstanceTypeSourceMongodbUpdateMongoDBAtlas(sourceMongodbUpdateMongoDBAtlas SourceMongodbUpdateMongoDBAtlas) SourceMongodbUpdateMongoDbInstanceType { + typ := SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDBAtlas return SourceMongodbUpdateMongoDbInstanceType{ - MongoDBAtlas: &mongoDBAtlas, - Type: typ, + SourceMongodbUpdateMongoDBAtlas: &sourceMongodbUpdateMongoDBAtlas, + Type: typ, } } func (u *SourceMongodbUpdateMongoDbInstanceType) UnmarshalJSON(data []byte) error { - standaloneMongoDbInstance := new(SourceMongodbUpdateStandaloneMongoDbInstance) - if err := utils.UnmarshalJSON(data, &standaloneMongoDbInstance, "", true, true); err == nil { - u.StandaloneMongoDbInstance = standaloneMongoDbInstance - u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeStandaloneMongoDbInstance + sourceMongodbUpdateStandaloneMongoDbInstance := new(SourceMongodbUpdateStandaloneMongoDbInstance) + if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateStandaloneMongoDbInstance, "", true, true); err == nil { + u.SourceMongodbUpdateStandaloneMongoDbInstance = sourceMongodbUpdateStandaloneMongoDbInstance + u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateStandaloneMongoDbInstance return nil } - replicaSet := new(SourceMongodbUpdateReplicaSet) - if err := utils.UnmarshalJSON(data, &replicaSet, "", true, true); err == nil { - u.ReplicaSet = replicaSet - u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeReplicaSet + sourceMongodbUpdateReplicaSet := new(SourceMongodbUpdateReplicaSet) + if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateReplicaSet, "", true, true); err == nil { + u.SourceMongodbUpdateReplicaSet = sourceMongodbUpdateReplicaSet + u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateReplicaSet return nil } - mongoDBAtlas := new(SourceMongodbUpdateMongoDBAtlas) - if err := utils.UnmarshalJSON(data, &mongoDBAtlas, "", true, true); err == nil { - u.MongoDBAtlas = mongoDBAtlas - u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeMongoDBAtlas + sourceMongodbUpdateMongoDBAtlas := new(SourceMongodbUpdateMongoDBAtlas) + if err := utils.UnmarshalJSON(data, &sourceMongodbUpdateMongoDBAtlas, "", true, true); err == nil { + u.SourceMongodbUpdateMongoDBAtlas = sourceMongodbUpdateMongoDBAtlas + u.Type = SourceMongodbUpdateMongoDbInstanceTypeTypeSourceMongodbUpdateMongoDBAtlas return nil } @@ -264,16 +264,16 @@ func (u *SourceMongodbUpdateMongoDbInstanceType) UnmarshalJSON(data []byte) erro } func (u SourceMongodbUpdateMongoDbInstanceType) MarshalJSON() ([]byte, error) { - if u.StandaloneMongoDbInstance != nil { - return utils.MarshalJSON(u.StandaloneMongoDbInstance, "", true) + if u.SourceMongodbUpdateStandaloneMongoDbInstance != nil { + return utils.MarshalJSON(u.SourceMongodbUpdateStandaloneMongoDbInstance, "", true) } - if u.ReplicaSet != nil { - return utils.MarshalJSON(u.ReplicaSet, "", true) + if u.SourceMongodbUpdateReplicaSet != nil { + return utils.MarshalJSON(u.SourceMongodbUpdateReplicaSet, "", true) } - if u.MongoDBAtlas != nil { - return utils.MarshalJSON(u.MongoDBAtlas, "", true) + if u.SourceMongodbUpdateMongoDBAtlas != nil { + return utils.MarshalJSON(u.SourceMongodbUpdateMongoDBAtlas, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemssql.go b/internal/sdk/pkg/models/shared/sourcemssql.go index 5db70632d..df9d16a8f 100644 --- a/internal/sdk/pkg/models/shared/sourcemssql.go +++ b/internal/sdk/pkg/models/shared/sourcemssql.go @@ -183,48 +183,48 @@ func (o *SourceMssqlReadChangesUsingChangeDataCaptureCDC) GetSnapshotIsolation() type SourceMssqlUpdateMethodType string const ( - SourceMssqlUpdateMethodTypeReadChangesUsingChangeDataCaptureCDC SourceMssqlUpdateMethodType = "ReadChangesUsingChangeDataCaptureCDC" - SourceMssqlUpdateMethodTypeScanChangesWithUserDefinedCursor SourceMssqlUpdateMethodType = "ScanChangesWithUserDefinedCursor" + SourceMssqlUpdateMethodTypeSourceMssqlReadChangesUsingChangeDataCaptureCDC SourceMssqlUpdateMethodType = "source-mssql_Read Changes using Change Data Capture (CDC)" + SourceMssqlUpdateMethodTypeSourceMssqlScanChangesWithUserDefinedCursor SourceMssqlUpdateMethodType = "source-mssql_Scan Changes with User Defined Cursor" ) type SourceMssqlUpdateMethod struct { - ReadChangesUsingChangeDataCaptureCDC *SourceMssqlReadChangesUsingChangeDataCaptureCDC - ScanChangesWithUserDefinedCursor *SourceMssqlScanChangesWithUserDefinedCursor + SourceMssqlReadChangesUsingChangeDataCaptureCDC *SourceMssqlReadChangesUsingChangeDataCaptureCDC + SourceMssqlScanChangesWithUserDefinedCursor *SourceMssqlScanChangesWithUserDefinedCursor Type SourceMssqlUpdateMethodType } -func CreateSourceMssqlUpdateMethodReadChangesUsingChangeDataCaptureCDC(readChangesUsingChangeDataCaptureCDC SourceMssqlReadChangesUsingChangeDataCaptureCDC) SourceMssqlUpdateMethod { - typ := SourceMssqlUpdateMethodTypeReadChangesUsingChangeDataCaptureCDC +func CreateSourceMssqlUpdateMethodSourceMssqlReadChangesUsingChangeDataCaptureCDC(sourceMssqlReadChangesUsingChangeDataCaptureCDC SourceMssqlReadChangesUsingChangeDataCaptureCDC) SourceMssqlUpdateMethod { + typ := SourceMssqlUpdateMethodTypeSourceMssqlReadChangesUsingChangeDataCaptureCDC return SourceMssqlUpdateMethod{ - ReadChangesUsingChangeDataCaptureCDC: &readChangesUsingChangeDataCaptureCDC, - Type: typ, + SourceMssqlReadChangesUsingChangeDataCaptureCDC: &sourceMssqlReadChangesUsingChangeDataCaptureCDC, + Type: typ, } } -func CreateSourceMssqlUpdateMethodScanChangesWithUserDefinedCursor(scanChangesWithUserDefinedCursor SourceMssqlScanChangesWithUserDefinedCursor) SourceMssqlUpdateMethod { - typ := SourceMssqlUpdateMethodTypeScanChangesWithUserDefinedCursor +func CreateSourceMssqlUpdateMethodSourceMssqlScanChangesWithUserDefinedCursor(sourceMssqlScanChangesWithUserDefinedCursor SourceMssqlScanChangesWithUserDefinedCursor) SourceMssqlUpdateMethod { + typ := SourceMssqlUpdateMethodTypeSourceMssqlScanChangesWithUserDefinedCursor return SourceMssqlUpdateMethod{ - ScanChangesWithUserDefinedCursor: &scanChangesWithUserDefinedCursor, - Type: typ, + SourceMssqlScanChangesWithUserDefinedCursor: &sourceMssqlScanChangesWithUserDefinedCursor, + Type: typ, } } func (u *SourceMssqlUpdateMethod) UnmarshalJSON(data []byte) error { - scanChangesWithUserDefinedCursor := new(SourceMssqlScanChangesWithUserDefinedCursor) - if err := utils.UnmarshalJSON(data, &scanChangesWithUserDefinedCursor, "", true, true); err == nil { - u.ScanChangesWithUserDefinedCursor = scanChangesWithUserDefinedCursor - u.Type = SourceMssqlUpdateMethodTypeScanChangesWithUserDefinedCursor + sourceMssqlScanChangesWithUserDefinedCursor := new(SourceMssqlScanChangesWithUserDefinedCursor) + if err := utils.UnmarshalJSON(data, &sourceMssqlScanChangesWithUserDefinedCursor, "", true, true); err == nil { + u.SourceMssqlScanChangesWithUserDefinedCursor = sourceMssqlScanChangesWithUserDefinedCursor + u.Type = SourceMssqlUpdateMethodTypeSourceMssqlScanChangesWithUserDefinedCursor return nil } - readChangesUsingChangeDataCaptureCDC := new(SourceMssqlReadChangesUsingChangeDataCaptureCDC) - if err := utils.UnmarshalJSON(data, &readChangesUsingChangeDataCaptureCDC, "", true, true); err == nil { - u.ReadChangesUsingChangeDataCaptureCDC = readChangesUsingChangeDataCaptureCDC - u.Type = SourceMssqlUpdateMethodTypeReadChangesUsingChangeDataCaptureCDC + sourceMssqlReadChangesUsingChangeDataCaptureCDC := new(SourceMssqlReadChangesUsingChangeDataCaptureCDC) + if err := utils.UnmarshalJSON(data, &sourceMssqlReadChangesUsingChangeDataCaptureCDC, "", true, true); err == nil { + u.SourceMssqlReadChangesUsingChangeDataCaptureCDC = sourceMssqlReadChangesUsingChangeDataCaptureCDC + u.Type = SourceMssqlUpdateMethodTypeSourceMssqlReadChangesUsingChangeDataCaptureCDC return nil } @@ -232,12 +232,12 @@ func (u *SourceMssqlUpdateMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlUpdateMethod) MarshalJSON() ([]byte, error) { - if u.ReadChangesUsingChangeDataCaptureCDC != nil { - return utils.MarshalJSON(u.ReadChangesUsingChangeDataCaptureCDC, "", true) + if u.SourceMssqlReadChangesUsingChangeDataCaptureCDC != nil { + return utils.MarshalJSON(u.SourceMssqlReadChangesUsingChangeDataCaptureCDC, "", true) } - if u.ScanChangesWithUserDefinedCursor != nil { - return utils.MarshalJSON(u.ScanChangesWithUserDefinedCursor, "", true) + if u.SourceMssqlScanChangesWithUserDefinedCursor != nil { + return utils.MarshalJSON(u.SourceMssqlScanChangesWithUserDefinedCursor, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -367,48 +367,48 @@ func (o *SourceMssqlEncryptedTrustServerCertificate) GetSslMethod() SourceMssqlS type SourceMssqlSSLMethodType string const ( - SourceMssqlSSLMethodTypeEncryptedTrustServerCertificate SourceMssqlSSLMethodType = "EncryptedTrustServerCertificate" - SourceMssqlSSLMethodTypeEncryptedVerifyCertificate SourceMssqlSSLMethodType = "EncryptedVerifyCertificate" + SourceMssqlSSLMethodTypeSourceMssqlEncryptedTrustServerCertificate SourceMssqlSSLMethodType = "source-mssql_Encrypted (trust server certificate)" + SourceMssqlSSLMethodTypeSourceMssqlEncryptedVerifyCertificate SourceMssqlSSLMethodType = "source-mssql_Encrypted (verify certificate)" ) type SourceMssqlSSLMethod struct { - EncryptedTrustServerCertificate *SourceMssqlEncryptedTrustServerCertificate - EncryptedVerifyCertificate *SourceMssqlEncryptedVerifyCertificate + SourceMssqlEncryptedTrustServerCertificate *SourceMssqlEncryptedTrustServerCertificate + SourceMssqlEncryptedVerifyCertificate *SourceMssqlEncryptedVerifyCertificate Type SourceMssqlSSLMethodType } -func CreateSourceMssqlSSLMethodEncryptedTrustServerCertificate(encryptedTrustServerCertificate SourceMssqlEncryptedTrustServerCertificate) SourceMssqlSSLMethod { - typ := SourceMssqlSSLMethodTypeEncryptedTrustServerCertificate +func CreateSourceMssqlSSLMethodSourceMssqlEncryptedTrustServerCertificate(sourceMssqlEncryptedTrustServerCertificate SourceMssqlEncryptedTrustServerCertificate) SourceMssqlSSLMethod { + typ := SourceMssqlSSLMethodTypeSourceMssqlEncryptedTrustServerCertificate return SourceMssqlSSLMethod{ - EncryptedTrustServerCertificate: &encryptedTrustServerCertificate, - Type: typ, + SourceMssqlEncryptedTrustServerCertificate: &sourceMssqlEncryptedTrustServerCertificate, + Type: typ, } } -func CreateSourceMssqlSSLMethodEncryptedVerifyCertificate(encryptedVerifyCertificate SourceMssqlEncryptedVerifyCertificate) SourceMssqlSSLMethod { - typ := SourceMssqlSSLMethodTypeEncryptedVerifyCertificate +func CreateSourceMssqlSSLMethodSourceMssqlEncryptedVerifyCertificate(sourceMssqlEncryptedVerifyCertificate SourceMssqlEncryptedVerifyCertificate) SourceMssqlSSLMethod { + typ := SourceMssqlSSLMethodTypeSourceMssqlEncryptedVerifyCertificate return SourceMssqlSSLMethod{ - EncryptedVerifyCertificate: &encryptedVerifyCertificate, - Type: typ, + SourceMssqlEncryptedVerifyCertificate: &sourceMssqlEncryptedVerifyCertificate, + Type: typ, } } func (u *SourceMssqlSSLMethod) UnmarshalJSON(data []byte) error { - encryptedTrustServerCertificate := new(SourceMssqlEncryptedTrustServerCertificate) - if err := utils.UnmarshalJSON(data, &encryptedTrustServerCertificate, "", true, true); err == nil { - u.EncryptedTrustServerCertificate = encryptedTrustServerCertificate - u.Type = SourceMssqlSSLMethodTypeEncryptedTrustServerCertificate + sourceMssqlEncryptedTrustServerCertificate := new(SourceMssqlEncryptedTrustServerCertificate) + if err := utils.UnmarshalJSON(data, &sourceMssqlEncryptedTrustServerCertificate, "", true, true); err == nil { + u.SourceMssqlEncryptedTrustServerCertificate = sourceMssqlEncryptedTrustServerCertificate + u.Type = SourceMssqlSSLMethodTypeSourceMssqlEncryptedTrustServerCertificate return nil } - encryptedVerifyCertificate := new(SourceMssqlEncryptedVerifyCertificate) - if err := utils.UnmarshalJSON(data, &encryptedVerifyCertificate, "", true, true); err == nil { - u.EncryptedVerifyCertificate = encryptedVerifyCertificate - u.Type = SourceMssqlSSLMethodTypeEncryptedVerifyCertificate + sourceMssqlEncryptedVerifyCertificate := new(SourceMssqlEncryptedVerifyCertificate) + if err := utils.UnmarshalJSON(data, &sourceMssqlEncryptedVerifyCertificate, "", true, true); err == nil { + u.SourceMssqlEncryptedVerifyCertificate = sourceMssqlEncryptedVerifyCertificate + u.Type = SourceMssqlSSLMethodTypeSourceMssqlEncryptedVerifyCertificate return nil } @@ -416,12 +416,12 @@ func (u *SourceMssqlSSLMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlSSLMethod) MarshalJSON() ([]byte, error) { - if u.EncryptedTrustServerCertificate != nil { - return utils.MarshalJSON(u.EncryptedTrustServerCertificate, "", true) + if u.SourceMssqlEncryptedTrustServerCertificate != nil { + return utils.MarshalJSON(u.SourceMssqlEncryptedTrustServerCertificate, "", true) } - if u.EncryptedVerifyCertificate != nil { - return utils.MarshalJSON(u.EncryptedVerifyCertificate, "", true) + if u.SourceMssqlEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.SourceMssqlEncryptedVerifyCertificate, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -640,66 +640,66 @@ func (o *SourceMssqlNoTunnel) GetTunnelMethod() SourceMssqlTunnelMethod { type SourceMssqlSSHTunnelMethodType string const ( - SourceMssqlSSHTunnelMethodTypeNoTunnel SourceMssqlSSHTunnelMethodType = "NoTunnel" - SourceMssqlSSHTunnelMethodTypeSSHKeyAuthentication SourceMssqlSSHTunnelMethodType = "SSHKeyAuthentication" - SourceMssqlSSHTunnelMethodTypePasswordAuthentication SourceMssqlSSHTunnelMethodType = "PasswordAuthentication" + SourceMssqlSSHTunnelMethodTypeSourceMssqlNoTunnel SourceMssqlSSHTunnelMethodType = "source-mssql_No Tunnel" + SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHKeyAuthentication SourceMssqlSSHTunnelMethodType = "source-mssql_SSH Key Authentication" + SourceMssqlSSHTunnelMethodTypeSourceMssqlPasswordAuthentication SourceMssqlSSHTunnelMethodType = "source-mssql_Password Authentication" ) type SourceMssqlSSHTunnelMethod struct { - NoTunnel *SourceMssqlNoTunnel - SSHKeyAuthentication *SourceMssqlSSHKeyAuthentication - PasswordAuthentication *SourceMssqlPasswordAuthentication + SourceMssqlNoTunnel *SourceMssqlNoTunnel + SourceMssqlSSHKeyAuthentication *SourceMssqlSSHKeyAuthentication + SourceMssqlPasswordAuthentication *SourceMssqlPasswordAuthentication Type SourceMssqlSSHTunnelMethodType } -func CreateSourceMssqlSSHTunnelMethodNoTunnel(noTunnel SourceMssqlNoTunnel) SourceMssqlSSHTunnelMethod { - typ := SourceMssqlSSHTunnelMethodTypeNoTunnel +func CreateSourceMssqlSSHTunnelMethodSourceMssqlNoTunnel(sourceMssqlNoTunnel SourceMssqlNoTunnel) SourceMssqlSSHTunnelMethod { + typ := SourceMssqlSSHTunnelMethodTypeSourceMssqlNoTunnel return SourceMssqlSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceMssqlNoTunnel: &sourceMssqlNoTunnel, + Type: typ, } } -func CreateSourceMssqlSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceMssqlSSHKeyAuthentication) SourceMssqlSSHTunnelMethod { - typ := SourceMssqlSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceMssqlSSHTunnelMethodSourceMssqlSSHKeyAuthentication(sourceMssqlSSHKeyAuthentication SourceMssqlSSHKeyAuthentication) SourceMssqlSSHTunnelMethod { + typ := SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHKeyAuthentication return SourceMssqlSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceMssqlSSHKeyAuthentication: &sourceMssqlSSHKeyAuthentication, + Type: typ, } } -func CreateSourceMssqlSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceMssqlPasswordAuthentication) SourceMssqlSSHTunnelMethod { - typ := SourceMssqlSSHTunnelMethodTypePasswordAuthentication +func CreateSourceMssqlSSHTunnelMethodSourceMssqlPasswordAuthentication(sourceMssqlPasswordAuthentication SourceMssqlPasswordAuthentication) SourceMssqlSSHTunnelMethod { + typ := SourceMssqlSSHTunnelMethodTypeSourceMssqlPasswordAuthentication return SourceMssqlSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceMssqlPasswordAuthentication: &sourceMssqlPasswordAuthentication, + Type: typ, } } func (u *SourceMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceMssqlNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceMssqlSSHTunnelMethodTypeNoTunnel + sourceMssqlNoTunnel := new(SourceMssqlNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceMssqlNoTunnel, "", true, true); err == nil { + u.SourceMssqlNoTunnel = sourceMssqlNoTunnel + u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlNoTunnel return nil } - sshKeyAuthentication := new(SourceMssqlSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceMssqlSSHTunnelMethodTypeSSHKeyAuthentication + sourceMssqlSSHKeyAuthentication := new(SourceMssqlSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMssqlSSHKeyAuthentication, "", true, true); err == nil { + u.SourceMssqlSSHKeyAuthentication = sourceMssqlSSHKeyAuthentication + u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceMssqlPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceMssqlSSHTunnelMethodTypePasswordAuthentication + sourceMssqlPasswordAuthentication := new(SourceMssqlPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMssqlPasswordAuthentication, "", true, true); err == nil { + u.SourceMssqlPasswordAuthentication = sourceMssqlPasswordAuthentication + u.Type = SourceMssqlSSHTunnelMethodTypeSourceMssqlPasswordAuthentication return nil } @@ -707,16 +707,16 @@ func (u *SourceMssqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceMssqlNoTunnel != nil { + return utils.MarshalJSON(u.SourceMssqlNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceMssqlSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceMssqlSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceMssqlPasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceMssqlPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemssqlupdate.go b/internal/sdk/pkg/models/shared/sourcemssqlupdate.go index ad20b710a..1977e9dbf 100644 --- a/internal/sdk/pkg/models/shared/sourcemssqlupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemssqlupdate.go @@ -183,8 +183,8 @@ func (o *ReadChangesUsingChangeDataCaptureCDC) GetSnapshotIsolation() *InitialSn type UpdateMethodType string const ( - UpdateMethodTypeReadChangesUsingChangeDataCaptureCDC UpdateMethodType = "ReadChangesUsingChangeDataCaptureCDC" - UpdateMethodTypeScanChangesWithUserDefinedCursor UpdateMethodType = "ScanChangesWithUserDefinedCursor" + UpdateMethodTypeReadChangesUsingChangeDataCaptureCDC UpdateMethodType = "Read Changes using Change Data Capture (CDC)" + UpdateMethodTypeScanChangesWithUserDefinedCursor UpdateMethodType = "Scan Changes with User Defined Cursor" ) type UpdateMethod struct { @@ -343,48 +343,48 @@ func (o *SourceMssqlUpdateEncryptedTrustServerCertificate) GetSslMethod() Source type SourceMssqlUpdateSSLMethodType string const ( - SourceMssqlUpdateSSLMethodTypeEncryptedTrustServerCertificate SourceMssqlUpdateSSLMethodType = "EncryptedTrustServerCertificate" - SourceMssqlUpdateSSLMethodTypeEncryptedVerifyCertificate SourceMssqlUpdateSSLMethodType = "EncryptedVerifyCertificate" + SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedTrustServerCertificate SourceMssqlUpdateSSLMethodType = "source-mssql-update_Encrypted (trust server certificate)" + SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedVerifyCertificate SourceMssqlUpdateSSLMethodType = "source-mssql-update_Encrypted (verify certificate)" ) type SourceMssqlUpdateSSLMethod struct { - EncryptedTrustServerCertificate *SourceMssqlUpdateEncryptedTrustServerCertificate - EncryptedVerifyCertificate *SourceMssqlUpdateEncryptedVerifyCertificate + SourceMssqlUpdateEncryptedTrustServerCertificate *SourceMssqlUpdateEncryptedTrustServerCertificate + SourceMssqlUpdateEncryptedVerifyCertificate *SourceMssqlUpdateEncryptedVerifyCertificate Type SourceMssqlUpdateSSLMethodType } -func CreateSourceMssqlUpdateSSLMethodEncryptedTrustServerCertificate(encryptedTrustServerCertificate SourceMssqlUpdateEncryptedTrustServerCertificate) SourceMssqlUpdateSSLMethod { - typ := SourceMssqlUpdateSSLMethodTypeEncryptedTrustServerCertificate +func CreateSourceMssqlUpdateSSLMethodSourceMssqlUpdateEncryptedTrustServerCertificate(sourceMssqlUpdateEncryptedTrustServerCertificate SourceMssqlUpdateEncryptedTrustServerCertificate) SourceMssqlUpdateSSLMethod { + typ := SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedTrustServerCertificate return SourceMssqlUpdateSSLMethod{ - EncryptedTrustServerCertificate: &encryptedTrustServerCertificate, - Type: typ, + SourceMssqlUpdateEncryptedTrustServerCertificate: &sourceMssqlUpdateEncryptedTrustServerCertificate, + Type: typ, } } -func CreateSourceMssqlUpdateSSLMethodEncryptedVerifyCertificate(encryptedVerifyCertificate SourceMssqlUpdateEncryptedVerifyCertificate) SourceMssqlUpdateSSLMethod { - typ := SourceMssqlUpdateSSLMethodTypeEncryptedVerifyCertificate +func CreateSourceMssqlUpdateSSLMethodSourceMssqlUpdateEncryptedVerifyCertificate(sourceMssqlUpdateEncryptedVerifyCertificate SourceMssqlUpdateEncryptedVerifyCertificate) SourceMssqlUpdateSSLMethod { + typ := SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedVerifyCertificate return SourceMssqlUpdateSSLMethod{ - EncryptedVerifyCertificate: &encryptedVerifyCertificate, - Type: typ, + SourceMssqlUpdateEncryptedVerifyCertificate: &sourceMssqlUpdateEncryptedVerifyCertificate, + Type: typ, } } func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error { - encryptedTrustServerCertificate := new(SourceMssqlUpdateEncryptedTrustServerCertificate) - if err := utils.UnmarshalJSON(data, &encryptedTrustServerCertificate, "", true, true); err == nil { - u.EncryptedTrustServerCertificate = encryptedTrustServerCertificate - u.Type = SourceMssqlUpdateSSLMethodTypeEncryptedTrustServerCertificate + sourceMssqlUpdateEncryptedTrustServerCertificate := new(SourceMssqlUpdateEncryptedTrustServerCertificate) + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateEncryptedTrustServerCertificate, "", true, true); err == nil { + u.SourceMssqlUpdateEncryptedTrustServerCertificate = sourceMssqlUpdateEncryptedTrustServerCertificate + u.Type = SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedTrustServerCertificate return nil } - encryptedVerifyCertificate := new(SourceMssqlUpdateEncryptedVerifyCertificate) - if err := utils.UnmarshalJSON(data, &encryptedVerifyCertificate, "", true, true); err == nil { - u.EncryptedVerifyCertificate = encryptedVerifyCertificate - u.Type = SourceMssqlUpdateSSLMethodTypeEncryptedVerifyCertificate + sourceMssqlUpdateEncryptedVerifyCertificate := new(SourceMssqlUpdateEncryptedVerifyCertificate) + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateEncryptedVerifyCertificate, "", true, true); err == nil { + u.SourceMssqlUpdateEncryptedVerifyCertificate = sourceMssqlUpdateEncryptedVerifyCertificate + u.Type = SourceMssqlUpdateSSLMethodTypeSourceMssqlUpdateEncryptedVerifyCertificate return nil } @@ -392,12 +392,12 @@ func (u *SourceMssqlUpdateSSLMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlUpdateSSLMethod) MarshalJSON() ([]byte, error) { - if u.EncryptedTrustServerCertificate != nil { - return utils.MarshalJSON(u.EncryptedTrustServerCertificate, "", true) + if u.SourceMssqlUpdateEncryptedTrustServerCertificate != nil { + return utils.MarshalJSON(u.SourceMssqlUpdateEncryptedTrustServerCertificate, "", true) } - if u.EncryptedVerifyCertificate != nil { - return utils.MarshalJSON(u.EncryptedVerifyCertificate, "", true) + if u.SourceMssqlUpdateEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.SourceMssqlUpdateEncryptedVerifyCertificate, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -616,66 +616,66 @@ func (o *SourceMssqlUpdateNoTunnel) GetTunnelMethod() SourceMssqlUpdateTunnelMet type SourceMssqlUpdateSSHTunnelMethodType string const ( - SourceMssqlUpdateSSHTunnelMethodTypeNoTunnel SourceMssqlUpdateSSHTunnelMethodType = "NoTunnel" - SourceMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourceMssqlUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourceMssqlUpdateSSHTunnelMethodTypePasswordAuthentication SourceMssqlUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateNoTunnel SourceMssqlUpdateSSHTunnelMethodType = "source-mssql-update_No Tunnel" + SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHKeyAuthentication SourceMssqlUpdateSSHTunnelMethodType = "source-mssql-update_SSH Key Authentication" + SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdatePasswordAuthentication SourceMssqlUpdateSSHTunnelMethodType = "source-mssql-update_Password Authentication" ) type SourceMssqlUpdateSSHTunnelMethod struct { - NoTunnel *SourceMssqlUpdateNoTunnel - SSHKeyAuthentication *SourceMssqlUpdateSSHKeyAuthentication - PasswordAuthentication *SourceMssqlUpdatePasswordAuthentication + SourceMssqlUpdateNoTunnel *SourceMssqlUpdateNoTunnel + SourceMssqlUpdateSSHKeyAuthentication *SourceMssqlUpdateSSHKeyAuthentication + SourceMssqlUpdatePasswordAuthentication *SourceMssqlUpdatePasswordAuthentication Type SourceMssqlUpdateSSHTunnelMethodType } -func CreateSourceMssqlUpdateSSHTunnelMethodNoTunnel(noTunnel SourceMssqlUpdateNoTunnel) SourceMssqlUpdateSSHTunnelMethod { - typ := SourceMssqlUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourceMssqlUpdateSSHTunnelMethodSourceMssqlUpdateNoTunnel(sourceMssqlUpdateNoTunnel SourceMssqlUpdateNoTunnel) SourceMssqlUpdateSSHTunnelMethod { + typ := SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateNoTunnel return SourceMssqlUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceMssqlUpdateNoTunnel: &sourceMssqlUpdateNoTunnel, + Type: typ, } } -func CreateSourceMssqlUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceMssqlUpdateSSHKeyAuthentication) SourceMssqlUpdateSSHTunnelMethod { - typ := SourceMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceMssqlUpdateSSHTunnelMethodSourceMssqlUpdateSSHKeyAuthentication(sourceMssqlUpdateSSHKeyAuthentication SourceMssqlUpdateSSHKeyAuthentication) SourceMssqlUpdateSSHTunnelMethod { + typ := SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHKeyAuthentication return SourceMssqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceMssqlUpdateSSHKeyAuthentication: &sourceMssqlUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourceMssqlUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceMssqlUpdatePasswordAuthentication) SourceMssqlUpdateSSHTunnelMethod { - typ := SourceMssqlUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourceMssqlUpdateSSHTunnelMethodSourceMssqlUpdatePasswordAuthentication(sourceMssqlUpdatePasswordAuthentication SourceMssqlUpdatePasswordAuthentication) SourceMssqlUpdateSSHTunnelMethod { + typ := SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdatePasswordAuthentication return SourceMssqlUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceMssqlUpdatePasswordAuthentication: &sourceMssqlUpdatePasswordAuthentication, + Type: typ, } } func (u *SourceMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceMssqlUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceMssqlUpdateSSHTunnelMethodTypeNoTunnel + sourceMssqlUpdateNoTunnel := new(SourceMssqlUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateNoTunnel, "", true, true); err == nil { + u.SourceMssqlUpdateNoTunnel = sourceMssqlUpdateNoTunnel + u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourceMssqlUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourceMssqlUpdateSSHKeyAuthentication := new(SourceMssqlUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceMssqlUpdateSSHKeyAuthentication = sourceMssqlUpdateSSHKeyAuthentication + u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceMssqlUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceMssqlUpdateSSHTunnelMethodTypePasswordAuthentication + sourceMssqlUpdatePasswordAuthentication := new(SourceMssqlUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMssqlUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceMssqlUpdatePasswordAuthentication = sourceMssqlUpdatePasswordAuthentication + u.Type = SourceMssqlUpdateSSHTunnelMethodTypeSourceMssqlUpdatePasswordAuthentication return nil } @@ -683,16 +683,16 @@ func (u *SourceMssqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceMssqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceMssqlUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourceMssqlUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceMssqlUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceMssqlUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceMssqlUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceMssqlUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemysql.go b/internal/sdk/pkg/models/shared/sourcemysql.go index d73a0b779..10da141c2 100644 --- a/internal/sdk/pkg/models/shared/sourcemysql.go +++ b/internal/sdk/pkg/models/shared/sourcemysql.go @@ -118,48 +118,48 @@ func (o *SourceMysqlReadChangesUsingBinaryLogCDC) GetServerTimeZone() *string { type SourceMysqlUpdateMethodType string const ( - SourceMysqlUpdateMethodTypeReadChangesUsingBinaryLogCDC SourceMysqlUpdateMethodType = "ReadChangesUsingBinaryLogCDC" - SourceMysqlUpdateMethodTypeScanChangesWithUserDefinedCursor SourceMysqlUpdateMethodType = "ScanChangesWithUserDefinedCursor" + SourceMysqlUpdateMethodTypeSourceMysqlReadChangesUsingBinaryLogCDC SourceMysqlUpdateMethodType = "source-mysql_Read Changes using Binary Log (CDC)" + SourceMysqlUpdateMethodTypeSourceMysqlScanChangesWithUserDefinedCursor SourceMysqlUpdateMethodType = "source-mysql_Scan Changes with User Defined Cursor" ) type SourceMysqlUpdateMethod struct { - ReadChangesUsingBinaryLogCDC *SourceMysqlReadChangesUsingBinaryLogCDC - ScanChangesWithUserDefinedCursor *SourceMysqlScanChangesWithUserDefinedCursor + SourceMysqlReadChangesUsingBinaryLogCDC *SourceMysqlReadChangesUsingBinaryLogCDC + SourceMysqlScanChangesWithUserDefinedCursor *SourceMysqlScanChangesWithUserDefinedCursor Type SourceMysqlUpdateMethodType } -func CreateSourceMysqlUpdateMethodReadChangesUsingBinaryLogCDC(readChangesUsingBinaryLogCDC SourceMysqlReadChangesUsingBinaryLogCDC) SourceMysqlUpdateMethod { - typ := SourceMysqlUpdateMethodTypeReadChangesUsingBinaryLogCDC +func CreateSourceMysqlUpdateMethodSourceMysqlReadChangesUsingBinaryLogCDC(sourceMysqlReadChangesUsingBinaryLogCDC SourceMysqlReadChangesUsingBinaryLogCDC) SourceMysqlUpdateMethod { + typ := SourceMysqlUpdateMethodTypeSourceMysqlReadChangesUsingBinaryLogCDC return SourceMysqlUpdateMethod{ - ReadChangesUsingBinaryLogCDC: &readChangesUsingBinaryLogCDC, - Type: typ, + SourceMysqlReadChangesUsingBinaryLogCDC: &sourceMysqlReadChangesUsingBinaryLogCDC, + Type: typ, } } -func CreateSourceMysqlUpdateMethodScanChangesWithUserDefinedCursor(scanChangesWithUserDefinedCursor SourceMysqlScanChangesWithUserDefinedCursor) SourceMysqlUpdateMethod { - typ := SourceMysqlUpdateMethodTypeScanChangesWithUserDefinedCursor +func CreateSourceMysqlUpdateMethodSourceMysqlScanChangesWithUserDefinedCursor(sourceMysqlScanChangesWithUserDefinedCursor SourceMysqlScanChangesWithUserDefinedCursor) SourceMysqlUpdateMethod { + typ := SourceMysqlUpdateMethodTypeSourceMysqlScanChangesWithUserDefinedCursor return SourceMysqlUpdateMethod{ - ScanChangesWithUserDefinedCursor: &scanChangesWithUserDefinedCursor, - Type: typ, + SourceMysqlScanChangesWithUserDefinedCursor: &sourceMysqlScanChangesWithUserDefinedCursor, + Type: typ, } } func (u *SourceMysqlUpdateMethod) UnmarshalJSON(data []byte) error { - scanChangesWithUserDefinedCursor := new(SourceMysqlScanChangesWithUserDefinedCursor) - if err := utils.UnmarshalJSON(data, &scanChangesWithUserDefinedCursor, "", true, true); err == nil { - u.ScanChangesWithUserDefinedCursor = scanChangesWithUserDefinedCursor - u.Type = SourceMysqlUpdateMethodTypeScanChangesWithUserDefinedCursor + sourceMysqlScanChangesWithUserDefinedCursor := new(SourceMysqlScanChangesWithUserDefinedCursor) + if err := utils.UnmarshalJSON(data, &sourceMysqlScanChangesWithUserDefinedCursor, "", true, true); err == nil { + u.SourceMysqlScanChangesWithUserDefinedCursor = sourceMysqlScanChangesWithUserDefinedCursor + u.Type = SourceMysqlUpdateMethodTypeSourceMysqlScanChangesWithUserDefinedCursor return nil } - readChangesUsingBinaryLogCDC := new(SourceMysqlReadChangesUsingBinaryLogCDC) - if err := utils.UnmarshalJSON(data, &readChangesUsingBinaryLogCDC, "", true, true); err == nil { - u.ReadChangesUsingBinaryLogCDC = readChangesUsingBinaryLogCDC - u.Type = SourceMysqlUpdateMethodTypeReadChangesUsingBinaryLogCDC + sourceMysqlReadChangesUsingBinaryLogCDC := new(SourceMysqlReadChangesUsingBinaryLogCDC) + if err := utils.UnmarshalJSON(data, &sourceMysqlReadChangesUsingBinaryLogCDC, "", true, true); err == nil { + u.SourceMysqlReadChangesUsingBinaryLogCDC = sourceMysqlReadChangesUsingBinaryLogCDC + u.Type = SourceMysqlUpdateMethodTypeSourceMysqlReadChangesUsingBinaryLogCDC return nil } @@ -167,12 +167,12 @@ func (u *SourceMysqlUpdateMethod) UnmarshalJSON(data []byte) error { } func (u SourceMysqlUpdateMethod) MarshalJSON() ([]byte, error) { - if u.ReadChangesUsingBinaryLogCDC != nil { - return utils.MarshalJSON(u.ReadChangesUsingBinaryLogCDC, "", true) + if u.SourceMysqlReadChangesUsingBinaryLogCDC != nil { + return utils.MarshalJSON(u.SourceMysqlReadChangesUsingBinaryLogCDC, "", true) } - if u.ScanChangesWithUserDefinedCursor != nil { - return utils.MarshalJSON(u.ScanChangesWithUserDefinedCursor, "", true) + if u.SourceMysqlScanChangesWithUserDefinedCursor != nil { + return utils.MarshalJSON(u.SourceMysqlScanChangesWithUserDefinedCursor, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -453,84 +453,84 @@ func (o *SourceMysqlPreferred) GetMode() SourceMysqlMode { type SourceMysqlSSLModesType string const ( - SourceMysqlSSLModesTypePreferred SourceMysqlSSLModesType = "Preferred" - SourceMysqlSSLModesTypeRequired SourceMysqlSSLModesType = "Required" - SourceMysqlSSLModesTypeVerifyCA SourceMysqlSSLModesType = "VerifyCA" - SourceMysqlSSLModesTypeVerifyIdentity SourceMysqlSSLModesType = "VerifyIdentity" + SourceMysqlSSLModesTypeSourceMysqlPreferred SourceMysqlSSLModesType = "source-mysql_preferred" + SourceMysqlSSLModesTypeSourceMysqlRequired SourceMysqlSSLModesType = "source-mysql_required" + SourceMysqlSSLModesTypeSourceMysqlVerifyCA SourceMysqlSSLModesType = "source-mysql_Verify CA" + SourceMysqlSSLModesTypeSourceMysqlVerifyIdentity SourceMysqlSSLModesType = "source-mysql_Verify Identity" ) type SourceMysqlSSLModes struct { - Preferred *SourceMysqlPreferred - Required *SourceMysqlRequired - VerifyCA *SourceMysqlVerifyCA - VerifyIdentity *SourceMysqlVerifyIdentity + SourceMysqlPreferred *SourceMysqlPreferred + SourceMysqlRequired *SourceMysqlRequired + SourceMysqlVerifyCA *SourceMysqlVerifyCA + SourceMysqlVerifyIdentity *SourceMysqlVerifyIdentity Type SourceMysqlSSLModesType } -func CreateSourceMysqlSSLModesPreferred(preferred SourceMysqlPreferred) SourceMysqlSSLModes { - typ := SourceMysqlSSLModesTypePreferred +func CreateSourceMysqlSSLModesSourceMysqlPreferred(sourceMysqlPreferred SourceMysqlPreferred) SourceMysqlSSLModes { + typ := SourceMysqlSSLModesTypeSourceMysqlPreferred return SourceMysqlSSLModes{ - Preferred: &preferred, - Type: typ, + SourceMysqlPreferred: &sourceMysqlPreferred, + Type: typ, } } -func CreateSourceMysqlSSLModesRequired(required SourceMysqlRequired) SourceMysqlSSLModes { - typ := SourceMysqlSSLModesTypeRequired +func CreateSourceMysqlSSLModesSourceMysqlRequired(sourceMysqlRequired SourceMysqlRequired) SourceMysqlSSLModes { + typ := SourceMysqlSSLModesTypeSourceMysqlRequired return SourceMysqlSSLModes{ - Required: &required, - Type: typ, + SourceMysqlRequired: &sourceMysqlRequired, + Type: typ, } } -func CreateSourceMysqlSSLModesVerifyCA(verifyCA SourceMysqlVerifyCA) SourceMysqlSSLModes { - typ := SourceMysqlSSLModesTypeVerifyCA +func CreateSourceMysqlSSLModesSourceMysqlVerifyCA(sourceMysqlVerifyCA SourceMysqlVerifyCA) SourceMysqlSSLModes { + typ := SourceMysqlSSLModesTypeSourceMysqlVerifyCA return SourceMysqlSSLModes{ - VerifyCA: &verifyCA, - Type: typ, + SourceMysqlVerifyCA: &sourceMysqlVerifyCA, + Type: typ, } } -func CreateSourceMysqlSSLModesVerifyIdentity(verifyIdentity SourceMysqlVerifyIdentity) SourceMysqlSSLModes { - typ := SourceMysqlSSLModesTypeVerifyIdentity +func CreateSourceMysqlSSLModesSourceMysqlVerifyIdentity(sourceMysqlVerifyIdentity SourceMysqlVerifyIdentity) SourceMysqlSSLModes { + typ := SourceMysqlSSLModesTypeSourceMysqlVerifyIdentity return SourceMysqlSSLModes{ - VerifyIdentity: &verifyIdentity, - Type: typ, + SourceMysqlVerifyIdentity: &sourceMysqlVerifyIdentity, + Type: typ, } } func (u *SourceMysqlSSLModes) UnmarshalJSON(data []byte) error { - preferred := new(SourceMysqlPreferred) - if err := utils.UnmarshalJSON(data, &preferred, "", true, true); err == nil { - u.Preferred = preferred - u.Type = SourceMysqlSSLModesTypePreferred + sourceMysqlPreferred := new(SourceMysqlPreferred) + if err := utils.UnmarshalJSON(data, &sourceMysqlPreferred, "", true, true); err == nil { + u.SourceMysqlPreferred = sourceMysqlPreferred + u.Type = SourceMysqlSSLModesTypeSourceMysqlPreferred return nil } - required := new(SourceMysqlRequired) - if err := utils.UnmarshalJSON(data, &required, "", true, true); err == nil { - u.Required = required - u.Type = SourceMysqlSSLModesTypeRequired + sourceMysqlRequired := new(SourceMysqlRequired) + if err := utils.UnmarshalJSON(data, &sourceMysqlRequired, "", true, true); err == nil { + u.SourceMysqlRequired = sourceMysqlRequired + u.Type = SourceMysqlSSLModesTypeSourceMysqlRequired return nil } - verifyCA := new(SourceMysqlVerifyCA) - if err := utils.UnmarshalJSON(data, &verifyCA, "", true, true); err == nil { - u.VerifyCA = verifyCA - u.Type = SourceMysqlSSLModesTypeVerifyCA + sourceMysqlVerifyCA := new(SourceMysqlVerifyCA) + if err := utils.UnmarshalJSON(data, &sourceMysqlVerifyCA, "", true, true); err == nil { + u.SourceMysqlVerifyCA = sourceMysqlVerifyCA + u.Type = SourceMysqlSSLModesTypeSourceMysqlVerifyCA return nil } - verifyIdentity := new(SourceMysqlVerifyIdentity) - if err := utils.UnmarshalJSON(data, &verifyIdentity, "", true, true); err == nil { - u.VerifyIdentity = verifyIdentity - u.Type = SourceMysqlSSLModesTypeVerifyIdentity + sourceMysqlVerifyIdentity := new(SourceMysqlVerifyIdentity) + if err := utils.UnmarshalJSON(data, &sourceMysqlVerifyIdentity, "", true, true); err == nil { + u.SourceMysqlVerifyIdentity = sourceMysqlVerifyIdentity + u.Type = SourceMysqlSSLModesTypeSourceMysqlVerifyIdentity return nil } @@ -538,20 +538,20 @@ func (u *SourceMysqlSSLModes) UnmarshalJSON(data []byte) error { } func (u SourceMysqlSSLModes) MarshalJSON() ([]byte, error) { - if u.Preferred != nil { - return utils.MarshalJSON(u.Preferred, "", true) + if u.SourceMysqlPreferred != nil { + return utils.MarshalJSON(u.SourceMysqlPreferred, "", true) } - if u.Required != nil { - return utils.MarshalJSON(u.Required, "", true) + if u.SourceMysqlRequired != nil { + return utils.MarshalJSON(u.SourceMysqlRequired, "", true) } - if u.VerifyCA != nil { - return utils.MarshalJSON(u.VerifyCA, "", true) + if u.SourceMysqlVerifyCA != nil { + return utils.MarshalJSON(u.SourceMysqlVerifyCA, "", true) } - if u.VerifyIdentity != nil { - return utils.MarshalJSON(u.VerifyIdentity, "", true) + if u.SourceMysqlVerifyIdentity != nil { + return utils.MarshalJSON(u.SourceMysqlVerifyIdentity, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -770,66 +770,66 @@ func (o *SourceMysqlNoTunnel) GetTunnelMethod() SourceMysqlTunnelMethod { type SourceMysqlSSHTunnelMethodType string const ( - SourceMysqlSSHTunnelMethodTypeNoTunnel SourceMysqlSSHTunnelMethodType = "NoTunnel" - SourceMysqlSSHTunnelMethodTypeSSHKeyAuthentication SourceMysqlSSHTunnelMethodType = "SSHKeyAuthentication" - SourceMysqlSSHTunnelMethodTypePasswordAuthentication SourceMysqlSSHTunnelMethodType = "PasswordAuthentication" + SourceMysqlSSHTunnelMethodTypeSourceMysqlNoTunnel SourceMysqlSSHTunnelMethodType = "source-mysql_No Tunnel" + SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHKeyAuthentication SourceMysqlSSHTunnelMethodType = "source-mysql_SSH Key Authentication" + SourceMysqlSSHTunnelMethodTypeSourceMysqlPasswordAuthentication SourceMysqlSSHTunnelMethodType = "source-mysql_Password Authentication" ) type SourceMysqlSSHTunnelMethod struct { - NoTunnel *SourceMysqlNoTunnel - SSHKeyAuthentication *SourceMysqlSSHKeyAuthentication - PasswordAuthentication *SourceMysqlPasswordAuthentication + SourceMysqlNoTunnel *SourceMysqlNoTunnel + SourceMysqlSSHKeyAuthentication *SourceMysqlSSHKeyAuthentication + SourceMysqlPasswordAuthentication *SourceMysqlPasswordAuthentication Type SourceMysqlSSHTunnelMethodType } -func CreateSourceMysqlSSHTunnelMethodNoTunnel(noTunnel SourceMysqlNoTunnel) SourceMysqlSSHTunnelMethod { - typ := SourceMysqlSSHTunnelMethodTypeNoTunnel +func CreateSourceMysqlSSHTunnelMethodSourceMysqlNoTunnel(sourceMysqlNoTunnel SourceMysqlNoTunnel) SourceMysqlSSHTunnelMethod { + typ := SourceMysqlSSHTunnelMethodTypeSourceMysqlNoTunnel return SourceMysqlSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceMysqlNoTunnel: &sourceMysqlNoTunnel, + Type: typ, } } -func CreateSourceMysqlSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceMysqlSSHKeyAuthentication) SourceMysqlSSHTunnelMethod { - typ := SourceMysqlSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceMysqlSSHTunnelMethodSourceMysqlSSHKeyAuthentication(sourceMysqlSSHKeyAuthentication SourceMysqlSSHKeyAuthentication) SourceMysqlSSHTunnelMethod { + typ := SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHKeyAuthentication return SourceMysqlSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceMysqlSSHKeyAuthentication: &sourceMysqlSSHKeyAuthentication, + Type: typ, } } -func CreateSourceMysqlSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceMysqlPasswordAuthentication) SourceMysqlSSHTunnelMethod { - typ := SourceMysqlSSHTunnelMethodTypePasswordAuthentication +func CreateSourceMysqlSSHTunnelMethodSourceMysqlPasswordAuthentication(sourceMysqlPasswordAuthentication SourceMysqlPasswordAuthentication) SourceMysqlSSHTunnelMethod { + typ := SourceMysqlSSHTunnelMethodTypeSourceMysqlPasswordAuthentication return SourceMysqlSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceMysqlPasswordAuthentication: &sourceMysqlPasswordAuthentication, + Type: typ, } } func (u *SourceMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceMysqlNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceMysqlSSHTunnelMethodTypeNoTunnel + sourceMysqlNoTunnel := new(SourceMysqlNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceMysqlNoTunnel, "", true, true); err == nil { + u.SourceMysqlNoTunnel = sourceMysqlNoTunnel + u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlNoTunnel return nil } - sshKeyAuthentication := new(SourceMysqlSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceMysqlSSHTunnelMethodTypeSSHKeyAuthentication + sourceMysqlSSHKeyAuthentication := new(SourceMysqlSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMysqlSSHKeyAuthentication, "", true, true); err == nil { + u.SourceMysqlSSHKeyAuthentication = sourceMysqlSSHKeyAuthentication + u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceMysqlPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceMysqlSSHTunnelMethodTypePasswordAuthentication + sourceMysqlPasswordAuthentication := new(SourceMysqlPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMysqlPasswordAuthentication, "", true, true); err == nil { + u.SourceMysqlPasswordAuthentication = sourceMysqlPasswordAuthentication + u.Type = SourceMysqlSSHTunnelMethodTypeSourceMysqlPasswordAuthentication return nil } @@ -837,16 +837,16 @@ func (u *SourceMysqlSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceMysqlSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceMysqlNoTunnel != nil { + return utils.MarshalJSON(u.SourceMysqlNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceMysqlSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceMysqlSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceMysqlPasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceMysqlPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcemysqlupdate.go b/internal/sdk/pkg/models/shared/sourcemysqlupdate.go index 0866f26af..19c2d0f5c 100644 --- a/internal/sdk/pkg/models/shared/sourcemysqlupdate.go +++ b/internal/sdk/pkg/models/shared/sourcemysqlupdate.go @@ -118,13 +118,13 @@ func (o *ReadChangesUsingBinaryLogCDC) GetServerTimeZone() *string { type SourceMysqlUpdateUpdateMethodType string const ( - SourceMysqlUpdateUpdateMethodTypeReadChangesUsingBinaryLogCDC SourceMysqlUpdateUpdateMethodType = "ReadChangesUsingBinaryLogCDC" - SourceMysqlUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor SourceMysqlUpdateUpdateMethodType = "ScanChangesWithUserDefinedCursor" + SourceMysqlUpdateUpdateMethodTypeReadChangesUsingBinaryLogCDC SourceMysqlUpdateUpdateMethodType = "Read Changes using Binary Log (CDC)" + SourceMysqlUpdateUpdateMethodTypeSourceMysqlUpdateScanChangesWithUserDefinedCursor SourceMysqlUpdateUpdateMethodType = "source-mysql-update_Scan Changes with User Defined Cursor" ) type SourceMysqlUpdateUpdateMethod struct { - ReadChangesUsingBinaryLogCDC *ReadChangesUsingBinaryLogCDC - ScanChangesWithUserDefinedCursor *SourceMysqlUpdateScanChangesWithUserDefinedCursor + ReadChangesUsingBinaryLogCDC *ReadChangesUsingBinaryLogCDC + SourceMysqlUpdateScanChangesWithUserDefinedCursor *SourceMysqlUpdateScanChangesWithUserDefinedCursor Type SourceMysqlUpdateUpdateMethodType } @@ -138,21 +138,21 @@ func CreateSourceMysqlUpdateUpdateMethodReadChangesUsingBinaryLogCDC(readChanges } } -func CreateSourceMysqlUpdateUpdateMethodScanChangesWithUserDefinedCursor(scanChangesWithUserDefinedCursor SourceMysqlUpdateScanChangesWithUserDefinedCursor) SourceMysqlUpdateUpdateMethod { - typ := SourceMysqlUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor +func CreateSourceMysqlUpdateUpdateMethodSourceMysqlUpdateScanChangesWithUserDefinedCursor(sourceMysqlUpdateScanChangesWithUserDefinedCursor SourceMysqlUpdateScanChangesWithUserDefinedCursor) SourceMysqlUpdateUpdateMethod { + typ := SourceMysqlUpdateUpdateMethodTypeSourceMysqlUpdateScanChangesWithUserDefinedCursor return SourceMysqlUpdateUpdateMethod{ - ScanChangesWithUserDefinedCursor: &scanChangesWithUserDefinedCursor, - Type: typ, + SourceMysqlUpdateScanChangesWithUserDefinedCursor: &sourceMysqlUpdateScanChangesWithUserDefinedCursor, + Type: typ, } } func (u *SourceMysqlUpdateUpdateMethod) UnmarshalJSON(data []byte) error { - scanChangesWithUserDefinedCursor := new(SourceMysqlUpdateScanChangesWithUserDefinedCursor) - if err := utils.UnmarshalJSON(data, &scanChangesWithUserDefinedCursor, "", true, true); err == nil { - u.ScanChangesWithUserDefinedCursor = scanChangesWithUserDefinedCursor - u.Type = SourceMysqlUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor + sourceMysqlUpdateScanChangesWithUserDefinedCursor := new(SourceMysqlUpdateScanChangesWithUserDefinedCursor) + if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateScanChangesWithUserDefinedCursor, "", true, true); err == nil { + u.SourceMysqlUpdateScanChangesWithUserDefinedCursor = sourceMysqlUpdateScanChangesWithUserDefinedCursor + u.Type = SourceMysqlUpdateUpdateMethodTypeSourceMysqlUpdateScanChangesWithUserDefinedCursor return nil } @@ -171,8 +171,8 @@ func (u SourceMysqlUpdateUpdateMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.ReadChangesUsingBinaryLogCDC, "", true) } - if u.ScanChangesWithUserDefinedCursor != nil { - return utils.MarshalJSON(u.ScanChangesWithUserDefinedCursor, "", true) + if u.SourceMysqlUpdateScanChangesWithUserDefinedCursor != nil { + return utils.MarshalJSON(u.SourceMysqlUpdateScanChangesWithUserDefinedCursor, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -429,17 +429,17 @@ func (o *Preferred) GetMode() SourceMysqlUpdateMode { type SourceMysqlUpdateSSLModesType string const ( - SourceMysqlUpdateSSLModesTypePreferred SourceMysqlUpdateSSLModesType = "Preferred" - SourceMysqlUpdateSSLModesTypeRequired SourceMysqlUpdateSSLModesType = "Required" - SourceMysqlUpdateSSLModesTypeVerifyCA SourceMysqlUpdateSSLModesType = "VerifyCA" - SourceMysqlUpdateSSLModesTypeVerifyIdentity SourceMysqlUpdateSSLModesType = "VerifyIdentity" + SourceMysqlUpdateSSLModesTypePreferred SourceMysqlUpdateSSLModesType = "preferred" + SourceMysqlUpdateSSLModesTypeRequired SourceMysqlUpdateSSLModesType = "required" + SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateVerifyCA SourceMysqlUpdateSSLModesType = "source-mysql-update_Verify CA" + SourceMysqlUpdateSSLModesTypeVerifyIdentity SourceMysqlUpdateSSLModesType = "Verify Identity" ) type SourceMysqlUpdateSSLModes struct { - Preferred *Preferred - Required *Required - VerifyCA *SourceMysqlUpdateVerifyCA - VerifyIdentity *VerifyIdentity + Preferred *Preferred + Required *Required + SourceMysqlUpdateVerifyCA *SourceMysqlUpdateVerifyCA + VerifyIdentity *VerifyIdentity Type SourceMysqlUpdateSSLModesType } @@ -462,12 +462,12 @@ func CreateSourceMysqlUpdateSSLModesRequired(required Required) SourceMysqlUpdat } } -func CreateSourceMysqlUpdateSSLModesVerifyCA(verifyCA SourceMysqlUpdateVerifyCA) SourceMysqlUpdateSSLModes { - typ := SourceMysqlUpdateSSLModesTypeVerifyCA +func CreateSourceMysqlUpdateSSLModesSourceMysqlUpdateVerifyCA(sourceMysqlUpdateVerifyCA SourceMysqlUpdateVerifyCA) SourceMysqlUpdateSSLModes { + typ := SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateVerifyCA return SourceMysqlUpdateSSLModes{ - VerifyCA: &verifyCA, - Type: typ, + SourceMysqlUpdateVerifyCA: &sourceMysqlUpdateVerifyCA, + Type: typ, } } @@ -496,10 +496,10 @@ func (u *SourceMysqlUpdateSSLModes) UnmarshalJSON(data []byte) error { return nil } - verifyCA := new(SourceMysqlUpdateVerifyCA) - if err := utils.UnmarshalJSON(data, &verifyCA, "", true, true); err == nil { - u.VerifyCA = verifyCA - u.Type = SourceMysqlUpdateSSLModesTypeVerifyCA + sourceMysqlUpdateVerifyCA := new(SourceMysqlUpdateVerifyCA) + if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateVerifyCA, "", true, true); err == nil { + u.SourceMysqlUpdateVerifyCA = sourceMysqlUpdateVerifyCA + u.Type = SourceMysqlUpdateSSLModesTypeSourceMysqlUpdateVerifyCA return nil } @@ -522,8 +522,8 @@ func (u SourceMysqlUpdateSSLModes) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Required, "", true) } - if u.VerifyCA != nil { - return utils.MarshalJSON(u.VerifyCA, "", true) + if u.SourceMysqlUpdateVerifyCA != nil { + return utils.MarshalJSON(u.SourceMysqlUpdateVerifyCA, "", true) } if u.VerifyIdentity != nil { @@ -746,66 +746,66 @@ func (o *SourceMysqlUpdateNoTunnel) GetTunnelMethod() SourceMysqlUpdateTunnelMet type SourceMysqlUpdateSSHTunnelMethodType string const ( - SourceMysqlUpdateSSHTunnelMethodTypeNoTunnel SourceMysqlUpdateSSHTunnelMethodType = "NoTunnel" - SourceMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourceMysqlUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourceMysqlUpdateSSHTunnelMethodTypePasswordAuthentication SourceMysqlUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateNoTunnel SourceMysqlUpdateSSHTunnelMethodType = "source-mysql-update_No Tunnel" + SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHKeyAuthentication SourceMysqlUpdateSSHTunnelMethodType = "source-mysql-update_SSH Key Authentication" + SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdatePasswordAuthentication SourceMysqlUpdateSSHTunnelMethodType = "source-mysql-update_Password Authentication" ) type SourceMysqlUpdateSSHTunnelMethod struct { - NoTunnel *SourceMysqlUpdateNoTunnel - SSHKeyAuthentication *SourceMysqlUpdateSSHKeyAuthentication - PasswordAuthentication *SourceMysqlUpdatePasswordAuthentication + SourceMysqlUpdateNoTunnel *SourceMysqlUpdateNoTunnel + SourceMysqlUpdateSSHKeyAuthentication *SourceMysqlUpdateSSHKeyAuthentication + SourceMysqlUpdatePasswordAuthentication *SourceMysqlUpdatePasswordAuthentication Type SourceMysqlUpdateSSHTunnelMethodType } -func CreateSourceMysqlUpdateSSHTunnelMethodNoTunnel(noTunnel SourceMysqlUpdateNoTunnel) SourceMysqlUpdateSSHTunnelMethod { - typ := SourceMysqlUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourceMysqlUpdateSSHTunnelMethodSourceMysqlUpdateNoTunnel(sourceMysqlUpdateNoTunnel SourceMysqlUpdateNoTunnel) SourceMysqlUpdateSSHTunnelMethod { + typ := SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateNoTunnel return SourceMysqlUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceMysqlUpdateNoTunnel: &sourceMysqlUpdateNoTunnel, + Type: typ, } } -func CreateSourceMysqlUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceMysqlUpdateSSHKeyAuthentication) SourceMysqlUpdateSSHTunnelMethod { - typ := SourceMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceMysqlUpdateSSHTunnelMethodSourceMysqlUpdateSSHKeyAuthentication(sourceMysqlUpdateSSHKeyAuthentication SourceMysqlUpdateSSHKeyAuthentication) SourceMysqlUpdateSSHTunnelMethod { + typ := SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHKeyAuthentication return SourceMysqlUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceMysqlUpdateSSHKeyAuthentication: &sourceMysqlUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourceMysqlUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceMysqlUpdatePasswordAuthentication) SourceMysqlUpdateSSHTunnelMethod { - typ := SourceMysqlUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourceMysqlUpdateSSHTunnelMethodSourceMysqlUpdatePasswordAuthentication(sourceMysqlUpdatePasswordAuthentication SourceMysqlUpdatePasswordAuthentication) SourceMysqlUpdateSSHTunnelMethod { + typ := SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdatePasswordAuthentication return SourceMysqlUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceMysqlUpdatePasswordAuthentication: &sourceMysqlUpdatePasswordAuthentication, + Type: typ, } } func (u *SourceMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceMysqlUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceMysqlUpdateSSHTunnelMethodTypeNoTunnel + sourceMysqlUpdateNoTunnel := new(SourceMysqlUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateNoTunnel, "", true, true); err == nil { + u.SourceMysqlUpdateNoTunnel = sourceMysqlUpdateNoTunnel + u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourceMysqlUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourceMysqlUpdateSSHKeyAuthentication := new(SourceMysqlUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMysqlUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceMysqlUpdateSSHKeyAuthentication = sourceMysqlUpdateSSHKeyAuthentication + u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceMysqlUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceMysqlUpdateSSHTunnelMethodTypePasswordAuthentication + sourceMysqlUpdatePasswordAuthentication := new(SourceMysqlUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceMysqlUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceMysqlUpdatePasswordAuthentication = sourceMysqlUpdatePasswordAuthentication + u.Type = SourceMysqlUpdateSSHTunnelMethodTypeSourceMysqlUpdatePasswordAuthentication return nil } @@ -813,16 +813,16 @@ func (u *SourceMysqlUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceMysqlUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceMysqlUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourceMysqlUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceMysqlUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceMysqlUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceMysqlUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceMysqlUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcenotion.go b/internal/sdk/pkg/models/shared/sourcenotion.go index 0acc05961..d590f4586 100644 --- a/internal/sdk/pkg/models/shared/sourcenotion.go +++ b/internal/sdk/pkg/models/shared/sourcenotion.go @@ -137,48 +137,48 @@ func (o *SourceNotionOAuth20) GetClientSecret() string { type SourceNotionAuthenticateUsingType string const ( - SourceNotionAuthenticateUsingTypeOAuth20 SourceNotionAuthenticateUsingType = "OAuth20" - SourceNotionAuthenticateUsingTypeAccessToken SourceNotionAuthenticateUsingType = "AccessToken" + SourceNotionAuthenticateUsingTypeSourceNotionOAuth20 SourceNotionAuthenticateUsingType = "source-notion_OAuth2.0" + SourceNotionAuthenticateUsingTypeSourceNotionAccessToken SourceNotionAuthenticateUsingType = "source-notion_Access Token" ) type SourceNotionAuthenticateUsing struct { - OAuth20 *SourceNotionOAuth20 - AccessToken *SourceNotionAccessToken + SourceNotionOAuth20 *SourceNotionOAuth20 + SourceNotionAccessToken *SourceNotionAccessToken Type SourceNotionAuthenticateUsingType } -func CreateSourceNotionAuthenticateUsingOAuth20(oAuth20 SourceNotionOAuth20) SourceNotionAuthenticateUsing { - typ := SourceNotionAuthenticateUsingTypeOAuth20 +func CreateSourceNotionAuthenticateUsingSourceNotionOAuth20(sourceNotionOAuth20 SourceNotionOAuth20) SourceNotionAuthenticateUsing { + typ := SourceNotionAuthenticateUsingTypeSourceNotionOAuth20 return SourceNotionAuthenticateUsing{ - OAuth20: &oAuth20, - Type: typ, + SourceNotionOAuth20: &sourceNotionOAuth20, + Type: typ, } } -func CreateSourceNotionAuthenticateUsingAccessToken(accessToken SourceNotionAccessToken) SourceNotionAuthenticateUsing { - typ := SourceNotionAuthenticateUsingTypeAccessToken +func CreateSourceNotionAuthenticateUsingSourceNotionAccessToken(sourceNotionAccessToken SourceNotionAccessToken) SourceNotionAuthenticateUsing { + typ := SourceNotionAuthenticateUsingTypeSourceNotionAccessToken return SourceNotionAuthenticateUsing{ - AccessToken: &accessToken, - Type: typ, + SourceNotionAccessToken: &sourceNotionAccessToken, + Type: typ, } } func (u *SourceNotionAuthenticateUsing) UnmarshalJSON(data []byte) error { - accessToken := new(SourceNotionAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceNotionAuthenticateUsingTypeAccessToken + sourceNotionAccessToken := new(SourceNotionAccessToken) + if err := utils.UnmarshalJSON(data, &sourceNotionAccessToken, "", true, true); err == nil { + u.SourceNotionAccessToken = sourceNotionAccessToken + u.Type = SourceNotionAuthenticateUsingTypeSourceNotionAccessToken return nil } - oAuth20 := new(SourceNotionOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceNotionAuthenticateUsingTypeOAuth20 + sourceNotionOAuth20 := new(SourceNotionOAuth20) + if err := utils.UnmarshalJSON(data, &sourceNotionOAuth20, "", true, true); err == nil { + u.SourceNotionOAuth20 = sourceNotionOAuth20 + u.Type = SourceNotionAuthenticateUsingTypeSourceNotionOAuth20 return nil } @@ -186,12 +186,12 @@ func (u *SourceNotionAuthenticateUsing) UnmarshalJSON(data []byte) error { } func (u SourceNotionAuthenticateUsing) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceNotionOAuth20 != nil { + return utils.MarshalJSON(u.SourceNotionOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceNotionAccessToken != nil { + return utils.MarshalJSON(u.SourceNotionAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcenotionupdate.go b/internal/sdk/pkg/models/shared/sourcenotionupdate.go index 2fbf97627..91b27fc99 100644 --- a/internal/sdk/pkg/models/shared/sourcenotionupdate.go +++ b/internal/sdk/pkg/models/shared/sourcenotionupdate.go @@ -137,48 +137,48 @@ func (o *SourceNotionUpdateOAuth20) GetClientSecret() string { type AuthenticateUsingType string const ( - AuthenticateUsingTypeOAuth20 AuthenticateUsingType = "OAuth20" - AuthenticateUsingTypeAccessToken AuthenticateUsingType = "AccessToken" + AuthenticateUsingTypeSourceNotionUpdateOAuth20 AuthenticateUsingType = "source-notion-update_OAuth2.0" + AuthenticateUsingTypeSourceNotionUpdateAccessToken AuthenticateUsingType = "source-notion-update_Access Token" ) type AuthenticateUsing struct { - OAuth20 *SourceNotionUpdateOAuth20 - AccessToken *SourceNotionUpdateAccessToken + SourceNotionUpdateOAuth20 *SourceNotionUpdateOAuth20 + SourceNotionUpdateAccessToken *SourceNotionUpdateAccessToken Type AuthenticateUsingType } -func CreateAuthenticateUsingOAuth20(oAuth20 SourceNotionUpdateOAuth20) AuthenticateUsing { - typ := AuthenticateUsingTypeOAuth20 +func CreateAuthenticateUsingSourceNotionUpdateOAuth20(sourceNotionUpdateOAuth20 SourceNotionUpdateOAuth20) AuthenticateUsing { + typ := AuthenticateUsingTypeSourceNotionUpdateOAuth20 return AuthenticateUsing{ - OAuth20: &oAuth20, - Type: typ, + SourceNotionUpdateOAuth20: &sourceNotionUpdateOAuth20, + Type: typ, } } -func CreateAuthenticateUsingAccessToken(accessToken SourceNotionUpdateAccessToken) AuthenticateUsing { - typ := AuthenticateUsingTypeAccessToken +func CreateAuthenticateUsingSourceNotionUpdateAccessToken(sourceNotionUpdateAccessToken SourceNotionUpdateAccessToken) AuthenticateUsing { + typ := AuthenticateUsingTypeSourceNotionUpdateAccessToken return AuthenticateUsing{ - AccessToken: &accessToken, - Type: typ, + SourceNotionUpdateAccessToken: &sourceNotionUpdateAccessToken, + Type: typ, } } func (u *AuthenticateUsing) UnmarshalJSON(data []byte) error { - accessToken := new(SourceNotionUpdateAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = AuthenticateUsingTypeAccessToken + sourceNotionUpdateAccessToken := new(SourceNotionUpdateAccessToken) + if err := utils.UnmarshalJSON(data, &sourceNotionUpdateAccessToken, "", true, true); err == nil { + u.SourceNotionUpdateAccessToken = sourceNotionUpdateAccessToken + u.Type = AuthenticateUsingTypeSourceNotionUpdateAccessToken return nil } - oAuth20 := new(SourceNotionUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = AuthenticateUsingTypeOAuth20 + sourceNotionUpdateOAuth20 := new(SourceNotionUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceNotionUpdateOAuth20, "", true, true); err == nil { + u.SourceNotionUpdateOAuth20 = sourceNotionUpdateOAuth20 + u.Type = AuthenticateUsingTypeSourceNotionUpdateOAuth20 return nil } @@ -186,12 +186,12 @@ func (u *AuthenticateUsing) UnmarshalJSON(data []byte) error { } func (u AuthenticateUsing) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceNotionUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceNotionUpdateOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceNotionUpdateAccessToken != nil { + return utils.MarshalJSON(u.SourceNotionUpdateAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceokta.go b/internal/sdk/pkg/models/shared/sourceokta.go index 235ec0549..02bff15fc 100644 --- a/internal/sdk/pkg/models/shared/sourceokta.go +++ b/internal/sdk/pkg/models/shared/sourceokta.go @@ -134,48 +134,48 @@ func (o *SourceOktaOAuth20) GetRefreshToken() string { type SourceOktaAuthorizationMethodType string const ( - SourceOktaAuthorizationMethodTypeOAuth20 SourceOktaAuthorizationMethodType = "OAuth20" - SourceOktaAuthorizationMethodTypeAPIToken SourceOktaAuthorizationMethodType = "APIToken" + SourceOktaAuthorizationMethodTypeSourceOktaOAuth20 SourceOktaAuthorizationMethodType = "source-okta_OAuth2.0" + SourceOktaAuthorizationMethodTypeSourceOktaAPIToken SourceOktaAuthorizationMethodType = "source-okta_API Token" ) type SourceOktaAuthorizationMethod struct { - OAuth20 *SourceOktaOAuth20 - APIToken *SourceOktaAPIToken + SourceOktaOAuth20 *SourceOktaOAuth20 + SourceOktaAPIToken *SourceOktaAPIToken Type SourceOktaAuthorizationMethodType } -func CreateSourceOktaAuthorizationMethodOAuth20(oAuth20 SourceOktaOAuth20) SourceOktaAuthorizationMethod { - typ := SourceOktaAuthorizationMethodTypeOAuth20 +func CreateSourceOktaAuthorizationMethodSourceOktaOAuth20(sourceOktaOAuth20 SourceOktaOAuth20) SourceOktaAuthorizationMethod { + typ := SourceOktaAuthorizationMethodTypeSourceOktaOAuth20 return SourceOktaAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceOktaOAuth20: &sourceOktaOAuth20, + Type: typ, } } -func CreateSourceOktaAuthorizationMethodAPIToken(apiToken SourceOktaAPIToken) SourceOktaAuthorizationMethod { - typ := SourceOktaAuthorizationMethodTypeAPIToken +func CreateSourceOktaAuthorizationMethodSourceOktaAPIToken(sourceOktaAPIToken SourceOktaAPIToken) SourceOktaAuthorizationMethod { + typ := SourceOktaAuthorizationMethodTypeSourceOktaAPIToken return SourceOktaAuthorizationMethod{ - APIToken: &apiToken, - Type: typ, + SourceOktaAPIToken: &sourceOktaAPIToken, + Type: typ, } } func (u *SourceOktaAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiToken := new(SourceOktaAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceOktaAuthorizationMethodTypeAPIToken + sourceOktaAPIToken := new(SourceOktaAPIToken) + if err := utils.UnmarshalJSON(data, &sourceOktaAPIToken, "", true, true); err == nil { + u.SourceOktaAPIToken = sourceOktaAPIToken + u.Type = SourceOktaAuthorizationMethodTypeSourceOktaAPIToken return nil } - oAuth20 := new(SourceOktaOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceOktaAuthorizationMethodTypeOAuth20 + sourceOktaOAuth20 := new(SourceOktaOAuth20) + if err := utils.UnmarshalJSON(data, &sourceOktaOAuth20, "", true, true); err == nil { + u.SourceOktaOAuth20 = sourceOktaOAuth20 + u.Type = SourceOktaAuthorizationMethodTypeSourceOktaOAuth20 return nil } @@ -183,12 +183,12 @@ func (u *SourceOktaAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceOktaAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceOktaOAuth20 != nil { + return utils.MarshalJSON(u.SourceOktaOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceOktaAPIToken != nil { + return utils.MarshalJSON(u.SourceOktaAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceoktaupdate.go b/internal/sdk/pkg/models/shared/sourceoktaupdate.go index 9348cec9b..2315dfd80 100644 --- a/internal/sdk/pkg/models/shared/sourceoktaupdate.go +++ b/internal/sdk/pkg/models/shared/sourceoktaupdate.go @@ -134,48 +134,48 @@ func (o *SourceOktaUpdateOAuth20) GetRefreshToken() string { type SourceOktaUpdateAuthorizationMethodType string const ( - SourceOktaUpdateAuthorizationMethodTypeOAuth20 SourceOktaUpdateAuthorizationMethodType = "OAuth20" - SourceOktaUpdateAuthorizationMethodTypeAPIToken SourceOktaUpdateAuthorizationMethodType = "APIToken" + SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateOAuth20 SourceOktaUpdateAuthorizationMethodType = "source-okta-update_OAuth2.0" + SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAPIToken SourceOktaUpdateAuthorizationMethodType = "source-okta-update_API Token" ) type SourceOktaUpdateAuthorizationMethod struct { - OAuth20 *SourceOktaUpdateOAuth20 - APIToken *SourceOktaUpdateAPIToken + SourceOktaUpdateOAuth20 *SourceOktaUpdateOAuth20 + SourceOktaUpdateAPIToken *SourceOktaUpdateAPIToken Type SourceOktaUpdateAuthorizationMethodType } -func CreateSourceOktaUpdateAuthorizationMethodOAuth20(oAuth20 SourceOktaUpdateOAuth20) SourceOktaUpdateAuthorizationMethod { - typ := SourceOktaUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceOktaUpdateAuthorizationMethodSourceOktaUpdateOAuth20(sourceOktaUpdateOAuth20 SourceOktaUpdateOAuth20) SourceOktaUpdateAuthorizationMethod { + typ := SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateOAuth20 return SourceOktaUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceOktaUpdateOAuth20: &sourceOktaUpdateOAuth20, + Type: typ, } } -func CreateSourceOktaUpdateAuthorizationMethodAPIToken(apiToken SourceOktaUpdateAPIToken) SourceOktaUpdateAuthorizationMethod { - typ := SourceOktaUpdateAuthorizationMethodTypeAPIToken +func CreateSourceOktaUpdateAuthorizationMethodSourceOktaUpdateAPIToken(sourceOktaUpdateAPIToken SourceOktaUpdateAPIToken) SourceOktaUpdateAuthorizationMethod { + typ := SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAPIToken return SourceOktaUpdateAuthorizationMethod{ - APIToken: &apiToken, - Type: typ, + SourceOktaUpdateAPIToken: &sourceOktaUpdateAPIToken, + Type: typ, } } func (u *SourceOktaUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiToken := new(SourceOktaUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceOktaUpdateAuthorizationMethodTypeAPIToken + sourceOktaUpdateAPIToken := new(SourceOktaUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &sourceOktaUpdateAPIToken, "", true, true); err == nil { + u.SourceOktaUpdateAPIToken = sourceOktaUpdateAPIToken + u.Type = SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateAPIToken return nil } - oAuth20 := new(SourceOktaUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceOktaUpdateAuthorizationMethodTypeOAuth20 + sourceOktaUpdateOAuth20 := new(SourceOktaUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceOktaUpdateOAuth20, "", true, true); err == nil { + u.SourceOktaUpdateOAuth20 = sourceOktaUpdateOAuth20 + u.Type = SourceOktaUpdateAuthorizationMethodTypeSourceOktaUpdateOAuth20 return nil } @@ -183,12 +183,12 @@ func (u *SourceOktaUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceOktaUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceOktaUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceOktaUpdateOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceOktaUpdateAPIToken != nil { + return utils.MarshalJSON(u.SourceOktaUpdateAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceoracle.go b/internal/sdk/pkg/models/shared/sourceoracle.go index d7e59daef..944122851 100644 --- a/internal/sdk/pkg/models/shared/sourceoracle.go +++ b/internal/sdk/pkg/models/shared/sourceoracle.go @@ -116,48 +116,48 @@ func (o *SourceOracleServiceName) GetServiceName() string { type SourceOracleConnectByType string const ( - SourceOracleConnectByTypeServiceName SourceOracleConnectByType = "ServiceName" - SourceOracleConnectByTypeSystemIDSID SourceOracleConnectByType = "SystemIDSID" + SourceOracleConnectByTypeSourceOracleServiceName SourceOracleConnectByType = "source-oracle_Service name" + SourceOracleConnectByTypeSourceOracleSystemIDSID SourceOracleConnectByType = "source-oracle_System ID (SID)" ) type SourceOracleConnectBy struct { - ServiceName *SourceOracleServiceName - SystemIDSID *SourceOracleSystemIDSID + SourceOracleServiceName *SourceOracleServiceName + SourceOracleSystemIDSID *SourceOracleSystemIDSID Type SourceOracleConnectByType } -func CreateSourceOracleConnectByServiceName(serviceName SourceOracleServiceName) SourceOracleConnectBy { - typ := SourceOracleConnectByTypeServiceName +func CreateSourceOracleConnectBySourceOracleServiceName(sourceOracleServiceName SourceOracleServiceName) SourceOracleConnectBy { + typ := SourceOracleConnectByTypeSourceOracleServiceName return SourceOracleConnectBy{ - ServiceName: &serviceName, - Type: typ, + SourceOracleServiceName: &sourceOracleServiceName, + Type: typ, } } -func CreateSourceOracleConnectBySystemIDSID(systemIDSID SourceOracleSystemIDSID) SourceOracleConnectBy { - typ := SourceOracleConnectByTypeSystemIDSID +func CreateSourceOracleConnectBySourceOracleSystemIDSID(sourceOracleSystemIDSID SourceOracleSystemIDSID) SourceOracleConnectBy { + typ := SourceOracleConnectByTypeSourceOracleSystemIDSID return SourceOracleConnectBy{ - SystemIDSID: &systemIDSID, - Type: typ, + SourceOracleSystemIDSID: &sourceOracleSystemIDSID, + Type: typ, } } func (u *SourceOracleConnectBy) UnmarshalJSON(data []byte) error { - serviceName := new(SourceOracleServiceName) - if err := utils.UnmarshalJSON(data, &serviceName, "", true, true); err == nil { - u.ServiceName = serviceName - u.Type = SourceOracleConnectByTypeServiceName + sourceOracleServiceName := new(SourceOracleServiceName) + if err := utils.UnmarshalJSON(data, &sourceOracleServiceName, "", true, true); err == nil { + u.SourceOracleServiceName = sourceOracleServiceName + u.Type = SourceOracleConnectByTypeSourceOracleServiceName return nil } - systemIDSID := new(SourceOracleSystemIDSID) - if err := utils.UnmarshalJSON(data, &systemIDSID, "", true, true); err == nil { - u.SystemIDSID = systemIDSID - u.Type = SourceOracleConnectByTypeSystemIDSID + sourceOracleSystemIDSID := new(SourceOracleSystemIDSID) + if err := utils.UnmarshalJSON(data, &sourceOracleSystemIDSID, "", true, true); err == nil { + u.SourceOracleSystemIDSID = sourceOracleSystemIDSID + u.Type = SourceOracleConnectByTypeSourceOracleSystemIDSID return nil } @@ -165,12 +165,12 @@ func (u *SourceOracleConnectBy) UnmarshalJSON(data []byte) error { } func (u SourceOracleConnectBy) MarshalJSON() ([]byte, error) { - if u.ServiceName != nil { - return utils.MarshalJSON(u.ServiceName, "", true) + if u.SourceOracleServiceName != nil { + return utils.MarshalJSON(u.SourceOracleServiceName, "", true) } - if u.SystemIDSID != nil { - return utils.MarshalJSON(u.SystemIDSID, "", true) + if u.SourceOracleSystemIDSID != nil { + return utils.MarshalJSON(u.SourceOracleSystemIDSID, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -316,48 +316,48 @@ func (o *SourceOracleNativeNetworkEncryptionNNE) GetEncryptionMethod() *SourceOr type SourceOracleEncryptionType string const ( - SourceOracleEncryptionTypeNativeNetworkEncryptionNNE SourceOracleEncryptionType = "NativeNetworkEncryptionNNE" - SourceOracleEncryptionTypeTLSEncryptedVerifyCertificate SourceOracleEncryptionType = "TLSEncryptedVerifyCertificate" + SourceOracleEncryptionTypeSourceOracleNativeNetworkEncryptionNNE SourceOracleEncryptionType = "source-oracle_Native Network Encryption (NNE)" + SourceOracleEncryptionTypeSourceOracleTLSEncryptedVerifyCertificate SourceOracleEncryptionType = "source-oracle_TLS Encrypted (verify certificate)" ) type SourceOracleEncryption struct { - NativeNetworkEncryptionNNE *SourceOracleNativeNetworkEncryptionNNE - TLSEncryptedVerifyCertificate *SourceOracleTLSEncryptedVerifyCertificate + SourceOracleNativeNetworkEncryptionNNE *SourceOracleNativeNetworkEncryptionNNE + SourceOracleTLSEncryptedVerifyCertificate *SourceOracleTLSEncryptedVerifyCertificate Type SourceOracleEncryptionType } -func CreateSourceOracleEncryptionNativeNetworkEncryptionNNE(nativeNetworkEncryptionNNE SourceOracleNativeNetworkEncryptionNNE) SourceOracleEncryption { - typ := SourceOracleEncryptionTypeNativeNetworkEncryptionNNE +func CreateSourceOracleEncryptionSourceOracleNativeNetworkEncryptionNNE(sourceOracleNativeNetworkEncryptionNNE SourceOracleNativeNetworkEncryptionNNE) SourceOracleEncryption { + typ := SourceOracleEncryptionTypeSourceOracleNativeNetworkEncryptionNNE return SourceOracleEncryption{ - NativeNetworkEncryptionNNE: &nativeNetworkEncryptionNNE, - Type: typ, + SourceOracleNativeNetworkEncryptionNNE: &sourceOracleNativeNetworkEncryptionNNE, + Type: typ, } } -func CreateSourceOracleEncryptionTLSEncryptedVerifyCertificate(tlsEncryptedVerifyCertificate SourceOracleTLSEncryptedVerifyCertificate) SourceOracleEncryption { - typ := SourceOracleEncryptionTypeTLSEncryptedVerifyCertificate +func CreateSourceOracleEncryptionSourceOracleTLSEncryptedVerifyCertificate(sourceOracleTLSEncryptedVerifyCertificate SourceOracleTLSEncryptedVerifyCertificate) SourceOracleEncryption { + typ := SourceOracleEncryptionTypeSourceOracleTLSEncryptedVerifyCertificate return SourceOracleEncryption{ - TLSEncryptedVerifyCertificate: &tlsEncryptedVerifyCertificate, - Type: typ, + SourceOracleTLSEncryptedVerifyCertificate: &sourceOracleTLSEncryptedVerifyCertificate, + Type: typ, } } func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error { - nativeNetworkEncryptionNNE := new(SourceOracleNativeNetworkEncryptionNNE) - if err := utils.UnmarshalJSON(data, &nativeNetworkEncryptionNNE, "", true, true); err == nil { - u.NativeNetworkEncryptionNNE = nativeNetworkEncryptionNNE - u.Type = SourceOracleEncryptionTypeNativeNetworkEncryptionNNE + sourceOracleNativeNetworkEncryptionNNE := new(SourceOracleNativeNetworkEncryptionNNE) + if err := utils.UnmarshalJSON(data, &sourceOracleNativeNetworkEncryptionNNE, "", true, true); err == nil { + u.SourceOracleNativeNetworkEncryptionNNE = sourceOracleNativeNetworkEncryptionNNE + u.Type = SourceOracleEncryptionTypeSourceOracleNativeNetworkEncryptionNNE return nil } - tlsEncryptedVerifyCertificate := new(SourceOracleTLSEncryptedVerifyCertificate) - if err := utils.UnmarshalJSON(data, &tlsEncryptedVerifyCertificate, "", true, true); err == nil { - u.TLSEncryptedVerifyCertificate = tlsEncryptedVerifyCertificate - u.Type = SourceOracleEncryptionTypeTLSEncryptedVerifyCertificate + sourceOracleTLSEncryptedVerifyCertificate := new(SourceOracleTLSEncryptedVerifyCertificate) + if err := utils.UnmarshalJSON(data, &sourceOracleTLSEncryptedVerifyCertificate, "", true, true); err == nil { + u.SourceOracleTLSEncryptedVerifyCertificate = sourceOracleTLSEncryptedVerifyCertificate + u.Type = SourceOracleEncryptionTypeSourceOracleTLSEncryptedVerifyCertificate return nil } @@ -365,12 +365,12 @@ func (u *SourceOracleEncryption) UnmarshalJSON(data []byte) error { } func (u SourceOracleEncryption) MarshalJSON() ([]byte, error) { - if u.NativeNetworkEncryptionNNE != nil { - return utils.MarshalJSON(u.NativeNetworkEncryptionNNE, "", true) + if u.SourceOracleNativeNetworkEncryptionNNE != nil { + return utils.MarshalJSON(u.SourceOracleNativeNetworkEncryptionNNE, "", true) } - if u.TLSEncryptedVerifyCertificate != nil { - return utils.MarshalJSON(u.TLSEncryptedVerifyCertificate, "", true) + if u.SourceOracleTLSEncryptedVerifyCertificate != nil { + return utils.MarshalJSON(u.SourceOracleTLSEncryptedVerifyCertificate, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -613,66 +613,66 @@ func (o *SourceOracleNoTunnel) GetTunnelMethod() SourceOracleTunnelMethod { type SourceOracleSSHTunnelMethodType string const ( - SourceOracleSSHTunnelMethodTypeNoTunnel SourceOracleSSHTunnelMethodType = "NoTunnel" - SourceOracleSSHTunnelMethodTypeSSHKeyAuthentication SourceOracleSSHTunnelMethodType = "SSHKeyAuthentication" - SourceOracleSSHTunnelMethodTypePasswordAuthentication SourceOracleSSHTunnelMethodType = "PasswordAuthentication" + SourceOracleSSHTunnelMethodTypeSourceOracleNoTunnel SourceOracleSSHTunnelMethodType = "source-oracle_No Tunnel" + SourceOracleSSHTunnelMethodTypeSourceOracleSSHKeyAuthentication SourceOracleSSHTunnelMethodType = "source-oracle_SSH Key Authentication" + SourceOracleSSHTunnelMethodTypeSourceOraclePasswordAuthentication SourceOracleSSHTunnelMethodType = "source-oracle_Password Authentication" ) type SourceOracleSSHTunnelMethod struct { - NoTunnel *SourceOracleNoTunnel - SSHKeyAuthentication *SourceOracleSSHKeyAuthentication - PasswordAuthentication *SourceOraclePasswordAuthentication + SourceOracleNoTunnel *SourceOracleNoTunnel + SourceOracleSSHKeyAuthentication *SourceOracleSSHKeyAuthentication + SourceOraclePasswordAuthentication *SourceOraclePasswordAuthentication Type SourceOracleSSHTunnelMethodType } -func CreateSourceOracleSSHTunnelMethodNoTunnel(noTunnel SourceOracleNoTunnel) SourceOracleSSHTunnelMethod { - typ := SourceOracleSSHTunnelMethodTypeNoTunnel +func CreateSourceOracleSSHTunnelMethodSourceOracleNoTunnel(sourceOracleNoTunnel SourceOracleNoTunnel) SourceOracleSSHTunnelMethod { + typ := SourceOracleSSHTunnelMethodTypeSourceOracleNoTunnel return SourceOracleSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceOracleNoTunnel: &sourceOracleNoTunnel, + Type: typ, } } -func CreateSourceOracleSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceOracleSSHKeyAuthentication) SourceOracleSSHTunnelMethod { - typ := SourceOracleSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceOracleSSHTunnelMethodSourceOracleSSHKeyAuthentication(sourceOracleSSHKeyAuthentication SourceOracleSSHKeyAuthentication) SourceOracleSSHTunnelMethod { + typ := SourceOracleSSHTunnelMethodTypeSourceOracleSSHKeyAuthentication return SourceOracleSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceOracleSSHKeyAuthentication: &sourceOracleSSHKeyAuthentication, + Type: typ, } } -func CreateSourceOracleSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceOraclePasswordAuthentication) SourceOracleSSHTunnelMethod { - typ := SourceOracleSSHTunnelMethodTypePasswordAuthentication +func CreateSourceOracleSSHTunnelMethodSourceOraclePasswordAuthentication(sourceOraclePasswordAuthentication SourceOraclePasswordAuthentication) SourceOracleSSHTunnelMethod { + typ := SourceOracleSSHTunnelMethodTypeSourceOraclePasswordAuthentication return SourceOracleSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceOraclePasswordAuthentication: &sourceOraclePasswordAuthentication, + Type: typ, } } func (u *SourceOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceOracleNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceOracleSSHTunnelMethodTypeNoTunnel + sourceOracleNoTunnel := new(SourceOracleNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceOracleNoTunnel, "", true, true); err == nil { + u.SourceOracleNoTunnel = sourceOracleNoTunnel + u.Type = SourceOracleSSHTunnelMethodTypeSourceOracleNoTunnel return nil } - sshKeyAuthentication := new(SourceOracleSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceOracleSSHTunnelMethodTypeSSHKeyAuthentication + sourceOracleSSHKeyAuthentication := new(SourceOracleSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceOracleSSHKeyAuthentication, "", true, true); err == nil { + u.SourceOracleSSHKeyAuthentication = sourceOracleSSHKeyAuthentication + u.Type = SourceOracleSSHTunnelMethodTypeSourceOracleSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceOraclePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceOracleSSHTunnelMethodTypePasswordAuthentication + sourceOraclePasswordAuthentication := new(SourceOraclePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceOraclePasswordAuthentication, "", true, true); err == nil { + u.SourceOraclePasswordAuthentication = sourceOraclePasswordAuthentication + u.Type = SourceOracleSSHTunnelMethodTypeSourceOraclePasswordAuthentication return nil } @@ -680,16 +680,16 @@ func (u *SourceOracleSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceOracleSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceOracleNoTunnel != nil { + return utils.MarshalJSON(u.SourceOracleNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceOracleSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceOracleSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceOraclePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceOraclePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceoracleupdate.go b/internal/sdk/pkg/models/shared/sourceoracleupdate.go index 49826cf18..92681d044 100644 --- a/internal/sdk/pkg/models/shared/sourceoracleupdate.go +++ b/internal/sdk/pkg/models/shared/sourceoracleupdate.go @@ -116,8 +116,8 @@ func (o *ServiceName) GetServiceName() string { type ConnectByType string const ( - ConnectByTypeServiceName ConnectByType = "ServiceName" - ConnectByTypeSystemIDSID ConnectByType = "SystemIDSID" + ConnectByTypeServiceName ConnectByType = "Service name" + ConnectByTypeSystemIDSID ConnectByType = "System ID (SID)" ) type ConnectBy struct { @@ -316,8 +316,8 @@ func (o *NativeNetworkEncryptionNNE) GetEncryptionMethod() *EncryptionMethod { type EncryptionUnionType string const ( - EncryptionUnionTypeNativeNetworkEncryptionNNE EncryptionUnionType = "NativeNetworkEncryptionNNE" - EncryptionUnionTypeTLSEncryptedVerifyCertificate EncryptionUnionType = "TLSEncryptedVerifyCertificate" + EncryptionUnionTypeNativeNetworkEncryptionNNE EncryptionUnionType = "Native Network Encryption (NNE)" + EncryptionUnionTypeTLSEncryptedVerifyCertificate EncryptionUnionType = "TLS Encrypted (verify certificate)" ) type Encryption struct { @@ -589,66 +589,66 @@ func (o *SourceOracleUpdateNoTunnel) GetTunnelMethod() SourceOracleUpdateTunnelM type SourceOracleUpdateSSHTunnelMethodType string const ( - SourceOracleUpdateSSHTunnelMethodTypeNoTunnel SourceOracleUpdateSSHTunnelMethodType = "NoTunnel" - SourceOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourceOracleUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourceOracleUpdateSSHTunnelMethodTypePasswordAuthentication SourceOracleUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateNoTunnel SourceOracleUpdateSSHTunnelMethodType = "source-oracle-update_No Tunnel" + SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHKeyAuthentication SourceOracleUpdateSSHTunnelMethodType = "source-oracle-update_SSH Key Authentication" + SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdatePasswordAuthentication SourceOracleUpdateSSHTunnelMethodType = "source-oracle-update_Password Authentication" ) type SourceOracleUpdateSSHTunnelMethod struct { - NoTunnel *SourceOracleUpdateNoTunnel - SSHKeyAuthentication *SourceOracleUpdateSSHKeyAuthentication - PasswordAuthentication *SourceOracleUpdatePasswordAuthentication + SourceOracleUpdateNoTunnel *SourceOracleUpdateNoTunnel + SourceOracleUpdateSSHKeyAuthentication *SourceOracleUpdateSSHKeyAuthentication + SourceOracleUpdatePasswordAuthentication *SourceOracleUpdatePasswordAuthentication Type SourceOracleUpdateSSHTunnelMethodType } -func CreateSourceOracleUpdateSSHTunnelMethodNoTunnel(noTunnel SourceOracleUpdateNoTunnel) SourceOracleUpdateSSHTunnelMethod { - typ := SourceOracleUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourceOracleUpdateSSHTunnelMethodSourceOracleUpdateNoTunnel(sourceOracleUpdateNoTunnel SourceOracleUpdateNoTunnel) SourceOracleUpdateSSHTunnelMethod { + typ := SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateNoTunnel return SourceOracleUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourceOracleUpdateNoTunnel: &sourceOracleUpdateNoTunnel, + Type: typ, } } -func CreateSourceOracleUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourceOracleUpdateSSHKeyAuthentication) SourceOracleUpdateSSHTunnelMethod { - typ := SourceOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourceOracleUpdateSSHTunnelMethodSourceOracleUpdateSSHKeyAuthentication(sourceOracleUpdateSSHKeyAuthentication SourceOracleUpdateSSHKeyAuthentication) SourceOracleUpdateSSHTunnelMethod { + typ := SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHKeyAuthentication return SourceOracleUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceOracleUpdateSSHKeyAuthentication: &sourceOracleUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourceOracleUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourceOracleUpdatePasswordAuthentication) SourceOracleUpdateSSHTunnelMethod { - typ := SourceOracleUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourceOracleUpdateSSHTunnelMethodSourceOracleUpdatePasswordAuthentication(sourceOracleUpdatePasswordAuthentication SourceOracleUpdatePasswordAuthentication) SourceOracleUpdateSSHTunnelMethod { + typ := SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdatePasswordAuthentication return SourceOracleUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceOracleUpdatePasswordAuthentication: &sourceOracleUpdatePasswordAuthentication, + Type: typ, } } func (u *SourceOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourceOracleUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourceOracleUpdateSSHTunnelMethodTypeNoTunnel + sourceOracleUpdateNoTunnel := new(SourceOracleUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourceOracleUpdateNoTunnel, "", true, true); err == nil { + u.SourceOracleUpdateNoTunnel = sourceOracleUpdateNoTunnel + u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourceOracleUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceOracleUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourceOracleUpdateSSHKeyAuthentication := new(SourceOracleUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceOracleUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceOracleUpdateSSHKeyAuthentication = sourceOracleUpdateSSHKeyAuthentication + u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourceOracleUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceOracleUpdateSSHTunnelMethodTypePasswordAuthentication + sourceOracleUpdatePasswordAuthentication := new(SourceOracleUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceOracleUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceOracleUpdatePasswordAuthentication = sourceOracleUpdatePasswordAuthentication + u.Type = SourceOracleUpdateSSHTunnelMethodTypeSourceOracleUpdatePasswordAuthentication return nil } @@ -656,16 +656,16 @@ func (u *SourceOracleUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourceOracleUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourceOracleUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourceOracleUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceOracleUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceOracleUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceOracleUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceOracleUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go index be829a4e1..80a85c807 100644 --- a/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go +++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplify.go @@ -127,48 +127,48 @@ func (o *SourceOutbrainAmplifyAccessToken) GetType() SourceOutbrainAmplifyAccess type SourceOutbrainAmplifyAuthenticationMethodType string const ( - SourceOutbrainAmplifyAuthenticationMethodTypeAccessToken SourceOutbrainAmplifyAuthenticationMethodType = "AccessToken" - SourceOutbrainAmplifyAuthenticationMethodTypeUsernamePassword SourceOutbrainAmplifyAuthenticationMethodType = "UsernamePassword" + SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyAccessToken SourceOutbrainAmplifyAuthenticationMethodType = "source-outbrain-amplify_Access token" + SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyUsernamePassword SourceOutbrainAmplifyAuthenticationMethodType = "source-outbrain-amplify_Username Password" ) type SourceOutbrainAmplifyAuthenticationMethod struct { - AccessToken *SourceOutbrainAmplifyAccessToken - UsernamePassword *SourceOutbrainAmplifyUsernamePassword + SourceOutbrainAmplifyAccessToken *SourceOutbrainAmplifyAccessToken + SourceOutbrainAmplifyUsernamePassword *SourceOutbrainAmplifyUsernamePassword Type SourceOutbrainAmplifyAuthenticationMethodType } -func CreateSourceOutbrainAmplifyAuthenticationMethodAccessToken(accessToken SourceOutbrainAmplifyAccessToken) SourceOutbrainAmplifyAuthenticationMethod { - typ := SourceOutbrainAmplifyAuthenticationMethodTypeAccessToken +func CreateSourceOutbrainAmplifyAuthenticationMethodSourceOutbrainAmplifyAccessToken(sourceOutbrainAmplifyAccessToken SourceOutbrainAmplifyAccessToken) SourceOutbrainAmplifyAuthenticationMethod { + typ := SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyAccessToken return SourceOutbrainAmplifyAuthenticationMethod{ - AccessToken: &accessToken, - Type: typ, + SourceOutbrainAmplifyAccessToken: &sourceOutbrainAmplifyAccessToken, + Type: typ, } } -func CreateSourceOutbrainAmplifyAuthenticationMethodUsernamePassword(usernamePassword SourceOutbrainAmplifyUsernamePassword) SourceOutbrainAmplifyAuthenticationMethod { - typ := SourceOutbrainAmplifyAuthenticationMethodTypeUsernamePassword +func CreateSourceOutbrainAmplifyAuthenticationMethodSourceOutbrainAmplifyUsernamePassword(sourceOutbrainAmplifyUsernamePassword SourceOutbrainAmplifyUsernamePassword) SourceOutbrainAmplifyAuthenticationMethod { + typ := SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyUsernamePassword return SourceOutbrainAmplifyAuthenticationMethod{ - UsernamePassword: &usernamePassword, - Type: typ, + SourceOutbrainAmplifyUsernamePassword: &sourceOutbrainAmplifyUsernamePassword, + Type: typ, } } func (u *SourceOutbrainAmplifyAuthenticationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourceOutbrainAmplifyAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeAccessToken + sourceOutbrainAmplifyAccessToken := new(SourceOutbrainAmplifyAccessToken) + if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyAccessToken, "", true, true); err == nil { + u.SourceOutbrainAmplifyAccessToken = sourceOutbrainAmplifyAccessToken + u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyAccessToken return nil } - usernamePassword := new(SourceOutbrainAmplifyUsernamePassword) - if err := utils.UnmarshalJSON(data, &usernamePassword, "", true, true); err == nil { - u.UsernamePassword = usernamePassword - u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeUsernamePassword + sourceOutbrainAmplifyUsernamePassword := new(SourceOutbrainAmplifyUsernamePassword) + if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyUsernamePassword, "", true, true); err == nil { + u.SourceOutbrainAmplifyUsernamePassword = sourceOutbrainAmplifyUsernamePassword + u.Type = SourceOutbrainAmplifyAuthenticationMethodTypeSourceOutbrainAmplifyUsernamePassword return nil } @@ -176,12 +176,12 @@ func (u *SourceOutbrainAmplifyAuthenticationMethod) UnmarshalJSON(data []byte) e } func (u SourceOutbrainAmplifyAuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceOutbrainAmplifyAccessToken != nil { + return utils.MarshalJSON(u.SourceOutbrainAmplifyAccessToken, "", true) } - if u.UsernamePassword != nil { - return utils.MarshalJSON(u.UsernamePassword, "", true) + if u.SourceOutbrainAmplifyUsernamePassword != nil { + return utils.MarshalJSON(u.SourceOutbrainAmplifyUsernamePassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go index 380e3f22c..07ef97bd5 100644 --- a/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go +++ b/internal/sdk/pkg/models/shared/sourceoutbrainamplifyupdate.go @@ -127,48 +127,48 @@ func (o *SourceOutbrainAmplifyUpdateAccessToken) GetType() AccessTokenIsRequired type SourceOutbrainAmplifyUpdateAuthenticationMethodType string const ( - SourceOutbrainAmplifyUpdateAuthenticationMethodTypeAccessToken SourceOutbrainAmplifyUpdateAuthenticationMethodType = "AccessToken" - SourceOutbrainAmplifyUpdateAuthenticationMethodTypeUsernamePassword SourceOutbrainAmplifyUpdateAuthenticationMethodType = "UsernamePassword" + SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateAccessToken SourceOutbrainAmplifyUpdateAuthenticationMethodType = "source-outbrain-amplify-update_Access token" + SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateUsernamePassword SourceOutbrainAmplifyUpdateAuthenticationMethodType = "source-outbrain-amplify-update_Username Password" ) type SourceOutbrainAmplifyUpdateAuthenticationMethod struct { - AccessToken *SourceOutbrainAmplifyUpdateAccessToken - UsernamePassword *SourceOutbrainAmplifyUpdateUsernamePassword + SourceOutbrainAmplifyUpdateAccessToken *SourceOutbrainAmplifyUpdateAccessToken + SourceOutbrainAmplifyUpdateUsernamePassword *SourceOutbrainAmplifyUpdateUsernamePassword Type SourceOutbrainAmplifyUpdateAuthenticationMethodType } -func CreateSourceOutbrainAmplifyUpdateAuthenticationMethodAccessToken(accessToken SourceOutbrainAmplifyUpdateAccessToken) SourceOutbrainAmplifyUpdateAuthenticationMethod { - typ := SourceOutbrainAmplifyUpdateAuthenticationMethodTypeAccessToken +func CreateSourceOutbrainAmplifyUpdateAuthenticationMethodSourceOutbrainAmplifyUpdateAccessToken(sourceOutbrainAmplifyUpdateAccessToken SourceOutbrainAmplifyUpdateAccessToken) SourceOutbrainAmplifyUpdateAuthenticationMethod { + typ := SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateAccessToken return SourceOutbrainAmplifyUpdateAuthenticationMethod{ - AccessToken: &accessToken, - Type: typ, + SourceOutbrainAmplifyUpdateAccessToken: &sourceOutbrainAmplifyUpdateAccessToken, + Type: typ, } } -func CreateSourceOutbrainAmplifyUpdateAuthenticationMethodUsernamePassword(usernamePassword SourceOutbrainAmplifyUpdateUsernamePassword) SourceOutbrainAmplifyUpdateAuthenticationMethod { - typ := SourceOutbrainAmplifyUpdateAuthenticationMethodTypeUsernamePassword +func CreateSourceOutbrainAmplifyUpdateAuthenticationMethodSourceOutbrainAmplifyUpdateUsernamePassword(sourceOutbrainAmplifyUpdateUsernamePassword SourceOutbrainAmplifyUpdateUsernamePassword) SourceOutbrainAmplifyUpdateAuthenticationMethod { + typ := SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateUsernamePassword return SourceOutbrainAmplifyUpdateAuthenticationMethod{ - UsernamePassword: &usernamePassword, - Type: typ, + SourceOutbrainAmplifyUpdateUsernamePassword: &sourceOutbrainAmplifyUpdateUsernamePassword, + Type: typ, } } func (u *SourceOutbrainAmplifyUpdateAuthenticationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourceOutbrainAmplifyUpdateAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeAccessToken + sourceOutbrainAmplifyUpdateAccessToken := new(SourceOutbrainAmplifyUpdateAccessToken) + if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyUpdateAccessToken, "", true, true); err == nil { + u.SourceOutbrainAmplifyUpdateAccessToken = sourceOutbrainAmplifyUpdateAccessToken + u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateAccessToken return nil } - usernamePassword := new(SourceOutbrainAmplifyUpdateUsernamePassword) - if err := utils.UnmarshalJSON(data, &usernamePassword, "", true, true); err == nil { - u.UsernamePassword = usernamePassword - u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeUsernamePassword + sourceOutbrainAmplifyUpdateUsernamePassword := new(SourceOutbrainAmplifyUpdateUsernamePassword) + if err := utils.UnmarshalJSON(data, &sourceOutbrainAmplifyUpdateUsernamePassword, "", true, true); err == nil { + u.SourceOutbrainAmplifyUpdateUsernamePassword = sourceOutbrainAmplifyUpdateUsernamePassword + u.Type = SourceOutbrainAmplifyUpdateAuthenticationMethodTypeSourceOutbrainAmplifyUpdateUsernamePassword return nil } @@ -176,12 +176,12 @@ func (u *SourceOutbrainAmplifyUpdateAuthenticationMethod) UnmarshalJSON(data []b } func (u SourceOutbrainAmplifyUpdateAuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceOutbrainAmplifyUpdateAccessToken != nil { + return utils.MarshalJSON(u.SourceOutbrainAmplifyUpdateAccessToken, "", true) } - if u.UsernamePassword != nil { - return utils.MarshalJSON(u.UsernamePassword, "", true) + if u.SourceOutbrainAmplifyUpdateUsernamePassword != nil { + return utils.MarshalJSON(u.SourceOutbrainAmplifyUpdateUsernamePassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcepinterest.go b/internal/sdk/pkg/models/shared/sourcepinterest.go index 0b9d113a5..5335a9fe7 100644 --- a/internal/sdk/pkg/models/shared/sourcepinterest.go +++ b/internal/sdk/pkg/models/shared/sourcepinterest.go @@ -135,48 +135,48 @@ func (o *SourcePinterestOAuth20) GetRefreshToken() string { type SourcePinterestAuthorizationMethodType string const ( - SourcePinterestAuthorizationMethodTypeOAuth20 SourcePinterestAuthorizationMethodType = "OAuth20" - SourcePinterestAuthorizationMethodTypeAccessToken SourcePinterestAuthorizationMethodType = "AccessToken" + SourcePinterestAuthorizationMethodTypeSourcePinterestOAuth20 SourcePinterestAuthorizationMethodType = "source-pinterest_OAuth2.0" + SourcePinterestAuthorizationMethodTypeSourcePinterestAccessToken SourcePinterestAuthorizationMethodType = "source-pinterest_Access Token" ) type SourcePinterestAuthorizationMethod struct { - OAuth20 *SourcePinterestOAuth20 - AccessToken *SourcePinterestAccessToken + SourcePinterestOAuth20 *SourcePinterestOAuth20 + SourcePinterestAccessToken *SourcePinterestAccessToken Type SourcePinterestAuthorizationMethodType } -func CreateSourcePinterestAuthorizationMethodOAuth20(oAuth20 SourcePinterestOAuth20) SourcePinterestAuthorizationMethod { - typ := SourcePinterestAuthorizationMethodTypeOAuth20 +func CreateSourcePinterestAuthorizationMethodSourcePinterestOAuth20(sourcePinterestOAuth20 SourcePinterestOAuth20) SourcePinterestAuthorizationMethod { + typ := SourcePinterestAuthorizationMethodTypeSourcePinterestOAuth20 return SourcePinterestAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourcePinterestOAuth20: &sourcePinterestOAuth20, + Type: typ, } } -func CreateSourcePinterestAuthorizationMethodAccessToken(accessToken SourcePinterestAccessToken) SourcePinterestAuthorizationMethod { - typ := SourcePinterestAuthorizationMethodTypeAccessToken +func CreateSourcePinterestAuthorizationMethodSourcePinterestAccessToken(sourcePinterestAccessToken SourcePinterestAccessToken) SourcePinterestAuthorizationMethod { + typ := SourcePinterestAuthorizationMethodTypeSourcePinterestAccessToken return SourcePinterestAuthorizationMethod{ - AccessToken: &accessToken, - Type: typ, + SourcePinterestAccessToken: &sourcePinterestAccessToken, + Type: typ, } } func (u *SourcePinterestAuthorizationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourcePinterestAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourcePinterestAuthorizationMethodTypeAccessToken + sourcePinterestAccessToken := new(SourcePinterestAccessToken) + if err := utils.UnmarshalJSON(data, &sourcePinterestAccessToken, "", true, true); err == nil { + u.SourcePinterestAccessToken = sourcePinterestAccessToken + u.Type = SourcePinterestAuthorizationMethodTypeSourcePinterestAccessToken return nil } - oAuth20 := new(SourcePinterestOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourcePinterestAuthorizationMethodTypeOAuth20 + sourcePinterestOAuth20 := new(SourcePinterestOAuth20) + if err := utils.UnmarshalJSON(data, &sourcePinterestOAuth20, "", true, true); err == nil { + u.SourcePinterestOAuth20 = sourcePinterestOAuth20 + u.Type = SourcePinterestAuthorizationMethodTypeSourcePinterestOAuth20 return nil } @@ -184,12 +184,12 @@ func (u *SourcePinterestAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourcePinterestAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourcePinterestOAuth20 != nil { + return utils.MarshalJSON(u.SourcePinterestOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourcePinterestAccessToken != nil { + return utils.MarshalJSON(u.SourcePinterestAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcepinterestupdate.go b/internal/sdk/pkg/models/shared/sourcepinterestupdate.go index 03b0a23cc..ed7249dd5 100644 --- a/internal/sdk/pkg/models/shared/sourcepinterestupdate.go +++ b/internal/sdk/pkg/models/shared/sourcepinterestupdate.go @@ -135,48 +135,48 @@ func (o *SourcePinterestUpdateOAuth20) GetRefreshToken() string { type SourcePinterestUpdateAuthorizationMethodType string const ( - SourcePinterestUpdateAuthorizationMethodTypeOAuth20 SourcePinterestUpdateAuthorizationMethodType = "OAuth20" - SourcePinterestUpdateAuthorizationMethodTypeAccessToken SourcePinterestUpdateAuthorizationMethodType = "AccessToken" + SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateOAuth20 SourcePinterestUpdateAuthorizationMethodType = "source-pinterest-update_OAuth2.0" + SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateAccessToken SourcePinterestUpdateAuthorizationMethodType = "source-pinterest-update_Access Token" ) type SourcePinterestUpdateAuthorizationMethod struct { - OAuth20 *SourcePinterestUpdateOAuth20 - AccessToken *SourcePinterestUpdateAccessToken + SourcePinterestUpdateOAuth20 *SourcePinterestUpdateOAuth20 + SourcePinterestUpdateAccessToken *SourcePinterestUpdateAccessToken Type SourcePinterestUpdateAuthorizationMethodType } -func CreateSourcePinterestUpdateAuthorizationMethodOAuth20(oAuth20 SourcePinterestUpdateOAuth20) SourcePinterestUpdateAuthorizationMethod { - typ := SourcePinterestUpdateAuthorizationMethodTypeOAuth20 +func CreateSourcePinterestUpdateAuthorizationMethodSourcePinterestUpdateOAuth20(sourcePinterestUpdateOAuth20 SourcePinterestUpdateOAuth20) SourcePinterestUpdateAuthorizationMethod { + typ := SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateOAuth20 return SourcePinterestUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourcePinterestUpdateOAuth20: &sourcePinterestUpdateOAuth20, + Type: typ, } } -func CreateSourcePinterestUpdateAuthorizationMethodAccessToken(accessToken SourcePinterestUpdateAccessToken) SourcePinterestUpdateAuthorizationMethod { - typ := SourcePinterestUpdateAuthorizationMethodTypeAccessToken +func CreateSourcePinterestUpdateAuthorizationMethodSourcePinterestUpdateAccessToken(sourcePinterestUpdateAccessToken SourcePinterestUpdateAccessToken) SourcePinterestUpdateAuthorizationMethod { + typ := SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateAccessToken return SourcePinterestUpdateAuthorizationMethod{ - AccessToken: &accessToken, - Type: typ, + SourcePinterestUpdateAccessToken: &sourcePinterestUpdateAccessToken, + Type: typ, } } func (u *SourcePinterestUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourcePinterestUpdateAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourcePinterestUpdateAuthorizationMethodTypeAccessToken + sourcePinterestUpdateAccessToken := new(SourcePinterestUpdateAccessToken) + if err := utils.UnmarshalJSON(data, &sourcePinterestUpdateAccessToken, "", true, true); err == nil { + u.SourcePinterestUpdateAccessToken = sourcePinterestUpdateAccessToken + u.Type = SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateAccessToken return nil } - oAuth20 := new(SourcePinterestUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourcePinterestUpdateAuthorizationMethodTypeOAuth20 + sourcePinterestUpdateOAuth20 := new(SourcePinterestUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourcePinterestUpdateOAuth20, "", true, true); err == nil { + u.SourcePinterestUpdateOAuth20 = sourcePinterestUpdateOAuth20 + u.Type = SourcePinterestUpdateAuthorizationMethodTypeSourcePinterestUpdateOAuth20 return nil } @@ -184,12 +184,12 @@ func (u *SourcePinterestUpdateAuthorizationMethod) UnmarshalJSON(data []byte) er } func (u SourcePinterestUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourcePinterestUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourcePinterestUpdateOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourcePinterestUpdateAccessToken != nil { + return utils.MarshalJSON(u.SourcePinterestUpdateAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcepostgres.go b/internal/sdk/pkg/models/shared/sourcepostgres.go index b6b91f3ae..34f8efef2 100644 --- a/internal/sdk/pkg/models/shared/sourcepostgres.go +++ b/internal/sdk/pkg/models/shared/sourcepostgres.go @@ -259,66 +259,66 @@ func (o *SourcePostgresReadChangesUsingWriteAheadLogCDC) GetReplicationSlot() st type SourcePostgresUpdateMethodType string const ( - SourcePostgresUpdateMethodTypeReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateMethodType = "ReadChangesUsingWriteAheadLogCDC" - SourcePostgresUpdateMethodTypeDetectChangesWithXminSystemColumn SourcePostgresUpdateMethodType = "DetectChangesWithXminSystemColumn" - SourcePostgresUpdateMethodTypeScanChangesWithUserDefinedCursor SourcePostgresUpdateMethodType = "ScanChangesWithUserDefinedCursor" + SourcePostgresUpdateMethodTypeSourcePostgresReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateMethodType = "source-postgres_Read Changes using Write-Ahead Log (CDC)" + SourcePostgresUpdateMethodTypeSourcePostgresDetectChangesWithXminSystemColumn SourcePostgresUpdateMethodType = "source-postgres_Detect Changes with Xmin System Column" + SourcePostgresUpdateMethodTypeSourcePostgresScanChangesWithUserDefinedCursor SourcePostgresUpdateMethodType = "source-postgres_Scan Changes with User Defined Cursor" ) type SourcePostgresUpdateMethod struct { - ReadChangesUsingWriteAheadLogCDC *SourcePostgresReadChangesUsingWriteAheadLogCDC - DetectChangesWithXminSystemColumn *SourcePostgresDetectChangesWithXminSystemColumn - ScanChangesWithUserDefinedCursor *SourcePostgresScanChangesWithUserDefinedCursor + SourcePostgresReadChangesUsingWriteAheadLogCDC *SourcePostgresReadChangesUsingWriteAheadLogCDC + SourcePostgresDetectChangesWithXminSystemColumn *SourcePostgresDetectChangesWithXminSystemColumn + SourcePostgresScanChangesWithUserDefinedCursor *SourcePostgresScanChangesWithUserDefinedCursor Type SourcePostgresUpdateMethodType } -func CreateSourcePostgresUpdateMethodReadChangesUsingWriteAheadLogCDC(readChangesUsingWriteAheadLogCDC SourcePostgresReadChangesUsingWriteAheadLogCDC) SourcePostgresUpdateMethod { - typ := SourcePostgresUpdateMethodTypeReadChangesUsingWriteAheadLogCDC +func CreateSourcePostgresUpdateMethodSourcePostgresReadChangesUsingWriteAheadLogCDC(sourcePostgresReadChangesUsingWriteAheadLogCDC SourcePostgresReadChangesUsingWriteAheadLogCDC) SourcePostgresUpdateMethod { + typ := SourcePostgresUpdateMethodTypeSourcePostgresReadChangesUsingWriteAheadLogCDC return SourcePostgresUpdateMethod{ - ReadChangesUsingWriteAheadLogCDC: &readChangesUsingWriteAheadLogCDC, - Type: typ, + SourcePostgresReadChangesUsingWriteAheadLogCDC: &sourcePostgresReadChangesUsingWriteAheadLogCDC, + Type: typ, } } -func CreateSourcePostgresUpdateMethodDetectChangesWithXminSystemColumn(detectChangesWithXminSystemColumn SourcePostgresDetectChangesWithXminSystemColumn) SourcePostgresUpdateMethod { - typ := SourcePostgresUpdateMethodTypeDetectChangesWithXminSystemColumn +func CreateSourcePostgresUpdateMethodSourcePostgresDetectChangesWithXminSystemColumn(sourcePostgresDetectChangesWithXminSystemColumn SourcePostgresDetectChangesWithXminSystemColumn) SourcePostgresUpdateMethod { + typ := SourcePostgresUpdateMethodTypeSourcePostgresDetectChangesWithXminSystemColumn return SourcePostgresUpdateMethod{ - DetectChangesWithXminSystemColumn: &detectChangesWithXminSystemColumn, - Type: typ, + SourcePostgresDetectChangesWithXminSystemColumn: &sourcePostgresDetectChangesWithXminSystemColumn, + Type: typ, } } -func CreateSourcePostgresUpdateMethodScanChangesWithUserDefinedCursor(scanChangesWithUserDefinedCursor SourcePostgresScanChangesWithUserDefinedCursor) SourcePostgresUpdateMethod { - typ := SourcePostgresUpdateMethodTypeScanChangesWithUserDefinedCursor +func CreateSourcePostgresUpdateMethodSourcePostgresScanChangesWithUserDefinedCursor(sourcePostgresScanChangesWithUserDefinedCursor SourcePostgresScanChangesWithUserDefinedCursor) SourcePostgresUpdateMethod { + typ := SourcePostgresUpdateMethodTypeSourcePostgresScanChangesWithUserDefinedCursor return SourcePostgresUpdateMethod{ - ScanChangesWithUserDefinedCursor: &scanChangesWithUserDefinedCursor, - Type: typ, + SourcePostgresScanChangesWithUserDefinedCursor: &sourcePostgresScanChangesWithUserDefinedCursor, + Type: typ, } } func (u *SourcePostgresUpdateMethod) UnmarshalJSON(data []byte) error { - detectChangesWithXminSystemColumn := new(SourcePostgresDetectChangesWithXminSystemColumn) - if err := utils.UnmarshalJSON(data, &detectChangesWithXminSystemColumn, "", true, true); err == nil { - u.DetectChangesWithXminSystemColumn = detectChangesWithXminSystemColumn - u.Type = SourcePostgresUpdateMethodTypeDetectChangesWithXminSystemColumn + sourcePostgresDetectChangesWithXminSystemColumn := new(SourcePostgresDetectChangesWithXminSystemColumn) + if err := utils.UnmarshalJSON(data, &sourcePostgresDetectChangesWithXminSystemColumn, "", true, true); err == nil { + u.SourcePostgresDetectChangesWithXminSystemColumn = sourcePostgresDetectChangesWithXminSystemColumn + u.Type = SourcePostgresUpdateMethodTypeSourcePostgresDetectChangesWithXminSystemColumn return nil } - scanChangesWithUserDefinedCursor := new(SourcePostgresScanChangesWithUserDefinedCursor) - if err := utils.UnmarshalJSON(data, &scanChangesWithUserDefinedCursor, "", true, true); err == nil { - u.ScanChangesWithUserDefinedCursor = scanChangesWithUserDefinedCursor - u.Type = SourcePostgresUpdateMethodTypeScanChangesWithUserDefinedCursor + sourcePostgresScanChangesWithUserDefinedCursor := new(SourcePostgresScanChangesWithUserDefinedCursor) + if err := utils.UnmarshalJSON(data, &sourcePostgresScanChangesWithUserDefinedCursor, "", true, true); err == nil { + u.SourcePostgresScanChangesWithUserDefinedCursor = sourcePostgresScanChangesWithUserDefinedCursor + u.Type = SourcePostgresUpdateMethodTypeSourcePostgresScanChangesWithUserDefinedCursor return nil } - readChangesUsingWriteAheadLogCDC := new(SourcePostgresReadChangesUsingWriteAheadLogCDC) - if err := utils.UnmarshalJSON(data, &readChangesUsingWriteAheadLogCDC, "", true, true); err == nil { - u.ReadChangesUsingWriteAheadLogCDC = readChangesUsingWriteAheadLogCDC - u.Type = SourcePostgresUpdateMethodTypeReadChangesUsingWriteAheadLogCDC + sourcePostgresReadChangesUsingWriteAheadLogCDC := new(SourcePostgresReadChangesUsingWriteAheadLogCDC) + if err := utils.UnmarshalJSON(data, &sourcePostgresReadChangesUsingWriteAheadLogCDC, "", true, true); err == nil { + u.SourcePostgresReadChangesUsingWriteAheadLogCDC = sourcePostgresReadChangesUsingWriteAheadLogCDC + u.Type = SourcePostgresUpdateMethodTypeSourcePostgresReadChangesUsingWriteAheadLogCDC return nil } @@ -326,16 +326,16 @@ func (u *SourcePostgresUpdateMethod) UnmarshalJSON(data []byte) error { } func (u SourcePostgresUpdateMethod) MarshalJSON() ([]byte, error) { - if u.ReadChangesUsingWriteAheadLogCDC != nil { - return utils.MarshalJSON(u.ReadChangesUsingWriteAheadLogCDC, "", true) + if u.SourcePostgresReadChangesUsingWriteAheadLogCDC != nil { + return utils.MarshalJSON(u.SourcePostgresReadChangesUsingWriteAheadLogCDC, "", true) } - if u.DetectChangesWithXminSystemColumn != nil { - return utils.MarshalJSON(u.DetectChangesWithXminSystemColumn, "", true) + if u.SourcePostgresDetectChangesWithXminSystemColumn != nil { + return utils.MarshalJSON(u.SourcePostgresDetectChangesWithXminSystemColumn, "", true) } - if u.ScanChangesWithUserDefinedCursor != nil { - return utils.MarshalJSON(u.ScanChangesWithUserDefinedCursor, "", true) + if u.SourcePostgresScanChangesWithUserDefinedCursor != nil { + return utils.MarshalJSON(u.SourcePostgresScanChangesWithUserDefinedCursor, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -752,120 +752,120 @@ func (o *SourcePostgresDisable) GetMode() SourcePostgresMode { type SourcePostgresSSLModesType string const ( - SourcePostgresSSLModesTypeDisable SourcePostgresSSLModesType = "Disable" - SourcePostgresSSLModesTypeAllow SourcePostgresSSLModesType = "Allow" - SourcePostgresSSLModesTypePrefer SourcePostgresSSLModesType = "Prefer" - SourcePostgresSSLModesTypeRequire SourcePostgresSSLModesType = "Require" - SourcePostgresSSLModesTypeVerifyCa SourcePostgresSSLModesType = "VerifyCa" - SourcePostgresSSLModesTypeVerifyFull SourcePostgresSSLModesType = "VerifyFull" + SourcePostgresSSLModesTypeSourcePostgresDisable SourcePostgresSSLModesType = "source-postgres_disable" + SourcePostgresSSLModesTypeSourcePostgresAllow SourcePostgresSSLModesType = "source-postgres_allow" + SourcePostgresSSLModesTypeSourcePostgresPrefer SourcePostgresSSLModesType = "source-postgres_prefer" + SourcePostgresSSLModesTypeSourcePostgresRequire SourcePostgresSSLModesType = "source-postgres_require" + SourcePostgresSSLModesTypeSourcePostgresVerifyCa SourcePostgresSSLModesType = "source-postgres_verify-ca" + SourcePostgresSSLModesTypeSourcePostgresVerifyFull SourcePostgresSSLModesType = "source-postgres_verify-full" ) type SourcePostgresSSLModes struct { - Disable *SourcePostgresDisable - Allow *SourcePostgresAllow - Prefer *SourcePostgresPrefer - Require *SourcePostgresRequire - VerifyCa *SourcePostgresVerifyCa - VerifyFull *SourcePostgresVerifyFull + SourcePostgresDisable *SourcePostgresDisable + SourcePostgresAllow *SourcePostgresAllow + SourcePostgresPrefer *SourcePostgresPrefer + SourcePostgresRequire *SourcePostgresRequire + SourcePostgresVerifyCa *SourcePostgresVerifyCa + SourcePostgresVerifyFull *SourcePostgresVerifyFull Type SourcePostgresSSLModesType } -func CreateSourcePostgresSSLModesDisable(disable SourcePostgresDisable) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypeDisable +func CreateSourcePostgresSSLModesSourcePostgresDisable(sourcePostgresDisable SourcePostgresDisable) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresDisable return SourcePostgresSSLModes{ - Disable: &disable, - Type: typ, + SourcePostgresDisable: &sourcePostgresDisable, + Type: typ, } } -func CreateSourcePostgresSSLModesAllow(allow SourcePostgresAllow) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypeAllow +func CreateSourcePostgresSSLModesSourcePostgresAllow(sourcePostgresAllow SourcePostgresAllow) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresAllow return SourcePostgresSSLModes{ - Allow: &allow, - Type: typ, + SourcePostgresAllow: &sourcePostgresAllow, + Type: typ, } } -func CreateSourcePostgresSSLModesPrefer(prefer SourcePostgresPrefer) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypePrefer +func CreateSourcePostgresSSLModesSourcePostgresPrefer(sourcePostgresPrefer SourcePostgresPrefer) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresPrefer return SourcePostgresSSLModes{ - Prefer: &prefer, - Type: typ, + SourcePostgresPrefer: &sourcePostgresPrefer, + Type: typ, } } -func CreateSourcePostgresSSLModesRequire(require SourcePostgresRequire) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypeRequire +func CreateSourcePostgresSSLModesSourcePostgresRequire(sourcePostgresRequire SourcePostgresRequire) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresRequire return SourcePostgresSSLModes{ - Require: &require, - Type: typ, + SourcePostgresRequire: &sourcePostgresRequire, + Type: typ, } } -func CreateSourcePostgresSSLModesVerifyCa(verifyCa SourcePostgresVerifyCa) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypeVerifyCa +func CreateSourcePostgresSSLModesSourcePostgresVerifyCa(sourcePostgresVerifyCa SourcePostgresVerifyCa) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresVerifyCa return SourcePostgresSSLModes{ - VerifyCa: &verifyCa, - Type: typ, + SourcePostgresVerifyCa: &sourcePostgresVerifyCa, + Type: typ, } } -func CreateSourcePostgresSSLModesVerifyFull(verifyFull SourcePostgresVerifyFull) SourcePostgresSSLModes { - typ := SourcePostgresSSLModesTypeVerifyFull +func CreateSourcePostgresSSLModesSourcePostgresVerifyFull(sourcePostgresVerifyFull SourcePostgresVerifyFull) SourcePostgresSSLModes { + typ := SourcePostgresSSLModesTypeSourcePostgresVerifyFull return SourcePostgresSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + SourcePostgresVerifyFull: &sourcePostgresVerifyFull, + Type: typ, } } func (u *SourcePostgresSSLModes) UnmarshalJSON(data []byte) error { - disable := new(SourcePostgresDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = SourcePostgresSSLModesTypeDisable + sourcePostgresDisable := new(SourcePostgresDisable) + if err := utils.UnmarshalJSON(data, &sourcePostgresDisable, "", true, true); err == nil { + u.SourcePostgresDisable = sourcePostgresDisable + u.Type = SourcePostgresSSLModesTypeSourcePostgresDisable return nil } - allow := new(SourcePostgresAllow) - if err := utils.UnmarshalJSON(data, &allow, "", true, true); err == nil { - u.Allow = allow - u.Type = SourcePostgresSSLModesTypeAllow + sourcePostgresAllow := new(SourcePostgresAllow) + if err := utils.UnmarshalJSON(data, &sourcePostgresAllow, "", true, true); err == nil { + u.SourcePostgresAllow = sourcePostgresAllow + u.Type = SourcePostgresSSLModesTypeSourcePostgresAllow return nil } - prefer := new(SourcePostgresPrefer) - if err := utils.UnmarshalJSON(data, &prefer, "", true, true); err == nil { - u.Prefer = prefer - u.Type = SourcePostgresSSLModesTypePrefer + sourcePostgresPrefer := new(SourcePostgresPrefer) + if err := utils.UnmarshalJSON(data, &sourcePostgresPrefer, "", true, true); err == nil { + u.SourcePostgresPrefer = sourcePostgresPrefer + u.Type = SourcePostgresSSLModesTypeSourcePostgresPrefer return nil } - require := new(SourcePostgresRequire) - if err := utils.UnmarshalJSON(data, &require, "", true, true); err == nil { - u.Require = require - u.Type = SourcePostgresSSLModesTypeRequire + sourcePostgresRequire := new(SourcePostgresRequire) + if err := utils.UnmarshalJSON(data, &sourcePostgresRequire, "", true, true); err == nil { + u.SourcePostgresRequire = sourcePostgresRequire + u.Type = SourcePostgresSSLModesTypeSourcePostgresRequire return nil } - verifyCa := new(SourcePostgresVerifyCa) - if err := utils.UnmarshalJSON(data, &verifyCa, "", true, true); err == nil { - u.VerifyCa = verifyCa - u.Type = SourcePostgresSSLModesTypeVerifyCa + sourcePostgresVerifyCa := new(SourcePostgresVerifyCa) + if err := utils.UnmarshalJSON(data, &sourcePostgresVerifyCa, "", true, true); err == nil { + u.SourcePostgresVerifyCa = sourcePostgresVerifyCa + u.Type = SourcePostgresSSLModesTypeSourcePostgresVerifyCa return nil } - verifyFull := new(SourcePostgresVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = SourcePostgresSSLModesTypeVerifyFull + sourcePostgresVerifyFull := new(SourcePostgresVerifyFull) + if err := utils.UnmarshalJSON(data, &sourcePostgresVerifyFull, "", true, true); err == nil { + u.SourcePostgresVerifyFull = sourcePostgresVerifyFull + u.Type = SourcePostgresSSLModesTypeSourcePostgresVerifyFull return nil } @@ -873,28 +873,28 @@ func (u *SourcePostgresSSLModes) UnmarshalJSON(data []byte) error { } func (u SourcePostgresSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.SourcePostgresDisable != nil { + return utils.MarshalJSON(u.SourcePostgresDisable, "", true) } - if u.Allow != nil { - return utils.MarshalJSON(u.Allow, "", true) + if u.SourcePostgresAllow != nil { + return utils.MarshalJSON(u.SourcePostgresAllow, "", true) } - if u.Prefer != nil { - return utils.MarshalJSON(u.Prefer, "", true) + if u.SourcePostgresPrefer != nil { + return utils.MarshalJSON(u.SourcePostgresPrefer, "", true) } - if u.Require != nil { - return utils.MarshalJSON(u.Require, "", true) + if u.SourcePostgresRequire != nil { + return utils.MarshalJSON(u.SourcePostgresRequire, "", true) } - if u.VerifyCa != nil { - return utils.MarshalJSON(u.VerifyCa, "", true) + if u.SourcePostgresVerifyCa != nil { + return utils.MarshalJSON(u.SourcePostgresVerifyCa, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.SourcePostgresVerifyFull != nil { + return utils.MarshalJSON(u.SourcePostgresVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1113,66 +1113,66 @@ func (o *SourcePostgresNoTunnel) GetTunnelMethod() SourcePostgresTunnelMethod { type SourcePostgresSSHTunnelMethodType string const ( - SourcePostgresSSHTunnelMethodTypeNoTunnel SourcePostgresSSHTunnelMethodType = "NoTunnel" - SourcePostgresSSHTunnelMethodTypeSSHKeyAuthentication SourcePostgresSSHTunnelMethodType = "SSHKeyAuthentication" - SourcePostgresSSHTunnelMethodTypePasswordAuthentication SourcePostgresSSHTunnelMethodType = "PasswordAuthentication" + SourcePostgresSSHTunnelMethodTypeSourcePostgresNoTunnel SourcePostgresSSHTunnelMethodType = "source-postgres_No Tunnel" + SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHKeyAuthentication SourcePostgresSSHTunnelMethodType = "source-postgres_SSH Key Authentication" + SourcePostgresSSHTunnelMethodTypeSourcePostgresPasswordAuthentication SourcePostgresSSHTunnelMethodType = "source-postgres_Password Authentication" ) type SourcePostgresSSHTunnelMethod struct { - NoTunnel *SourcePostgresNoTunnel - SSHKeyAuthentication *SourcePostgresSSHKeyAuthentication - PasswordAuthentication *SourcePostgresPasswordAuthentication + SourcePostgresNoTunnel *SourcePostgresNoTunnel + SourcePostgresSSHKeyAuthentication *SourcePostgresSSHKeyAuthentication + SourcePostgresPasswordAuthentication *SourcePostgresPasswordAuthentication Type SourcePostgresSSHTunnelMethodType } -func CreateSourcePostgresSSHTunnelMethodNoTunnel(noTunnel SourcePostgresNoTunnel) SourcePostgresSSHTunnelMethod { - typ := SourcePostgresSSHTunnelMethodTypeNoTunnel +func CreateSourcePostgresSSHTunnelMethodSourcePostgresNoTunnel(sourcePostgresNoTunnel SourcePostgresNoTunnel) SourcePostgresSSHTunnelMethod { + typ := SourcePostgresSSHTunnelMethodTypeSourcePostgresNoTunnel return SourcePostgresSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourcePostgresNoTunnel: &sourcePostgresNoTunnel, + Type: typ, } } -func CreateSourcePostgresSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourcePostgresSSHKeyAuthentication) SourcePostgresSSHTunnelMethod { - typ := SourcePostgresSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourcePostgresSSHTunnelMethodSourcePostgresSSHKeyAuthentication(sourcePostgresSSHKeyAuthentication SourcePostgresSSHKeyAuthentication) SourcePostgresSSHTunnelMethod { + typ := SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHKeyAuthentication return SourcePostgresSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourcePostgresSSHKeyAuthentication: &sourcePostgresSSHKeyAuthentication, + Type: typ, } } -func CreateSourcePostgresSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourcePostgresPasswordAuthentication) SourcePostgresSSHTunnelMethod { - typ := SourcePostgresSSHTunnelMethodTypePasswordAuthentication +func CreateSourcePostgresSSHTunnelMethodSourcePostgresPasswordAuthentication(sourcePostgresPasswordAuthentication SourcePostgresPasswordAuthentication) SourcePostgresSSHTunnelMethod { + typ := SourcePostgresSSHTunnelMethodTypeSourcePostgresPasswordAuthentication return SourcePostgresSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourcePostgresPasswordAuthentication: &sourcePostgresPasswordAuthentication, + Type: typ, } } func (u *SourcePostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourcePostgresNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourcePostgresSSHTunnelMethodTypeNoTunnel + sourcePostgresNoTunnel := new(SourcePostgresNoTunnel) + if err := utils.UnmarshalJSON(data, &sourcePostgresNoTunnel, "", true, true); err == nil { + u.SourcePostgresNoTunnel = sourcePostgresNoTunnel + u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresNoTunnel return nil } - sshKeyAuthentication := new(SourcePostgresSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourcePostgresSSHTunnelMethodTypeSSHKeyAuthentication + sourcePostgresSSHKeyAuthentication := new(SourcePostgresSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourcePostgresSSHKeyAuthentication, "", true, true); err == nil { + u.SourcePostgresSSHKeyAuthentication = sourcePostgresSSHKeyAuthentication + u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresSSHKeyAuthentication return nil } - passwordAuthentication := new(SourcePostgresPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourcePostgresSSHTunnelMethodTypePasswordAuthentication + sourcePostgresPasswordAuthentication := new(SourcePostgresPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourcePostgresPasswordAuthentication, "", true, true); err == nil { + u.SourcePostgresPasswordAuthentication = sourcePostgresPasswordAuthentication + u.Type = SourcePostgresSSHTunnelMethodTypeSourcePostgresPasswordAuthentication return nil } @@ -1180,16 +1180,16 @@ func (u *SourcePostgresSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourcePostgresSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourcePostgresNoTunnel != nil { + return utils.MarshalJSON(u.SourcePostgresNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourcePostgresSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourcePostgresSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourcePostgresPasswordAuthentication != nil { + return utils.MarshalJSON(u.SourcePostgresPasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcepostgresupdate.go b/internal/sdk/pkg/models/shared/sourcepostgresupdate.go index cff91721f..09ee34534 100644 --- a/internal/sdk/pkg/models/shared/sourcepostgresupdate.go +++ b/internal/sdk/pkg/models/shared/sourcepostgresupdate.go @@ -259,15 +259,15 @@ func (o *ReadChangesUsingWriteAheadLogCDC) GetReplicationSlot() string { type SourcePostgresUpdateUpdateMethodType string const ( - SourcePostgresUpdateUpdateMethodTypeReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateUpdateMethodType = "ReadChangesUsingWriteAheadLogCDC" - SourcePostgresUpdateUpdateMethodTypeDetectChangesWithXminSystemColumn SourcePostgresUpdateUpdateMethodType = "DetectChangesWithXminSystemColumn" - SourcePostgresUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor SourcePostgresUpdateUpdateMethodType = "ScanChangesWithUserDefinedCursor" + SourcePostgresUpdateUpdateMethodTypeReadChangesUsingWriteAheadLogCDC SourcePostgresUpdateUpdateMethodType = "Read Changes using Write-Ahead Log (CDC)" + SourcePostgresUpdateUpdateMethodTypeDetectChangesWithXminSystemColumn SourcePostgresUpdateUpdateMethodType = "Detect Changes with Xmin System Column" + SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateScanChangesWithUserDefinedCursor SourcePostgresUpdateUpdateMethodType = "source-postgres-update_Scan Changes with User Defined Cursor" ) type SourcePostgresUpdateUpdateMethod struct { - ReadChangesUsingWriteAheadLogCDC *ReadChangesUsingWriteAheadLogCDC - DetectChangesWithXminSystemColumn *DetectChangesWithXminSystemColumn - ScanChangesWithUserDefinedCursor *SourcePostgresUpdateScanChangesWithUserDefinedCursor + ReadChangesUsingWriteAheadLogCDC *ReadChangesUsingWriteAheadLogCDC + DetectChangesWithXminSystemColumn *DetectChangesWithXminSystemColumn + SourcePostgresUpdateScanChangesWithUserDefinedCursor *SourcePostgresUpdateScanChangesWithUserDefinedCursor Type SourcePostgresUpdateUpdateMethodType } @@ -290,12 +290,12 @@ func CreateSourcePostgresUpdateUpdateMethodDetectChangesWithXminSystemColumn(det } } -func CreateSourcePostgresUpdateUpdateMethodScanChangesWithUserDefinedCursor(scanChangesWithUserDefinedCursor SourcePostgresUpdateScanChangesWithUserDefinedCursor) SourcePostgresUpdateUpdateMethod { - typ := SourcePostgresUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor +func CreateSourcePostgresUpdateUpdateMethodSourcePostgresUpdateScanChangesWithUserDefinedCursor(sourcePostgresUpdateScanChangesWithUserDefinedCursor SourcePostgresUpdateScanChangesWithUserDefinedCursor) SourcePostgresUpdateUpdateMethod { + typ := SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateScanChangesWithUserDefinedCursor return SourcePostgresUpdateUpdateMethod{ - ScanChangesWithUserDefinedCursor: &scanChangesWithUserDefinedCursor, - Type: typ, + SourcePostgresUpdateScanChangesWithUserDefinedCursor: &sourcePostgresUpdateScanChangesWithUserDefinedCursor, + Type: typ, } } @@ -308,10 +308,10 @@ func (u *SourcePostgresUpdateUpdateMethod) UnmarshalJSON(data []byte) error { return nil } - scanChangesWithUserDefinedCursor := new(SourcePostgresUpdateScanChangesWithUserDefinedCursor) - if err := utils.UnmarshalJSON(data, &scanChangesWithUserDefinedCursor, "", true, true); err == nil { - u.ScanChangesWithUserDefinedCursor = scanChangesWithUserDefinedCursor - u.Type = SourcePostgresUpdateUpdateMethodTypeScanChangesWithUserDefinedCursor + sourcePostgresUpdateScanChangesWithUserDefinedCursor := new(SourcePostgresUpdateScanChangesWithUserDefinedCursor) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateScanChangesWithUserDefinedCursor, "", true, true); err == nil { + u.SourcePostgresUpdateScanChangesWithUserDefinedCursor = sourcePostgresUpdateScanChangesWithUserDefinedCursor + u.Type = SourcePostgresUpdateUpdateMethodTypeSourcePostgresUpdateScanChangesWithUserDefinedCursor return nil } @@ -334,8 +334,8 @@ func (u SourcePostgresUpdateUpdateMethod) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.DetectChangesWithXminSystemColumn, "", true) } - if u.ScanChangesWithUserDefinedCursor != nil { - return utils.MarshalJSON(u.ScanChangesWithUserDefinedCursor, "", true) + if u.SourcePostgresUpdateScanChangesWithUserDefinedCursor != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateScanChangesWithUserDefinedCursor, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -728,120 +728,120 @@ func (o *SourcePostgresUpdateDisable) GetMode() SourcePostgresUpdateMode { type SourcePostgresUpdateSSLModesType string const ( - SourcePostgresUpdateSSLModesTypeDisable SourcePostgresUpdateSSLModesType = "Disable" - SourcePostgresUpdateSSLModesTypeAllow SourcePostgresUpdateSSLModesType = "Allow" - SourcePostgresUpdateSSLModesTypePrefer SourcePostgresUpdateSSLModesType = "Prefer" - SourcePostgresUpdateSSLModesTypeRequire SourcePostgresUpdateSSLModesType = "Require" - SourcePostgresUpdateSSLModesTypeVerifyCa SourcePostgresUpdateSSLModesType = "VerifyCa" - SourcePostgresUpdateSSLModesTypeVerifyFull SourcePostgresUpdateSSLModesType = "VerifyFull" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateDisable SourcePostgresUpdateSSLModesType = "source-postgres-update_disable" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateAllow SourcePostgresUpdateSSLModesType = "source-postgres-update_allow" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdatePrefer SourcePostgresUpdateSSLModesType = "source-postgres-update_prefer" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateRequire SourcePostgresUpdateSSLModesType = "source-postgres-update_require" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyCa SourcePostgresUpdateSSLModesType = "source-postgres-update_verify-ca" + SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyFull SourcePostgresUpdateSSLModesType = "source-postgres-update_verify-full" ) type SourcePostgresUpdateSSLModes struct { - Disable *SourcePostgresUpdateDisable - Allow *SourcePostgresUpdateAllow - Prefer *SourcePostgresUpdatePrefer - Require *SourcePostgresUpdateRequire - VerifyCa *SourcePostgresUpdateVerifyCa - VerifyFull *SourcePostgresUpdateVerifyFull + SourcePostgresUpdateDisable *SourcePostgresUpdateDisable + SourcePostgresUpdateAllow *SourcePostgresUpdateAllow + SourcePostgresUpdatePrefer *SourcePostgresUpdatePrefer + SourcePostgresUpdateRequire *SourcePostgresUpdateRequire + SourcePostgresUpdateVerifyCa *SourcePostgresUpdateVerifyCa + SourcePostgresUpdateVerifyFull *SourcePostgresUpdateVerifyFull Type SourcePostgresUpdateSSLModesType } -func CreateSourcePostgresUpdateSSLModesDisable(disable SourcePostgresUpdateDisable) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypeDisable +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateDisable(sourcePostgresUpdateDisable SourcePostgresUpdateDisable) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateDisable return SourcePostgresUpdateSSLModes{ - Disable: &disable, - Type: typ, + SourcePostgresUpdateDisable: &sourcePostgresUpdateDisable, + Type: typ, } } -func CreateSourcePostgresUpdateSSLModesAllow(allow SourcePostgresUpdateAllow) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypeAllow +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateAllow(sourcePostgresUpdateAllow SourcePostgresUpdateAllow) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateAllow return SourcePostgresUpdateSSLModes{ - Allow: &allow, - Type: typ, + SourcePostgresUpdateAllow: &sourcePostgresUpdateAllow, + Type: typ, } } -func CreateSourcePostgresUpdateSSLModesPrefer(prefer SourcePostgresUpdatePrefer) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypePrefer +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdatePrefer(sourcePostgresUpdatePrefer SourcePostgresUpdatePrefer) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdatePrefer return SourcePostgresUpdateSSLModes{ - Prefer: &prefer, - Type: typ, + SourcePostgresUpdatePrefer: &sourcePostgresUpdatePrefer, + Type: typ, } } -func CreateSourcePostgresUpdateSSLModesRequire(require SourcePostgresUpdateRequire) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypeRequire +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateRequire(sourcePostgresUpdateRequire SourcePostgresUpdateRequire) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateRequire return SourcePostgresUpdateSSLModes{ - Require: &require, - Type: typ, + SourcePostgresUpdateRequire: &sourcePostgresUpdateRequire, + Type: typ, } } -func CreateSourcePostgresUpdateSSLModesVerifyCa(verifyCa SourcePostgresUpdateVerifyCa) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypeVerifyCa +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateVerifyCa(sourcePostgresUpdateVerifyCa SourcePostgresUpdateVerifyCa) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyCa return SourcePostgresUpdateSSLModes{ - VerifyCa: &verifyCa, - Type: typ, + SourcePostgresUpdateVerifyCa: &sourcePostgresUpdateVerifyCa, + Type: typ, } } -func CreateSourcePostgresUpdateSSLModesVerifyFull(verifyFull SourcePostgresUpdateVerifyFull) SourcePostgresUpdateSSLModes { - typ := SourcePostgresUpdateSSLModesTypeVerifyFull +func CreateSourcePostgresUpdateSSLModesSourcePostgresUpdateVerifyFull(sourcePostgresUpdateVerifyFull SourcePostgresUpdateVerifyFull) SourcePostgresUpdateSSLModes { + typ := SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyFull return SourcePostgresUpdateSSLModes{ - VerifyFull: &verifyFull, - Type: typ, + SourcePostgresUpdateVerifyFull: &sourcePostgresUpdateVerifyFull, + Type: typ, } } func (u *SourcePostgresUpdateSSLModes) UnmarshalJSON(data []byte) error { - disable := new(SourcePostgresUpdateDisable) - if err := utils.UnmarshalJSON(data, &disable, "", true, true); err == nil { - u.Disable = disable - u.Type = SourcePostgresUpdateSSLModesTypeDisable + sourcePostgresUpdateDisable := new(SourcePostgresUpdateDisable) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateDisable, "", true, true); err == nil { + u.SourcePostgresUpdateDisable = sourcePostgresUpdateDisable + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateDisable return nil } - allow := new(SourcePostgresUpdateAllow) - if err := utils.UnmarshalJSON(data, &allow, "", true, true); err == nil { - u.Allow = allow - u.Type = SourcePostgresUpdateSSLModesTypeAllow + sourcePostgresUpdateAllow := new(SourcePostgresUpdateAllow) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateAllow, "", true, true); err == nil { + u.SourcePostgresUpdateAllow = sourcePostgresUpdateAllow + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateAllow return nil } - prefer := new(SourcePostgresUpdatePrefer) - if err := utils.UnmarshalJSON(data, &prefer, "", true, true); err == nil { - u.Prefer = prefer - u.Type = SourcePostgresUpdateSSLModesTypePrefer + sourcePostgresUpdatePrefer := new(SourcePostgresUpdatePrefer) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdatePrefer, "", true, true); err == nil { + u.SourcePostgresUpdatePrefer = sourcePostgresUpdatePrefer + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdatePrefer return nil } - require := new(SourcePostgresUpdateRequire) - if err := utils.UnmarshalJSON(data, &require, "", true, true); err == nil { - u.Require = require - u.Type = SourcePostgresUpdateSSLModesTypeRequire + sourcePostgresUpdateRequire := new(SourcePostgresUpdateRequire) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateRequire, "", true, true); err == nil { + u.SourcePostgresUpdateRequire = sourcePostgresUpdateRequire + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateRequire return nil } - verifyCa := new(SourcePostgresUpdateVerifyCa) - if err := utils.UnmarshalJSON(data, &verifyCa, "", true, true); err == nil { - u.VerifyCa = verifyCa - u.Type = SourcePostgresUpdateSSLModesTypeVerifyCa + sourcePostgresUpdateVerifyCa := new(SourcePostgresUpdateVerifyCa) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateVerifyCa, "", true, true); err == nil { + u.SourcePostgresUpdateVerifyCa = sourcePostgresUpdateVerifyCa + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyCa return nil } - verifyFull := new(SourcePostgresUpdateVerifyFull) - if err := utils.UnmarshalJSON(data, &verifyFull, "", true, true); err == nil { - u.VerifyFull = verifyFull - u.Type = SourcePostgresUpdateSSLModesTypeVerifyFull + sourcePostgresUpdateVerifyFull := new(SourcePostgresUpdateVerifyFull) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateVerifyFull, "", true, true); err == nil { + u.SourcePostgresUpdateVerifyFull = sourcePostgresUpdateVerifyFull + u.Type = SourcePostgresUpdateSSLModesTypeSourcePostgresUpdateVerifyFull return nil } @@ -849,28 +849,28 @@ func (u *SourcePostgresUpdateSSLModes) UnmarshalJSON(data []byte) error { } func (u SourcePostgresUpdateSSLModes) MarshalJSON() ([]byte, error) { - if u.Disable != nil { - return utils.MarshalJSON(u.Disable, "", true) + if u.SourcePostgresUpdateDisable != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateDisable, "", true) } - if u.Allow != nil { - return utils.MarshalJSON(u.Allow, "", true) + if u.SourcePostgresUpdateAllow != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateAllow, "", true) } - if u.Prefer != nil { - return utils.MarshalJSON(u.Prefer, "", true) + if u.SourcePostgresUpdatePrefer != nil { + return utils.MarshalJSON(u.SourcePostgresUpdatePrefer, "", true) } - if u.Require != nil { - return utils.MarshalJSON(u.Require, "", true) + if u.SourcePostgresUpdateRequire != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateRequire, "", true) } - if u.VerifyCa != nil { - return utils.MarshalJSON(u.VerifyCa, "", true) + if u.SourcePostgresUpdateVerifyCa != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateVerifyCa, "", true) } - if u.VerifyFull != nil { - return utils.MarshalJSON(u.VerifyFull, "", true) + if u.SourcePostgresUpdateVerifyFull != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateVerifyFull, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1089,66 +1089,66 @@ func (o *SourcePostgresUpdateNoTunnel) GetTunnelMethod() SourcePostgresUpdateTun type SourcePostgresUpdateSSHTunnelMethodType string const ( - SourcePostgresUpdateSSHTunnelMethodTypeNoTunnel SourcePostgresUpdateSSHTunnelMethodType = "NoTunnel" - SourcePostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication SourcePostgresUpdateSSHTunnelMethodType = "SSHKeyAuthentication" - SourcePostgresUpdateSSHTunnelMethodTypePasswordAuthentication SourcePostgresUpdateSSHTunnelMethodType = "PasswordAuthentication" + SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateNoTunnel SourcePostgresUpdateSSHTunnelMethodType = "source-postgres-update_No Tunnel" + SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHKeyAuthentication SourcePostgresUpdateSSHTunnelMethodType = "source-postgres-update_SSH Key Authentication" + SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdatePasswordAuthentication SourcePostgresUpdateSSHTunnelMethodType = "source-postgres-update_Password Authentication" ) type SourcePostgresUpdateSSHTunnelMethod struct { - NoTunnel *SourcePostgresUpdateNoTunnel - SSHKeyAuthentication *SourcePostgresUpdateSSHKeyAuthentication - PasswordAuthentication *SourcePostgresUpdatePasswordAuthentication + SourcePostgresUpdateNoTunnel *SourcePostgresUpdateNoTunnel + SourcePostgresUpdateSSHKeyAuthentication *SourcePostgresUpdateSSHKeyAuthentication + SourcePostgresUpdatePasswordAuthentication *SourcePostgresUpdatePasswordAuthentication Type SourcePostgresUpdateSSHTunnelMethodType } -func CreateSourcePostgresUpdateSSHTunnelMethodNoTunnel(noTunnel SourcePostgresUpdateNoTunnel) SourcePostgresUpdateSSHTunnelMethod { - typ := SourcePostgresUpdateSSHTunnelMethodTypeNoTunnel +func CreateSourcePostgresUpdateSSHTunnelMethodSourcePostgresUpdateNoTunnel(sourcePostgresUpdateNoTunnel SourcePostgresUpdateNoTunnel) SourcePostgresUpdateSSHTunnelMethod { + typ := SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateNoTunnel return SourcePostgresUpdateSSHTunnelMethod{ - NoTunnel: &noTunnel, - Type: typ, + SourcePostgresUpdateNoTunnel: &sourcePostgresUpdateNoTunnel, + Type: typ, } } -func CreateSourcePostgresUpdateSSHTunnelMethodSSHKeyAuthentication(sshKeyAuthentication SourcePostgresUpdateSSHKeyAuthentication) SourcePostgresUpdateSSHTunnelMethod { - typ := SourcePostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication +func CreateSourcePostgresUpdateSSHTunnelMethodSourcePostgresUpdateSSHKeyAuthentication(sourcePostgresUpdateSSHKeyAuthentication SourcePostgresUpdateSSHKeyAuthentication) SourcePostgresUpdateSSHTunnelMethod { + typ := SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHKeyAuthentication return SourcePostgresUpdateSSHTunnelMethod{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourcePostgresUpdateSSHKeyAuthentication: &sourcePostgresUpdateSSHKeyAuthentication, + Type: typ, } } -func CreateSourcePostgresUpdateSSHTunnelMethodPasswordAuthentication(passwordAuthentication SourcePostgresUpdatePasswordAuthentication) SourcePostgresUpdateSSHTunnelMethod { - typ := SourcePostgresUpdateSSHTunnelMethodTypePasswordAuthentication +func CreateSourcePostgresUpdateSSHTunnelMethodSourcePostgresUpdatePasswordAuthentication(sourcePostgresUpdatePasswordAuthentication SourcePostgresUpdatePasswordAuthentication) SourcePostgresUpdateSSHTunnelMethod { + typ := SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdatePasswordAuthentication return SourcePostgresUpdateSSHTunnelMethod{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourcePostgresUpdatePasswordAuthentication: &sourcePostgresUpdatePasswordAuthentication, + Type: typ, } } func (u *SourcePostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { - noTunnel := new(SourcePostgresUpdateNoTunnel) - if err := utils.UnmarshalJSON(data, &noTunnel, "", true, true); err == nil { - u.NoTunnel = noTunnel - u.Type = SourcePostgresUpdateSSHTunnelMethodTypeNoTunnel + sourcePostgresUpdateNoTunnel := new(SourcePostgresUpdateNoTunnel) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateNoTunnel, "", true, true); err == nil { + u.SourcePostgresUpdateNoTunnel = sourcePostgresUpdateNoTunnel + u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateNoTunnel return nil } - sshKeyAuthentication := new(SourcePostgresUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSSHKeyAuthentication + sourcePostgresUpdateSSHKeyAuthentication := new(SourcePostgresUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourcePostgresUpdateSSHKeyAuthentication = sourcePostgresUpdateSSHKeyAuthentication + u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdateSSHKeyAuthentication return nil } - passwordAuthentication := new(SourcePostgresUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourcePostgresUpdateSSHTunnelMethodTypePasswordAuthentication + sourcePostgresUpdatePasswordAuthentication := new(SourcePostgresUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourcePostgresUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourcePostgresUpdatePasswordAuthentication = sourcePostgresUpdatePasswordAuthentication + u.Type = SourcePostgresUpdateSSHTunnelMethodTypeSourcePostgresUpdatePasswordAuthentication return nil } @@ -1156,16 +1156,16 @@ func (u *SourcePostgresUpdateSSHTunnelMethod) UnmarshalJSON(data []byte) error { } func (u SourcePostgresUpdateSSHTunnelMethod) MarshalJSON() ([]byte, error) { - if u.NoTunnel != nil { - return utils.MarshalJSON(u.NoTunnel, "", true) + if u.SourcePostgresUpdateNoTunnel != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateNoTunnel, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourcePostgresUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourcePostgresUpdateSSHKeyAuthentication, "", true) } - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourcePostgresUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourcePostgresUpdatePasswordAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcequickbooks.go b/internal/sdk/pkg/models/shared/sourcequickbooks.go index 88c515cd9..dcaf50d5a 100644 --- a/internal/sdk/pkg/models/shared/sourcequickbooks.go +++ b/internal/sdk/pkg/models/shared/sourcequickbooks.go @@ -110,30 +110,30 @@ func (o *SourceQuickbooksOAuth20) GetTokenExpiryDate() time.Time { type SourceQuickbooksAuthorizationMethodType string const ( - SourceQuickbooksAuthorizationMethodTypeOAuth20 SourceQuickbooksAuthorizationMethodType = "OAuth20" + SourceQuickbooksAuthorizationMethodTypeSourceQuickbooksOAuth20 SourceQuickbooksAuthorizationMethodType = "source-quickbooks_OAuth2.0" ) type SourceQuickbooksAuthorizationMethod struct { - OAuth20 *SourceQuickbooksOAuth20 + SourceQuickbooksOAuth20 *SourceQuickbooksOAuth20 Type SourceQuickbooksAuthorizationMethodType } -func CreateSourceQuickbooksAuthorizationMethodOAuth20(oAuth20 SourceQuickbooksOAuth20) SourceQuickbooksAuthorizationMethod { - typ := SourceQuickbooksAuthorizationMethodTypeOAuth20 +func CreateSourceQuickbooksAuthorizationMethodSourceQuickbooksOAuth20(sourceQuickbooksOAuth20 SourceQuickbooksOAuth20) SourceQuickbooksAuthorizationMethod { + typ := SourceQuickbooksAuthorizationMethodTypeSourceQuickbooksOAuth20 return SourceQuickbooksAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceQuickbooksOAuth20: &sourceQuickbooksOAuth20, + Type: typ, } } func (u *SourceQuickbooksAuthorizationMethod) UnmarshalJSON(data []byte) error { - oAuth20 := new(SourceQuickbooksOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceQuickbooksAuthorizationMethodTypeOAuth20 + sourceQuickbooksOAuth20 := new(SourceQuickbooksOAuth20) + if err := utils.UnmarshalJSON(data, &sourceQuickbooksOAuth20, "", true, true); err == nil { + u.SourceQuickbooksOAuth20 = sourceQuickbooksOAuth20 + u.Type = SourceQuickbooksAuthorizationMethodTypeSourceQuickbooksOAuth20 return nil } @@ -141,8 +141,8 @@ func (u *SourceQuickbooksAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceQuickbooksAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceQuickbooksOAuth20 != nil { + return utils.MarshalJSON(u.SourceQuickbooksOAuth20, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go b/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go index 08703e2e6..e927b2168 100644 --- a/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go +++ b/internal/sdk/pkg/models/shared/sourcequickbooksupdate.go @@ -110,30 +110,30 @@ func (o *SourceQuickbooksUpdateOAuth20) GetTokenExpiryDate() time.Time { type SourceQuickbooksUpdateAuthorizationMethodType string const ( - SourceQuickbooksUpdateAuthorizationMethodTypeOAuth20 SourceQuickbooksUpdateAuthorizationMethodType = "OAuth20" + SourceQuickbooksUpdateAuthorizationMethodTypeSourceQuickbooksUpdateOAuth20 SourceQuickbooksUpdateAuthorizationMethodType = "source-quickbooks-update_OAuth2.0" ) type SourceQuickbooksUpdateAuthorizationMethod struct { - OAuth20 *SourceQuickbooksUpdateOAuth20 + SourceQuickbooksUpdateOAuth20 *SourceQuickbooksUpdateOAuth20 Type SourceQuickbooksUpdateAuthorizationMethodType } -func CreateSourceQuickbooksUpdateAuthorizationMethodOAuth20(oAuth20 SourceQuickbooksUpdateOAuth20) SourceQuickbooksUpdateAuthorizationMethod { - typ := SourceQuickbooksUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceQuickbooksUpdateAuthorizationMethodSourceQuickbooksUpdateOAuth20(sourceQuickbooksUpdateOAuth20 SourceQuickbooksUpdateOAuth20) SourceQuickbooksUpdateAuthorizationMethod { + typ := SourceQuickbooksUpdateAuthorizationMethodTypeSourceQuickbooksUpdateOAuth20 return SourceQuickbooksUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceQuickbooksUpdateOAuth20: &sourceQuickbooksUpdateOAuth20, + Type: typ, } } func (u *SourceQuickbooksUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - oAuth20 := new(SourceQuickbooksUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceQuickbooksUpdateAuthorizationMethodTypeOAuth20 + sourceQuickbooksUpdateOAuth20 := new(SourceQuickbooksUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceQuickbooksUpdateOAuth20, "", true, true); err == nil { + u.SourceQuickbooksUpdateOAuth20 = sourceQuickbooksUpdateOAuth20 + u.Type = SourceQuickbooksUpdateAuthorizationMethodTypeSourceQuickbooksUpdateOAuth20 return nil } @@ -141,8 +141,8 @@ func (u *SourceQuickbooksUpdateAuthorizationMethod) UnmarshalJSON(data []byte) e } func (u SourceQuickbooksUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceQuickbooksUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceQuickbooksUpdateOAuth20, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceretently.go b/internal/sdk/pkg/models/shared/sourceretently.go index 3dc856d3a..68b9bc0e8 100644 --- a/internal/sdk/pkg/models/shared/sourceretently.go +++ b/internal/sdk/pkg/models/shared/sourceretently.go @@ -152,48 +152,48 @@ func (o *SourceRetentlyAuthenticateViaRetentlyOAuth) GetRefreshToken() string { type SourceRetentlyAuthenticationMechanismType string const ( - SourceRetentlyAuthenticationMechanismTypeAuthenticateViaRetentlyOAuth SourceRetentlyAuthenticationMechanismType = "AuthenticateViaRetentlyOAuth" - SourceRetentlyAuthenticationMechanismTypeAuthenticateWithAPIToken SourceRetentlyAuthenticationMechanismType = "AuthenticateWithAPIToken" + SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateViaRetentlyOAuth SourceRetentlyAuthenticationMechanismType = "source-retently_Authenticate via Retently (OAuth)" + SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateWithAPIToken SourceRetentlyAuthenticationMechanismType = "source-retently_Authenticate with API Token" ) type SourceRetentlyAuthenticationMechanism struct { - AuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticateViaRetentlyOAuth - AuthenticateWithAPIToken *SourceRetentlyAuthenticateWithAPIToken + SourceRetentlyAuthenticateViaRetentlyOAuth *SourceRetentlyAuthenticateViaRetentlyOAuth + SourceRetentlyAuthenticateWithAPIToken *SourceRetentlyAuthenticateWithAPIToken Type SourceRetentlyAuthenticationMechanismType } -func CreateSourceRetentlyAuthenticationMechanismAuthenticateViaRetentlyOAuth(authenticateViaRetentlyOAuth SourceRetentlyAuthenticateViaRetentlyOAuth) SourceRetentlyAuthenticationMechanism { - typ := SourceRetentlyAuthenticationMechanismTypeAuthenticateViaRetentlyOAuth +func CreateSourceRetentlyAuthenticationMechanismSourceRetentlyAuthenticateViaRetentlyOAuth(sourceRetentlyAuthenticateViaRetentlyOAuth SourceRetentlyAuthenticateViaRetentlyOAuth) SourceRetentlyAuthenticationMechanism { + typ := SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateViaRetentlyOAuth return SourceRetentlyAuthenticationMechanism{ - AuthenticateViaRetentlyOAuth: &authenticateViaRetentlyOAuth, - Type: typ, + SourceRetentlyAuthenticateViaRetentlyOAuth: &sourceRetentlyAuthenticateViaRetentlyOAuth, + Type: typ, } } -func CreateSourceRetentlyAuthenticationMechanismAuthenticateWithAPIToken(authenticateWithAPIToken SourceRetentlyAuthenticateWithAPIToken) SourceRetentlyAuthenticationMechanism { - typ := SourceRetentlyAuthenticationMechanismTypeAuthenticateWithAPIToken +func CreateSourceRetentlyAuthenticationMechanismSourceRetentlyAuthenticateWithAPIToken(sourceRetentlyAuthenticateWithAPIToken SourceRetentlyAuthenticateWithAPIToken) SourceRetentlyAuthenticationMechanism { + typ := SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateWithAPIToken return SourceRetentlyAuthenticationMechanism{ - AuthenticateWithAPIToken: &authenticateWithAPIToken, - Type: typ, + SourceRetentlyAuthenticateWithAPIToken: &sourceRetentlyAuthenticateWithAPIToken, + Type: typ, } } func (u *SourceRetentlyAuthenticationMechanism) UnmarshalJSON(data []byte) error { - authenticateWithAPIToken := new(SourceRetentlyAuthenticateWithAPIToken) - if err := utils.UnmarshalJSON(data, &authenticateWithAPIToken, "", true, true); err == nil { - u.AuthenticateWithAPIToken = authenticateWithAPIToken - u.Type = SourceRetentlyAuthenticationMechanismTypeAuthenticateWithAPIToken + sourceRetentlyAuthenticateWithAPIToken := new(SourceRetentlyAuthenticateWithAPIToken) + if err := utils.UnmarshalJSON(data, &sourceRetentlyAuthenticateWithAPIToken, "", true, true); err == nil { + u.SourceRetentlyAuthenticateWithAPIToken = sourceRetentlyAuthenticateWithAPIToken + u.Type = SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateWithAPIToken return nil } - authenticateViaRetentlyOAuth := new(SourceRetentlyAuthenticateViaRetentlyOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaRetentlyOAuth, "", true, true); err == nil { - u.AuthenticateViaRetentlyOAuth = authenticateViaRetentlyOAuth - u.Type = SourceRetentlyAuthenticationMechanismTypeAuthenticateViaRetentlyOAuth + sourceRetentlyAuthenticateViaRetentlyOAuth := new(SourceRetentlyAuthenticateViaRetentlyOAuth) + if err := utils.UnmarshalJSON(data, &sourceRetentlyAuthenticateViaRetentlyOAuth, "", true, true); err == nil { + u.SourceRetentlyAuthenticateViaRetentlyOAuth = sourceRetentlyAuthenticateViaRetentlyOAuth + u.Type = SourceRetentlyAuthenticationMechanismTypeSourceRetentlyAuthenticateViaRetentlyOAuth return nil } @@ -201,12 +201,12 @@ func (u *SourceRetentlyAuthenticationMechanism) UnmarshalJSON(data []byte) error } func (u SourceRetentlyAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaRetentlyOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaRetentlyOAuth, "", true) + if u.SourceRetentlyAuthenticateViaRetentlyOAuth != nil { + return utils.MarshalJSON(u.SourceRetentlyAuthenticateViaRetentlyOAuth, "", true) } - if u.AuthenticateWithAPIToken != nil { - return utils.MarshalJSON(u.AuthenticateWithAPIToken, "", true) + if u.SourceRetentlyAuthenticateWithAPIToken != nil { + return utils.MarshalJSON(u.SourceRetentlyAuthenticateWithAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceretentlyupdate.go b/internal/sdk/pkg/models/shared/sourceretentlyupdate.go index 7974ba3dd..da1a6540b 100644 --- a/internal/sdk/pkg/models/shared/sourceretentlyupdate.go +++ b/internal/sdk/pkg/models/shared/sourceretentlyupdate.go @@ -152,8 +152,8 @@ func (o *AuthenticateViaRetentlyOAuth) GetRefreshToken() string { type SourceRetentlyUpdateAuthenticationMechanismType string const ( - SourceRetentlyUpdateAuthenticationMechanismTypeAuthenticateViaRetentlyOAuth SourceRetentlyUpdateAuthenticationMechanismType = "AuthenticateViaRetentlyOAuth" - SourceRetentlyUpdateAuthenticationMechanismTypeAuthenticateWithAPIToken SourceRetentlyUpdateAuthenticationMechanismType = "AuthenticateWithAPIToken" + SourceRetentlyUpdateAuthenticationMechanismTypeAuthenticateViaRetentlyOAuth SourceRetentlyUpdateAuthenticationMechanismType = "Authenticate via Retently (OAuth)" + SourceRetentlyUpdateAuthenticationMechanismTypeAuthenticateWithAPIToken SourceRetentlyUpdateAuthenticationMechanismType = "Authenticate with API Token" ) type SourceRetentlyUpdateAuthenticationMechanism struct { diff --git a/internal/sdk/pkg/models/shared/sources3.go b/internal/sdk/pkg/models/shared/sources3.go index 3f0fd9d94..8430bb556 100644 --- a/internal/sdk/pkg/models/shared/sources3.go +++ b/internal/sdk/pkg/models/shared/sources3.go @@ -364,84 +364,84 @@ func (o *SourceS3CSV) GetQuoteChar() *string { type SourceS3FileFormatType string const ( - SourceS3FileFormatTypeCsv SourceS3FileFormatType = "Csv" - SourceS3FileFormatTypeParquet SourceS3FileFormatType = "Parquet" - SourceS3FileFormatTypeAvro SourceS3FileFormatType = "Avro" - SourceS3FileFormatTypeJsonl SourceS3FileFormatType = "Jsonl" + SourceS3FileFormatTypeSourceS3CSV SourceS3FileFormatType = "source-s3_CSV" + SourceS3FileFormatTypeSourceS3Parquet SourceS3FileFormatType = "source-s3_Parquet" + SourceS3FileFormatTypeSourceS3Avro SourceS3FileFormatType = "source-s3_Avro" + SourceS3FileFormatTypeSourceS3Jsonl SourceS3FileFormatType = "source-s3_Jsonl" ) type SourceS3FileFormat struct { - Csv *SourceS3CSV - Parquet *SourceS3Parquet - Avro *SourceS3Avro - Jsonl *SourceS3Jsonl + SourceS3CSV *SourceS3CSV + SourceS3Parquet *SourceS3Parquet + SourceS3Avro *SourceS3Avro + SourceS3Jsonl *SourceS3Jsonl Type SourceS3FileFormatType } -func CreateSourceS3FileFormatCsv(csv SourceS3CSV) SourceS3FileFormat { - typ := SourceS3FileFormatTypeCsv +func CreateSourceS3FileFormatSourceS3CSV(sourceS3CSV SourceS3CSV) SourceS3FileFormat { + typ := SourceS3FileFormatTypeSourceS3CSV return SourceS3FileFormat{ - Csv: &csv, - Type: typ, + SourceS3CSV: &sourceS3CSV, + Type: typ, } } -func CreateSourceS3FileFormatParquet(parquet SourceS3Parquet) SourceS3FileFormat { - typ := SourceS3FileFormatTypeParquet +func CreateSourceS3FileFormatSourceS3Parquet(sourceS3Parquet SourceS3Parquet) SourceS3FileFormat { + typ := SourceS3FileFormatTypeSourceS3Parquet return SourceS3FileFormat{ - Parquet: &parquet, - Type: typ, + SourceS3Parquet: &sourceS3Parquet, + Type: typ, } } -func CreateSourceS3FileFormatAvro(avro SourceS3Avro) SourceS3FileFormat { - typ := SourceS3FileFormatTypeAvro +func CreateSourceS3FileFormatSourceS3Avro(sourceS3Avro SourceS3Avro) SourceS3FileFormat { + typ := SourceS3FileFormatTypeSourceS3Avro return SourceS3FileFormat{ - Avro: &avro, - Type: typ, + SourceS3Avro: &sourceS3Avro, + Type: typ, } } -func CreateSourceS3FileFormatJsonl(jsonl SourceS3Jsonl) SourceS3FileFormat { - typ := SourceS3FileFormatTypeJsonl +func CreateSourceS3FileFormatSourceS3Jsonl(sourceS3Jsonl SourceS3Jsonl) SourceS3FileFormat { + typ := SourceS3FileFormatTypeSourceS3Jsonl return SourceS3FileFormat{ - Jsonl: &jsonl, - Type: typ, + SourceS3Jsonl: &sourceS3Jsonl, + Type: typ, } } func (u *SourceS3FileFormat) UnmarshalJSON(data []byte) error { - avro := new(SourceS3Avro) - if err := utils.UnmarshalJSON(data, &avro, "", true, true); err == nil { - u.Avro = avro - u.Type = SourceS3FileFormatTypeAvro + sourceS3Avro := new(SourceS3Avro) + if err := utils.UnmarshalJSON(data, &sourceS3Avro, "", true, true); err == nil { + u.SourceS3Avro = sourceS3Avro + u.Type = SourceS3FileFormatTypeSourceS3Avro return nil } - parquet := new(SourceS3Parquet) - if err := utils.UnmarshalJSON(data, &parquet, "", true, true); err == nil { - u.Parquet = parquet - u.Type = SourceS3FileFormatTypeParquet + sourceS3Parquet := new(SourceS3Parquet) + if err := utils.UnmarshalJSON(data, &sourceS3Parquet, "", true, true); err == nil { + u.SourceS3Parquet = sourceS3Parquet + u.Type = SourceS3FileFormatTypeSourceS3Parquet return nil } - jsonl := new(SourceS3Jsonl) - if err := utils.UnmarshalJSON(data, &jsonl, "", true, true); err == nil { - u.Jsonl = jsonl - u.Type = SourceS3FileFormatTypeJsonl + sourceS3Jsonl := new(SourceS3Jsonl) + if err := utils.UnmarshalJSON(data, &sourceS3Jsonl, "", true, true); err == nil { + u.SourceS3Jsonl = sourceS3Jsonl + u.Type = SourceS3FileFormatTypeSourceS3Jsonl return nil } - csv := new(SourceS3CSV) - if err := utils.UnmarshalJSON(data, &csv, "", true, true); err == nil { - u.Csv = csv - u.Type = SourceS3FileFormatTypeCsv + sourceS3CSV := new(SourceS3CSV) + if err := utils.UnmarshalJSON(data, &sourceS3CSV, "", true, true); err == nil { + u.SourceS3CSV = sourceS3CSV + u.Type = SourceS3FileFormatTypeSourceS3CSV return nil } @@ -449,20 +449,20 @@ func (u *SourceS3FileFormat) UnmarshalJSON(data []byte) error { } func (u SourceS3FileFormat) MarshalJSON() ([]byte, error) { - if u.Csv != nil { - return utils.MarshalJSON(u.Csv, "", true) + if u.SourceS3CSV != nil { + return utils.MarshalJSON(u.SourceS3CSV, "", true) } - if u.Parquet != nil { - return utils.MarshalJSON(u.Parquet, "", true) + if u.SourceS3Parquet != nil { + return utils.MarshalJSON(u.SourceS3Parquet, "", true) } - if u.Avro != nil { - return utils.MarshalJSON(u.Avro, "", true) + if u.SourceS3Avro != nil { + return utils.MarshalJSON(u.SourceS3Avro, "", true) } - if u.Jsonl != nil { - return utils.MarshalJSON(u.Jsonl, "", true) + if u.SourceS3Jsonl != nil { + return utils.MarshalJSON(u.SourceS3Jsonl, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -826,66 +826,66 @@ func (o *SourceS3FromCSV) GetHeaderDefinitionType() *SourceS3HeaderDefinitionTyp type SourceS3CSVHeaderDefinitionType string const ( - SourceS3CSVHeaderDefinitionTypeFromCSV SourceS3CSVHeaderDefinitionType = "FromCSV" - SourceS3CSVHeaderDefinitionTypeAutogenerated SourceS3CSVHeaderDefinitionType = "Autogenerated" - SourceS3CSVHeaderDefinitionTypeUserProvided SourceS3CSVHeaderDefinitionType = "UserProvided" + SourceS3CSVHeaderDefinitionTypeSourceS3FromCSV SourceS3CSVHeaderDefinitionType = "source-s3_From CSV" + SourceS3CSVHeaderDefinitionTypeSourceS3Autogenerated SourceS3CSVHeaderDefinitionType = "source-s3_Autogenerated" + SourceS3CSVHeaderDefinitionTypeSourceS3UserProvided SourceS3CSVHeaderDefinitionType = "source-s3_User Provided" ) type SourceS3CSVHeaderDefinition struct { - FromCSV *SourceS3FromCSV - Autogenerated *SourceS3Autogenerated - UserProvided *SourceS3UserProvided + SourceS3FromCSV *SourceS3FromCSV + SourceS3Autogenerated *SourceS3Autogenerated + SourceS3UserProvided *SourceS3UserProvided Type SourceS3CSVHeaderDefinitionType } -func CreateSourceS3CSVHeaderDefinitionFromCSV(fromCSV SourceS3FromCSV) SourceS3CSVHeaderDefinition { - typ := SourceS3CSVHeaderDefinitionTypeFromCSV +func CreateSourceS3CSVHeaderDefinitionSourceS3FromCSV(sourceS3FromCSV SourceS3FromCSV) SourceS3CSVHeaderDefinition { + typ := SourceS3CSVHeaderDefinitionTypeSourceS3FromCSV return SourceS3CSVHeaderDefinition{ - FromCSV: &fromCSV, - Type: typ, + SourceS3FromCSV: &sourceS3FromCSV, + Type: typ, } } -func CreateSourceS3CSVHeaderDefinitionAutogenerated(autogenerated SourceS3Autogenerated) SourceS3CSVHeaderDefinition { - typ := SourceS3CSVHeaderDefinitionTypeAutogenerated +func CreateSourceS3CSVHeaderDefinitionSourceS3Autogenerated(sourceS3Autogenerated SourceS3Autogenerated) SourceS3CSVHeaderDefinition { + typ := SourceS3CSVHeaderDefinitionTypeSourceS3Autogenerated return SourceS3CSVHeaderDefinition{ - Autogenerated: &autogenerated, - Type: typ, + SourceS3Autogenerated: &sourceS3Autogenerated, + Type: typ, } } -func CreateSourceS3CSVHeaderDefinitionUserProvided(userProvided SourceS3UserProvided) SourceS3CSVHeaderDefinition { - typ := SourceS3CSVHeaderDefinitionTypeUserProvided +func CreateSourceS3CSVHeaderDefinitionSourceS3UserProvided(sourceS3UserProvided SourceS3UserProvided) SourceS3CSVHeaderDefinition { + typ := SourceS3CSVHeaderDefinitionTypeSourceS3UserProvided return SourceS3CSVHeaderDefinition{ - UserProvided: &userProvided, - Type: typ, + SourceS3UserProvided: &sourceS3UserProvided, + Type: typ, } } func (u *SourceS3CSVHeaderDefinition) UnmarshalJSON(data []byte) error { - fromCSV := new(SourceS3FromCSV) - if err := utils.UnmarshalJSON(data, &fromCSV, "", true, true); err == nil { - u.FromCSV = fromCSV - u.Type = SourceS3CSVHeaderDefinitionTypeFromCSV + sourceS3FromCSV := new(SourceS3FromCSV) + if err := utils.UnmarshalJSON(data, &sourceS3FromCSV, "", true, true); err == nil { + u.SourceS3FromCSV = sourceS3FromCSV + u.Type = SourceS3CSVHeaderDefinitionTypeSourceS3FromCSV return nil } - autogenerated := new(SourceS3Autogenerated) - if err := utils.UnmarshalJSON(data, &autogenerated, "", true, true); err == nil { - u.Autogenerated = autogenerated - u.Type = SourceS3CSVHeaderDefinitionTypeAutogenerated + sourceS3Autogenerated := new(SourceS3Autogenerated) + if err := utils.UnmarshalJSON(data, &sourceS3Autogenerated, "", true, true); err == nil { + u.SourceS3Autogenerated = sourceS3Autogenerated + u.Type = SourceS3CSVHeaderDefinitionTypeSourceS3Autogenerated return nil } - userProvided := new(SourceS3UserProvided) - if err := utils.UnmarshalJSON(data, &userProvided, "", true, true); err == nil { - u.UserProvided = userProvided - u.Type = SourceS3CSVHeaderDefinitionTypeUserProvided + sourceS3UserProvided := new(SourceS3UserProvided) + if err := utils.UnmarshalJSON(data, &sourceS3UserProvided, "", true, true); err == nil { + u.SourceS3UserProvided = sourceS3UserProvided + u.Type = SourceS3CSVHeaderDefinitionTypeSourceS3UserProvided return nil } @@ -893,16 +893,16 @@ func (u *SourceS3CSVHeaderDefinition) UnmarshalJSON(data []byte) error { } func (u SourceS3CSVHeaderDefinition) MarshalJSON() ([]byte, error) { - if u.FromCSV != nil { - return utils.MarshalJSON(u.FromCSV, "", true) + if u.SourceS3FromCSV != nil { + return utils.MarshalJSON(u.SourceS3FromCSV, "", true) } - if u.Autogenerated != nil { - return utils.MarshalJSON(u.Autogenerated, "", true) + if u.SourceS3Autogenerated != nil { + return utils.MarshalJSON(u.SourceS3Autogenerated, "", true) } - if u.UserProvided != nil { - return utils.MarshalJSON(u.UserProvided, "", true) + if u.SourceS3UserProvided != nil { + return utils.MarshalJSON(u.SourceS3UserProvided, "", true) } return nil, errors.New("could not marshal union type: all fields are null") @@ -1129,84 +1129,84 @@ func (o *SourceS3AvroFormat) GetFiletype() *SourceS3SchemasStreamsFiletype { type SourceS3FormatType string const ( - SourceS3FormatTypeAvroFormat SourceS3FormatType = "AvroFormat" - SourceS3FormatTypeCSVFormat SourceS3FormatType = "CSVFormat" - SourceS3FormatTypeJsonlFormat SourceS3FormatType = "JsonlFormat" - SourceS3FormatTypeParquetFormat SourceS3FormatType = "ParquetFormat" + SourceS3FormatTypeSourceS3AvroFormat SourceS3FormatType = "source-s3_Avro Format" + SourceS3FormatTypeSourceS3CSVFormat SourceS3FormatType = "source-s3_CSV Format" + SourceS3FormatTypeSourceS3JsonlFormat SourceS3FormatType = "source-s3_Jsonl Format" + SourceS3FormatTypeSourceS3ParquetFormat SourceS3FormatType = "source-s3_Parquet Format" ) type SourceS3Format struct { - AvroFormat *SourceS3AvroFormat - CSVFormat *SourceS3CSVFormat - JsonlFormat *SourceS3JsonlFormat - ParquetFormat *SourceS3ParquetFormat + SourceS3AvroFormat *SourceS3AvroFormat + SourceS3CSVFormat *SourceS3CSVFormat + SourceS3JsonlFormat *SourceS3JsonlFormat + SourceS3ParquetFormat *SourceS3ParquetFormat Type SourceS3FormatType } -func CreateSourceS3FormatAvroFormat(avroFormat SourceS3AvroFormat) SourceS3Format { - typ := SourceS3FormatTypeAvroFormat +func CreateSourceS3FormatSourceS3AvroFormat(sourceS3AvroFormat SourceS3AvroFormat) SourceS3Format { + typ := SourceS3FormatTypeSourceS3AvroFormat return SourceS3Format{ - AvroFormat: &avroFormat, - Type: typ, + SourceS3AvroFormat: &sourceS3AvroFormat, + Type: typ, } } -func CreateSourceS3FormatCSVFormat(csvFormat SourceS3CSVFormat) SourceS3Format { - typ := SourceS3FormatTypeCSVFormat +func CreateSourceS3FormatSourceS3CSVFormat(sourceS3CSVFormat SourceS3CSVFormat) SourceS3Format { + typ := SourceS3FormatTypeSourceS3CSVFormat return SourceS3Format{ - CSVFormat: &csvFormat, - Type: typ, + SourceS3CSVFormat: &sourceS3CSVFormat, + Type: typ, } } -func CreateSourceS3FormatJsonlFormat(jsonlFormat SourceS3JsonlFormat) SourceS3Format { - typ := SourceS3FormatTypeJsonlFormat +func CreateSourceS3FormatSourceS3JsonlFormat(sourceS3JsonlFormat SourceS3JsonlFormat) SourceS3Format { + typ := SourceS3FormatTypeSourceS3JsonlFormat return SourceS3Format{ - JsonlFormat: &jsonlFormat, - Type: typ, + SourceS3JsonlFormat: &sourceS3JsonlFormat, + Type: typ, } } -func CreateSourceS3FormatParquetFormat(parquetFormat SourceS3ParquetFormat) SourceS3Format { - typ := SourceS3FormatTypeParquetFormat +func CreateSourceS3FormatSourceS3ParquetFormat(sourceS3ParquetFormat SourceS3ParquetFormat) SourceS3Format { + typ := SourceS3FormatTypeSourceS3ParquetFormat return SourceS3Format{ - ParquetFormat: &parquetFormat, - Type: typ, + SourceS3ParquetFormat: &sourceS3ParquetFormat, + Type: typ, } } func (u *SourceS3Format) UnmarshalJSON(data []byte) error { - jsonlFormat := new(SourceS3JsonlFormat) - if err := utils.UnmarshalJSON(data, &jsonlFormat, "", true, true); err == nil { - u.JsonlFormat = jsonlFormat - u.Type = SourceS3FormatTypeJsonlFormat + sourceS3JsonlFormat := new(SourceS3JsonlFormat) + if err := utils.UnmarshalJSON(data, &sourceS3JsonlFormat, "", true, true); err == nil { + u.SourceS3JsonlFormat = sourceS3JsonlFormat + u.Type = SourceS3FormatTypeSourceS3JsonlFormat return nil } - avroFormat := new(SourceS3AvroFormat) - if err := utils.UnmarshalJSON(data, &avroFormat, "", true, true); err == nil { - u.AvroFormat = avroFormat - u.Type = SourceS3FormatTypeAvroFormat + sourceS3AvroFormat := new(SourceS3AvroFormat) + if err := utils.UnmarshalJSON(data, &sourceS3AvroFormat, "", true, true); err == nil { + u.SourceS3AvroFormat = sourceS3AvroFormat + u.Type = SourceS3FormatTypeSourceS3AvroFormat return nil } - parquetFormat := new(SourceS3ParquetFormat) - if err := utils.UnmarshalJSON(data, &parquetFormat, "", true, true); err == nil { - u.ParquetFormat = parquetFormat - u.Type = SourceS3FormatTypeParquetFormat + sourceS3ParquetFormat := new(SourceS3ParquetFormat) + if err := utils.UnmarshalJSON(data, &sourceS3ParquetFormat, "", true, true); err == nil { + u.SourceS3ParquetFormat = sourceS3ParquetFormat + u.Type = SourceS3FormatTypeSourceS3ParquetFormat return nil } - csvFormat := new(SourceS3CSVFormat) - if err := utils.UnmarshalJSON(data, &csvFormat, "", true, true); err == nil { - u.CSVFormat = csvFormat - u.Type = SourceS3FormatTypeCSVFormat + sourceS3CSVFormat := new(SourceS3CSVFormat) + if err := utils.UnmarshalJSON(data, &sourceS3CSVFormat, "", true, true); err == nil { + u.SourceS3CSVFormat = sourceS3CSVFormat + u.Type = SourceS3FormatTypeSourceS3CSVFormat return nil } @@ -1214,20 +1214,20 @@ func (u *SourceS3Format) UnmarshalJSON(data []byte) error { } func (u SourceS3Format) MarshalJSON() ([]byte, error) { - if u.AvroFormat != nil { - return utils.MarshalJSON(u.AvroFormat, "", true) + if u.SourceS3AvroFormat != nil { + return utils.MarshalJSON(u.SourceS3AvroFormat, "", true) } - if u.CSVFormat != nil { - return utils.MarshalJSON(u.CSVFormat, "", true) + if u.SourceS3CSVFormat != nil { + return utils.MarshalJSON(u.SourceS3CSVFormat, "", true) } - if u.JsonlFormat != nil { - return utils.MarshalJSON(u.JsonlFormat, "", true) + if u.SourceS3JsonlFormat != nil { + return utils.MarshalJSON(u.SourceS3JsonlFormat, "", true) } - if u.ParquetFormat != nil { - return utils.MarshalJSON(u.ParquetFormat, "", true) + if u.SourceS3ParquetFormat != nil { + return utils.MarshalJSON(u.SourceS3ParquetFormat, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sources3update.go b/internal/sdk/pkg/models/shared/sources3update.go index 0b2ebc65e..4c73f4e4d 100644 --- a/internal/sdk/pkg/models/shared/sources3update.go +++ b/internal/sdk/pkg/models/shared/sources3update.go @@ -364,7 +364,7 @@ func (o *Csv) GetQuoteChar() *string { type SourceS3UpdateFileFormatType string const ( - SourceS3UpdateFileFormatTypeCsv SourceS3UpdateFileFormatType = "Csv" + SourceS3UpdateFileFormatTypeCsv SourceS3UpdateFileFormatType = "CSV" SourceS3UpdateFileFormatTypeParquet SourceS3UpdateFileFormatType = "Parquet" SourceS3UpdateFileFormatTypeAvro SourceS3UpdateFileFormatType = "Avro" SourceS3UpdateFileFormatTypeJsonl SourceS3UpdateFileFormatType = "Jsonl" @@ -802,9 +802,9 @@ func (o *FromCSV) GetHeaderDefinitionType() *HeaderDefinitionType { type CSVHeaderDefinitionType string const ( - CSVHeaderDefinitionTypeFromCSV CSVHeaderDefinitionType = "FromCSV" + CSVHeaderDefinitionTypeFromCSV CSVHeaderDefinitionType = "From CSV" CSVHeaderDefinitionTypeAutogenerated CSVHeaderDefinitionType = "Autogenerated" - CSVHeaderDefinitionTypeUserProvided CSVHeaderDefinitionType = "UserProvided" + CSVHeaderDefinitionTypeUserProvided CSVHeaderDefinitionType = "User Provided" ) type CSVHeaderDefinition struct { @@ -1105,10 +1105,10 @@ func (o *AvroFormat) GetFiletype() *SourceS3UpdateSchemasStreamsFiletype { type FormatUnionType string const ( - FormatUnionTypeAvroFormat FormatUnionType = "AvroFormat" - FormatUnionTypeCSVFormat FormatUnionType = "CSVFormat" - FormatUnionTypeJsonlFormat FormatUnionType = "JsonlFormat" - FormatUnionTypeParquetFormat FormatUnionType = "ParquetFormat" + FormatUnionTypeAvroFormat FormatUnionType = "Avro Format" + FormatUnionTypeCSVFormat FormatUnionType = "CSV Format" + FormatUnionTypeJsonlFormat FormatUnionType = "Jsonl Format" + FormatUnionTypeParquetFormat FormatUnionType = "Parquet Format" ) type Format struct { diff --git a/internal/sdk/pkg/models/shared/sourcesalesloft.go b/internal/sdk/pkg/models/shared/sourcesalesloft.go index 34bbebbcf..4309fd429 100644 --- a/internal/sdk/pkg/models/shared/sourcesalesloft.go +++ b/internal/sdk/pkg/models/shared/sourcesalesloft.go @@ -153,48 +153,48 @@ func (o *SourceSalesloftAuthenticateViaOAuth) GetTokenExpiryDate() time.Time { type SourceSalesloftCredentialsType string const ( - SourceSalesloftCredentialsTypeAuthenticateViaOAuth SourceSalesloftCredentialsType = "AuthenticateViaOAuth" - SourceSalesloftCredentialsTypeAuthenticateViaAPIKey SourceSalesloftCredentialsType = "AuthenticateViaAPIKey" + SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaOAuth SourceSalesloftCredentialsType = "source-salesloft_Authenticate via OAuth" + SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaAPIKey SourceSalesloftCredentialsType = "source-salesloft_Authenticate via API Key" ) type SourceSalesloftCredentials struct { - AuthenticateViaOAuth *SourceSalesloftAuthenticateViaOAuth - AuthenticateViaAPIKey *SourceSalesloftAuthenticateViaAPIKey + SourceSalesloftAuthenticateViaOAuth *SourceSalesloftAuthenticateViaOAuth + SourceSalesloftAuthenticateViaAPIKey *SourceSalesloftAuthenticateViaAPIKey Type SourceSalesloftCredentialsType } -func CreateSourceSalesloftCredentialsAuthenticateViaOAuth(authenticateViaOAuth SourceSalesloftAuthenticateViaOAuth) SourceSalesloftCredentials { - typ := SourceSalesloftCredentialsTypeAuthenticateViaOAuth +func CreateSourceSalesloftCredentialsSourceSalesloftAuthenticateViaOAuth(sourceSalesloftAuthenticateViaOAuth SourceSalesloftAuthenticateViaOAuth) SourceSalesloftCredentials { + typ := SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaOAuth return SourceSalesloftCredentials{ - AuthenticateViaOAuth: &authenticateViaOAuth, - Type: typ, + SourceSalesloftAuthenticateViaOAuth: &sourceSalesloftAuthenticateViaOAuth, + Type: typ, } } -func CreateSourceSalesloftCredentialsAuthenticateViaAPIKey(authenticateViaAPIKey SourceSalesloftAuthenticateViaAPIKey) SourceSalesloftCredentials { - typ := SourceSalesloftCredentialsTypeAuthenticateViaAPIKey +func CreateSourceSalesloftCredentialsSourceSalesloftAuthenticateViaAPIKey(sourceSalesloftAuthenticateViaAPIKey SourceSalesloftAuthenticateViaAPIKey) SourceSalesloftCredentials { + typ := SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaAPIKey return SourceSalesloftCredentials{ - AuthenticateViaAPIKey: &authenticateViaAPIKey, - Type: typ, + SourceSalesloftAuthenticateViaAPIKey: &sourceSalesloftAuthenticateViaAPIKey, + Type: typ, } } func (u *SourceSalesloftCredentials) UnmarshalJSON(data []byte) error { - authenticateViaAPIKey := new(SourceSalesloftAuthenticateViaAPIKey) - if err := utils.UnmarshalJSON(data, &authenticateViaAPIKey, "", true, true); err == nil { - u.AuthenticateViaAPIKey = authenticateViaAPIKey - u.Type = SourceSalesloftCredentialsTypeAuthenticateViaAPIKey + sourceSalesloftAuthenticateViaAPIKey := new(SourceSalesloftAuthenticateViaAPIKey) + if err := utils.UnmarshalJSON(data, &sourceSalesloftAuthenticateViaAPIKey, "", true, true); err == nil { + u.SourceSalesloftAuthenticateViaAPIKey = sourceSalesloftAuthenticateViaAPIKey + u.Type = SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaAPIKey return nil } - authenticateViaOAuth := new(SourceSalesloftAuthenticateViaOAuth) - if err := utils.UnmarshalJSON(data, &authenticateViaOAuth, "", true, true); err == nil { - u.AuthenticateViaOAuth = authenticateViaOAuth - u.Type = SourceSalesloftCredentialsTypeAuthenticateViaOAuth + sourceSalesloftAuthenticateViaOAuth := new(SourceSalesloftAuthenticateViaOAuth) + if err := utils.UnmarshalJSON(data, &sourceSalesloftAuthenticateViaOAuth, "", true, true); err == nil { + u.SourceSalesloftAuthenticateViaOAuth = sourceSalesloftAuthenticateViaOAuth + u.Type = SourceSalesloftCredentialsTypeSourceSalesloftAuthenticateViaOAuth return nil } @@ -202,12 +202,12 @@ func (u *SourceSalesloftCredentials) UnmarshalJSON(data []byte) error { } func (u SourceSalesloftCredentials) MarshalJSON() ([]byte, error) { - if u.AuthenticateViaOAuth != nil { - return utils.MarshalJSON(u.AuthenticateViaOAuth, "", true) + if u.SourceSalesloftAuthenticateViaOAuth != nil { + return utils.MarshalJSON(u.SourceSalesloftAuthenticateViaOAuth, "", true) } - if u.AuthenticateViaAPIKey != nil { - return utils.MarshalJSON(u.AuthenticateViaAPIKey, "", true) + if u.SourceSalesloftAuthenticateViaAPIKey != nil { + return utils.MarshalJSON(u.SourceSalesloftAuthenticateViaAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go b/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go index 3db048464..01b67fdb0 100644 --- a/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesalesloftupdate.go @@ -153,8 +153,8 @@ func (o *AuthenticateViaOAuth) GetTokenExpiryDate() time.Time { type SourceSalesloftUpdateCredentialsType string const ( - SourceSalesloftUpdateCredentialsTypeAuthenticateViaOAuth SourceSalesloftUpdateCredentialsType = "AuthenticateViaOAuth" - SourceSalesloftUpdateCredentialsTypeAuthenticateViaAPIKey SourceSalesloftUpdateCredentialsType = "AuthenticateViaAPIKey" + SourceSalesloftUpdateCredentialsTypeAuthenticateViaOAuth SourceSalesloftUpdateCredentialsType = "Authenticate via OAuth" + SourceSalesloftUpdateCredentialsTypeAuthenticateViaAPIKey SourceSalesloftUpdateCredentialsType = "Authenticate via API Key" ) type SourceSalesloftUpdateCredentials struct { diff --git a/internal/sdk/pkg/models/shared/sourcesftp.go b/internal/sdk/pkg/models/shared/sourcesftp.go index ffe44e0c9..a6e9b3d58 100644 --- a/internal/sdk/pkg/models/shared/sourcesftp.go +++ b/internal/sdk/pkg/models/shared/sourcesftp.go @@ -122,48 +122,48 @@ func (o *SourceSftpPasswordAuthentication) GetAuthUserPassword() string { type SourceSftpAuthenticationWildcardType string const ( - SourceSftpAuthenticationWildcardTypePasswordAuthentication SourceSftpAuthenticationWildcardType = "PasswordAuthentication" - SourceSftpAuthenticationWildcardTypeSSHKeyAuthentication SourceSftpAuthenticationWildcardType = "SSHKeyAuthentication" + SourceSftpAuthenticationWildcardTypeSourceSftpPasswordAuthentication SourceSftpAuthenticationWildcardType = "source-sftp_Password Authentication" + SourceSftpAuthenticationWildcardTypeSourceSftpSSHKeyAuthentication SourceSftpAuthenticationWildcardType = "source-sftp_SSH Key Authentication" ) type SourceSftpAuthenticationWildcard struct { - PasswordAuthentication *SourceSftpPasswordAuthentication - SSHKeyAuthentication *SourceSftpSSHKeyAuthentication + SourceSftpPasswordAuthentication *SourceSftpPasswordAuthentication + SourceSftpSSHKeyAuthentication *SourceSftpSSHKeyAuthentication Type SourceSftpAuthenticationWildcardType } -func CreateSourceSftpAuthenticationWildcardPasswordAuthentication(passwordAuthentication SourceSftpPasswordAuthentication) SourceSftpAuthenticationWildcard { - typ := SourceSftpAuthenticationWildcardTypePasswordAuthentication +func CreateSourceSftpAuthenticationWildcardSourceSftpPasswordAuthentication(sourceSftpPasswordAuthentication SourceSftpPasswordAuthentication) SourceSftpAuthenticationWildcard { + typ := SourceSftpAuthenticationWildcardTypeSourceSftpPasswordAuthentication return SourceSftpAuthenticationWildcard{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceSftpPasswordAuthentication: &sourceSftpPasswordAuthentication, + Type: typ, } } -func CreateSourceSftpAuthenticationWildcardSSHKeyAuthentication(sshKeyAuthentication SourceSftpSSHKeyAuthentication) SourceSftpAuthenticationWildcard { - typ := SourceSftpAuthenticationWildcardTypeSSHKeyAuthentication +func CreateSourceSftpAuthenticationWildcardSourceSftpSSHKeyAuthentication(sourceSftpSSHKeyAuthentication SourceSftpSSHKeyAuthentication) SourceSftpAuthenticationWildcard { + typ := SourceSftpAuthenticationWildcardTypeSourceSftpSSHKeyAuthentication return SourceSftpAuthenticationWildcard{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceSftpSSHKeyAuthentication: &sourceSftpSSHKeyAuthentication, + Type: typ, } } func (u *SourceSftpAuthenticationWildcard) UnmarshalJSON(data []byte) error { - passwordAuthentication := new(SourceSftpPasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceSftpAuthenticationWildcardTypePasswordAuthentication + sourceSftpPasswordAuthentication := new(SourceSftpPasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceSftpPasswordAuthentication, "", true, true); err == nil { + u.SourceSftpPasswordAuthentication = sourceSftpPasswordAuthentication + u.Type = SourceSftpAuthenticationWildcardTypeSourceSftpPasswordAuthentication return nil } - sshKeyAuthentication := new(SourceSftpSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceSftpAuthenticationWildcardTypeSSHKeyAuthentication + sourceSftpSSHKeyAuthentication := new(SourceSftpSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceSftpSSHKeyAuthentication, "", true, true); err == nil { + u.SourceSftpSSHKeyAuthentication = sourceSftpSSHKeyAuthentication + u.Type = SourceSftpAuthenticationWildcardTypeSourceSftpSSHKeyAuthentication return nil } @@ -171,12 +171,12 @@ func (u *SourceSftpAuthenticationWildcard) UnmarshalJSON(data []byte) error { } func (u SourceSftpAuthenticationWildcard) MarshalJSON() ([]byte, error) { - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceSftpPasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceSftpPasswordAuthentication, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceSftpSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceSftpSSHKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesftpupdate.go b/internal/sdk/pkg/models/shared/sourcesftpupdate.go index f1239fe1b..15917b71c 100644 --- a/internal/sdk/pkg/models/shared/sourcesftpupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesftpupdate.go @@ -122,48 +122,48 @@ func (o *SourceSftpUpdatePasswordAuthentication) GetAuthUserPassword() string { type SourceSftpUpdateAuthenticationWildcardType string const ( - SourceSftpUpdateAuthenticationWildcardTypePasswordAuthentication SourceSftpUpdateAuthenticationWildcardType = "PasswordAuthentication" - SourceSftpUpdateAuthenticationWildcardTypeSSHKeyAuthentication SourceSftpUpdateAuthenticationWildcardType = "SSHKeyAuthentication" + SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdatePasswordAuthentication SourceSftpUpdateAuthenticationWildcardType = "source-sftp-update_Password Authentication" + SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdateSSHKeyAuthentication SourceSftpUpdateAuthenticationWildcardType = "source-sftp-update_SSH Key Authentication" ) type SourceSftpUpdateAuthenticationWildcard struct { - PasswordAuthentication *SourceSftpUpdatePasswordAuthentication - SSHKeyAuthentication *SourceSftpUpdateSSHKeyAuthentication + SourceSftpUpdatePasswordAuthentication *SourceSftpUpdatePasswordAuthentication + SourceSftpUpdateSSHKeyAuthentication *SourceSftpUpdateSSHKeyAuthentication Type SourceSftpUpdateAuthenticationWildcardType } -func CreateSourceSftpUpdateAuthenticationWildcardPasswordAuthentication(passwordAuthentication SourceSftpUpdatePasswordAuthentication) SourceSftpUpdateAuthenticationWildcard { - typ := SourceSftpUpdateAuthenticationWildcardTypePasswordAuthentication +func CreateSourceSftpUpdateAuthenticationWildcardSourceSftpUpdatePasswordAuthentication(sourceSftpUpdatePasswordAuthentication SourceSftpUpdatePasswordAuthentication) SourceSftpUpdateAuthenticationWildcard { + typ := SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdatePasswordAuthentication return SourceSftpUpdateAuthenticationWildcard{ - PasswordAuthentication: &passwordAuthentication, - Type: typ, + SourceSftpUpdatePasswordAuthentication: &sourceSftpUpdatePasswordAuthentication, + Type: typ, } } -func CreateSourceSftpUpdateAuthenticationWildcardSSHKeyAuthentication(sshKeyAuthentication SourceSftpUpdateSSHKeyAuthentication) SourceSftpUpdateAuthenticationWildcard { - typ := SourceSftpUpdateAuthenticationWildcardTypeSSHKeyAuthentication +func CreateSourceSftpUpdateAuthenticationWildcardSourceSftpUpdateSSHKeyAuthentication(sourceSftpUpdateSSHKeyAuthentication SourceSftpUpdateSSHKeyAuthentication) SourceSftpUpdateAuthenticationWildcard { + typ := SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdateSSHKeyAuthentication return SourceSftpUpdateAuthenticationWildcard{ - SSHKeyAuthentication: &sshKeyAuthentication, - Type: typ, + SourceSftpUpdateSSHKeyAuthentication: &sourceSftpUpdateSSHKeyAuthentication, + Type: typ, } } func (u *SourceSftpUpdateAuthenticationWildcard) UnmarshalJSON(data []byte) error { - passwordAuthentication := new(SourceSftpUpdatePasswordAuthentication) - if err := utils.UnmarshalJSON(data, &passwordAuthentication, "", true, true); err == nil { - u.PasswordAuthentication = passwordAuthentication - u.Type = SourceSftpUpdateAuthenticationWildcardTypePasswordAuthentication + sourceSftpUpdatePasswordAuthentication := new(SourceSftpUpdatePasswordAuthentication) + if err := utils.UnmarshalJSON(data, &sourceSftpUpdatePasswordAuthentication, "", true, true); err == nil { + u.SourceSftpUpdatePasswordAuthentication = sourceSftpUpdatePasswordAuthentication + u.Type = SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdatePasswordAuthentication return nil } - sshKeyAuthentication := new(SourceSftpUpdateSSHKeyAuthentication) - if err := utils.UnmarshalJSON(data, &sshKeyAuthentication, "", true, true); err == nil { - u.SSHKeyAuthentication = sshKeyAuthentication - u.Type = SourceSftpUpdateAuthenticationWildcardTypeSSHKeyAuthentication + sourceSftpUpdateSSHKeyAuthentication := new(SourceSftpUpdateSSHKeyAuthentication) + if err := utils.UnmarshalJSON(data, &sourceSftpUpdateSSHKeyAuthentication, "", true, true); err == nil { + u.SourceSftpUpdateSSHKeyAuthentication = sourceSftpUpdateSSHKeyAuthentication + u.Type = SourceSftpUpdateAuthenticationWildcardTypeSourceSftpUpdateSSHKeyAuthentication return nil } @@ -171,12 +171,12 @@ func (u *SourceSftpUpdateAuthenticationWildcard) UnmarshalJSON(data []byte) erro } func (u SourceSftpUpdateAuthenticationWildcard) MarshalJSON() ([]byte, error) { - if u.PasswordAuthentication != nil { - return utils.MarshalJSON(u.PasswordAuthentication, "", true) + if u.SourceSftpUpdatePasswordAuthentication != nil { + return utils.MarshalJSON(u.SourceSftpUpdatePasswordAuthentication, "", true) } - if u.SSHKeyAuthentication != nil { - return utils.MarshalJSON(u.SSHKeyAuthentication, "", true) + if u.SourceSftpUpdateSSHKeyAuthentication != nil { + return utils.MarshalJSON(u.SourceSftpUpdateSSHKeyAuthentication, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceshopify.go b/internal/sdk/pkg/models/shared/sourceshopify.go index b930ccc12..d39fc83a6 100644 --- a/internal/sdk/pkg/models/shared/sourceshopify.go +++ b/internal/sdk/pkg/models/shared/sourceshopify.go @@ -137,48 +137,48 @@ func (o *SourceShopifyOAuth20) GetClientSecret() *string { type SourceShopifyShopifyAuthorizationMethodType string const ( - SourceShopifyShopifyAuthorizationMethodTypeOAuth20 SourceShopifyShopifyAuthorizationMethodType = "OAuth20" - SourceShopifyShopifyAuthorizationMethodTypeAPIPassword SourceShopifyShopifyAuthorizationMethodType = "APIPassword" + SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyOAuth20 SourceShopifyShopifyAuthorizationMethodType = "source-shopify_OAuth2.0" + SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyAPIPassword SourceShopifyShopifyAuthorizationMethodType = "source-shopify_API Password" ) type SourceShopifyShopifyAuthorizationMethod struct { - OAuth20 *SourceShopifyOAuth20 - APIPassword *SourceShopifyAPIPassword + SourceShopifyOAuth20 *SourceShopifyOAuth20 + SourceShopifyAPIPassword *SourceShopifyAPIPassword Type SourceShopifyShopifyAuthorizationMethodType } -func CreateSourceShopifyShopifyAuthorizationMethodOAuth20(oAuth20 SourceShopifyOAuth20) SourceShopifyShopifyAuthorizationMethod { - typ := SourceShopifyShopifyAuthorizationMethodTypeOAuth20 +func CreateSourceShopifyShopifyAuthorizationMethodSourceShopifyOAuth20(sourceShopifyOAuth20 SourceShopifyOAuth20) SourceShopifyShopifyAuthorizationMethod { + typ := SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyOAuth20 return SourceShopifyShopifyAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceShopifyOAuth20: &sourceShopifyOAuth20, + Type: typ, } } -func CreateSourceShopifyShopifyAuthorizationMethodAPIPassword(apiPassword SourceShopifyAPIPassword) SourceShopifyShopifyAuthorizationMethod { - typ := SourceShopifyShopifyAuthorizationMethodTypeAPIPassword +func CreateSourceShopifyShopifyAuthorizationMethodSourceShopifyAPIPassword(sourceShopifyAPIPassword SourceShopifyAPIPassword) SourceShopifyShopifyAuthorizationMethod { + typ := SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyAPIPassword return SourceShopifyShopifyAuthorizationMethod{ - APIPassword: &apiPassword, - Type: typ, + SourceShopifyAPIPassword: &sourceShopifyAPIPassword, + Type: typ, } } func (u *SourceShopifyShopifyAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiPassword := new(SourceShopifyAPIPassword) - if err := utils.UnmarshalJSON(data, &apiPassword, "", true, true); err == nil { - u.APIPassword = apiPassword - u.Type = SourceShopifyShopifyAuthorizationMethodTypeAPIPassword + sourceShopifyAPIPassword := new(SourceShopifyAPIPassword) + if err := utils.UnmarshalJSON(data, &sourceShopifyAPIPassword, "", true, true); err == nil { + u.SourceShopifyAPIPassword = sourceShopifyAPIPassword + u.Type = SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyAPIPassword return nil } - oAuth20 := new(SourceShopifyOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceShopifyShopifyAuthorizationMethodTypeOAuth20 + sourceShopifyOAuth20 := new(SourceShopifyOAuth20) + if err := utils.UnmarshalJSON(data, &sourceShopifyOAuth20, "", true, true); err == nil { + u.SourceShopifyOAuth20 = sourceShopifyOAuth20 + u.Type = SourceShopifyShopifyAuthorizationMethodTypeSourceShopifyOAuth20 return nil } @@ -186,12 +186,12 @@ func (u *SourceShopifyShopifyAuthorizationMethod) UnmarshalJSON(data []byte) err } func (u SourceShopifyShopifyAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceShopifyOAuth20 != nil { + return utils.MarshalJSON(u.SourceShopifyOAuth20, "", true) } - if u.APIPassword != nil { - return utils.MarshalJSON(u.APIPassword, "", true) + if u.SourceShopifyAPIPassword != nil { + return utils.MarshalJSON(u.SourceShopifyAPIPassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceshopifyupdate.go b/internal/sdk/pkg/models/shared/sourceshopifyupdate.go index 6264f1442..95573daf9 100644 --- a/internal/sdk/pkg/models/shared/sourceshopifyupdate.go +++ b/internal/sdk/pkg/models/shared/sourceshopifyupdate.go @@ -137,23 +137,23 @@ func (o *SourceShopifyUpdateOAuth20) GetClientSecret() *string { type ShopifyAuthorizationMethodType string const ( - ShopifyAuthorizationMethodTypeOAuth20 ShopifyAuthorizationMethodType = "OAuth20" - ShopifyAuthorizationMethodTypeAPIPassword ShopifyAuthorizationMethodType = "APIPassword" + ShopifyAuthorizationMethodTypeSourceShopifyUpdateOAuth20 ShopifyAuthorizationMethodType = "source-shopify-update_OAuth2.0" + ShopifyAuthorizationMethodTypeAPIPassword ShopifyAuthorizationMethodType = "API Password" ) type ShopifyAuthorizationMethod struct { - OAuth20 *SourceShopifyUpdateOAuth20 - APIPassword *APIPassword + SourceShopifyUpdateOAuth20 *SourceShopifyUpdateOAuth20 + APIPassword *APIPassword Type ShopifyAuthorizationMethodType } -func CreateShopifyAuthorizationMethodOAuth20(oAuth20 SourceShopifyUpdateOAuth20) ShopifyAuthorizationMethod { - typ := ShopifyAuthorizationMethodTypeOAuth20 +func CreateShopifyAuthorizationMethodSourceShopifyUpdateOAuth20(sourceShopifyUpdateOAuth20 SourceShopifyUpdateOAuth20) ShopifyAuthorizationMethod { + typ := ShopifyAuthorizationMethodTypeSourceShopifyUpdateOAuth20 return ShopifyAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceShopifyUpdateOAuth20: &sourceShopifyUpdateOAuth20, + Type: typ, } } @@ -175,10 +175,10 @@ func (u *ShopifyAuthorizationMethod) UnmarshalJSON(data []byte) error { return nil } - oAuth20 := new(SourceShopifyUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = ShopifyAuthorizationMethodTypeOAuth20 + sourceShopifyUpdateOAuth20 := new(SourceShopifyUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceShopifyUpdateOAuth20, "", true, true); err == nil { + u.SourceShopifyUpdateOAuth20 = sourceShopifyUpdateOAuth20 + u.Type = ShopifyAuthorizationMethodTypeSourceShopifyUpdateOAuth20 return nil } @@ -186,8 +186,8 @@ func (u *ShopifyAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u ShopifyAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceShopifyUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceShopifyUpdateOAuth20, "", true) } if u.APIPassword != nil { diff --git a/internal/sdk/pkg/models/shared/sourceslack.go b/internal/sdk/pkg/models/shared/sourceslack.go index 197cde01d..e4965caee 100644 --- a/internal/sdk/pkg/models/shared/sourceslack.go +++ b/internal/sdk/pkg/models/shared/sourceslack.go @@ -137,48 +137,48 @@ func (o *SourceSlackSignInViaSlackOAuth) GetOptionTitle() SourceSlackOptionTitle type SourceSlackAuthenticationMechanismType string const ( - SourceSlackAuthenticationMechanismTypeSignInViaSlackOAuth SourceSlackAuthenticationMechanismType = "SignInViaSlackOAuth" - SourceSlackAuthenticationMechanismTypeAPIToken SourceSlackAuthenticationMechanismType = "APIToken" + SourceSlackAuthenticationMechanismTypeSourceSlackSignInViaSlackOAuth SourceSlackAuthenticationMechanismType = "source-slack_Sign in via Slack (OAuth)" + SourceSlackAuthenticationMechanismTypeSourceSlackAPIToken SourceSlackAuthenticationMechanismType = "source-slack_API Token" ) type SourceSlackAuthenticationMechanism struct { - SignInViaSlackOAuth *SourceSlackSignInViaSlackOAuth - APIToken *SourceSlackAPIToken + SourceSlackSignInViaSlackOAuth *SourceSlackSignInViaSlackOAuth + SourceSlackAPIToken *SourceSlackAPIToken Type SourceSlackAuthenticationMechanismType } -func CreateSourceSlackAuthenticationMechanismSignInViaSlackOAuth(signInViaSlackOAuth SourceSlackSignInViaSlackOAuth) SourceSlackAuthenticationMechanism { - typ := SourceSlackAuthenticationMechanismTypeSignInViaSlackOAuth +func CreateSourceSlackAuthenticationMechanismSourceSlackSignInViaSlackOAuth(sourceSlackSignInViaSlackOAuth SourceSlackSignInViaSlackOAuth) SourceSlackAuthenticationMechanism { + typ := SourceSlackAuthenticationMechanismTypeSourceSlackSignInViaSlackOAuth return SourceSlackAuthenticationMechanism{ - SignInViaSlackOAuth: &signInViaSlackOAuth, - Type: typ, + SourceSlackSignInViaSlackOAuth: &sourceSlackSignInViaSlackOAuth, + Type: typ, } } -func CreateSourceSlackAuthenticationMechanismAPIToken(apiToken SourceSlackAPIToken) SourceSlackAuthenticationMechanism { - typ := SourceSlackAuthenticationMechanismTypeAPIToken +func CreateSourceSlackAuthenticationMechanismSourceSlackAPIToken(sourceSlackAPIToken SourceSlackAPIToken) SourceSlackAuthenticationMechanism { + typ := SourceSlackAuthenticationMechanismTypeSourceSlackAPIToken return SourceSlackAuthenticationMechanism{ - APIToken: &apiToken, - Type: typ, + SourceSlackAPIToken: &sourceSlackAPIToken, + Type: typ, } } func (u *SourceSlackAuthenticationMechanism) UnmarshalJSON(data []byte) error { - apiToken := new(SourceSlackAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceSlackAuthenticationMechanismTypeAPIToken + sourceSlackAPIToken := new(SourceSlackAPIToken) + if err := utils.UnmarshalJSON(data, &sourceSlackAPIToken, "", true, true); err == nil { + u.SourceSlackAPIToken = sourceSlackAPIToken + u.Type = SourceSlackAuthenticationMechanismTypeSourceSlackAPIToken return nil } - signInViaSlackOAuth := new(SourceSlackSignInViaSlackOAuth) - if err := utils.UnmarshalJSON(data, &signInViaSlackOAuth, "", true, true); err == nil { - u.SignInViaSlackOAuth = signInViaSlackOAuth - u.Type = SourceSlackAuthenticationMechanismTypeSignInViaSlackOAuth + sourceSlackSignInViaSlackOAuth := new(SourceSlackSignInViaSlackOAuth) + if err := utils.UnmarshalJSON(data, &sourceSlackSignInViaSlackOAuth, "", true, true); err == nil { + u.SourceSlackSignInViaSlackOAuth = sourceSlackSignInViaSlackOAuth + u.Type = SourceSlackAuthenticationMechanismTypeSourceSlackSignInViaSlackOAuth return nil } @@ -186,12 +186,12 @@ func (u *SourceSlackAuthenticationMechanism) UnmarshalJSON(data []byte) error { } func (u SourceSlackAuthenticationMechanism) MarshalJSON() ([]byte, error) { - if u.SignInViaSlackOAuth != nil { - return utils.MarshalJSON(u.SignInViaSlackOAuth, "", true) + if u.SourceSlackSignInViaSlackOAuth != nil { + return utils.MarshalJSON(u.SourceSlackSignInViaSlackOAuth, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceSlackAPIToken != nil { + return utils.MarshalJSON(u.SourceSlackAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourceslackupdate.go b/internal/sdk/pkg/models/shared/sourceslackupdate.go index b039fe70d..2c56b4953 100644 --- a/internal/sdk/pkg/models/shared/sourceslackupdate.go +++ b/internal/sdk/pkg/models/shared/sourceslackupdate.go @@ -137,13 +137,13 @@ func (o *SignInViaSlackOAuth) GetOptionTitle() SourceSlackUpdateOptionTitle { type SourceSlackUpdateAuthenticationMechanismType string const ( - SourceSlackUpdateAuthenticationMechanismTypeSignInViaSlackOAuth SourceSlackUpdateAuthenticationMechanismType = "SignInViaSlackOAuth" - SourceSlackUpdateAuthenticationMechanismTypeAPIToken SourceSlackUpdateAuthenticationMechanismType = "APIToken" + SourceSlackUpdateAuthenticationMechanismTypeSignInViaSlackOAuth SourceSlackUpdateAuthenticationMechanismType = "Sign in via Slack (OAuth)" + SourceSlackUpdateAuthenticationMechanismTypeSourceSlackUpdateAPIToken SourceSlackUpdateAuthenticationMechanismType = "source-slack-update_API Token" ) type SourceSlackUpdateAuthenticationMechanism struct { - SignInViaSlackOAuth *SignInViaSlackOAuth - APIToken *SourceSlackUpdateAPIToken + SignInViaSlackOAuth *SignInViaSlackOAuth + SourceSlackUpdateAPIToken *SourceSlackUpdateAPIToken Type SourceSlackUpdateAuthenticationMechanismType } @@ -157,21 +157,21 @@ func CreateSourceSlackUpdateAuthenticationMechanismSignInViaSlackOAuth(signInVia } } -func CreateSourceSlackUpdateAuthenticationMechanismAPIToken(apiToken SourceSlackUpdateAPIToken) SourceSlackUpdateAuthenticationMechanism { - typ := SourceSlackUpdateAuthenticationMechanismTypeAPIToken +func CreateSourceSlackUpdateAuthenticationMechanismSourceSlackUpdateAPIToken(sourceSlackUpdateAPIToken SourceSlackUpdateAPIToken) SourceSlackUpdateAuthenticationMechanism { + typ := SourceSlackUpdateAuthenticationMechanismTypeSourceSlackUpdateAPIToken return SourceSlackUpdateAuthenticationMechanism{ - APIToken: &apiToken, - Type: typ, + SourceSlackUpdateAPIToken: &sourceSlackUpdateAPIToken, + Type: typ, } } func (u *SourceSlackUpdateAuthenticationMechanism) UnmarshalJSON(data []byte) error { - apiToken := new(SourceSlackUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceSlackUpdateAuthenticationMechanismTypeAPIToken + sourceSlackUpdateAPIToken := new(SourceSlackUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &sourceSlackUpdateAPIToken, "", true, true); err == nil { + u.SourceSlackUpdateAPIToken = sourceSlackUpdateAPIToken + u.Type = SourceSlackUpdateAuthenticationMechanismTypeSourceSlackUpdateAPIToken return nil } @@ -190,8 +190,8 @@ func (u SourceSlackUpdateAuthenticationMechanism) MarshalJSON() ([]byte, error) return utils.MarshalJSON(u.SignInViaSlackOAuth, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceSlackUpdateAPIToken != nil { + return utils.MarshalJSON(u.SourceSlackUpdateAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheets.go b/internal/sdk/pkg/models/shared/sourcesmartsheets.go index 5da1fedd0..6cc63482a 100644 --- a/internal/sdk/pkg/models/shared/sourcesmartsheets.go +++ b/internal/sdk/pkg/models/shared/sourcesmartsheets.go @@ -153,48 +153,48 @@ func (o *SourceSmartsheetsOAuth20) GetTokenExpiryDate() time.Time { type SourceSmartsheetsAuthorizationMethodType string const ( - SourceSmartsheetsAuthorizationMethodTypeOAuth20 SourceSmartsheetsAuthorizationMethodType = "OAuth20" - SourceSmartsheetsAuthorizationMethodTypeAPIAccessToken SourceSmartsheetsAuthorizationMethodType = "APIAccessToken" + SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsOAuth20 SourceSmartsheetsAuthorizationMethodType = "source-smartsheets_OAuth2.0" + SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsAPIAccessToken SourceSmartsheetsAuthorizationMethodType = "source-smartsheets_API Access Token" ) type SourceSmartsheetsAuthorizationMethod struct { - OAuth20 *SourceSmartsheetsOAuth20 - APIAccessToken *SourceSmartsheetsAPIAccessToken + SourceSmartsheetsOAuth20 *SourceSmartsheetsOAuth20 + SourceSmartsheetsAPIAccessToken *SourceSmartsheetsAPIAccessToken Type SourceSmartsheetsAuthorizationMethodType } -func CreateSourceSmartsheetsAuthorizationMethodOAuth20(oAuth20 SourceSmartsheetsOAuth20) SourceSmartsheetsAuthorizationMethod { - typ := SourceSmartsheetsAuthorizationMethodTypeOAuth20 +func CreateSourceSmartsheetsAuthorizationMethodSourceSmartsheetsOAuth20(sourceSmartsheetsOAuth20 SourceSmartsheetsOAuth20) SourceSmartsheetsAuthorizationMethod { + typ := SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsOAuth20 return SourceSmartsheetsAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceSmartsheetsOAuth20: &sourceSmartsheetsOAuth20, + Type: typ, } } -func CreateSourceSmartsheetsAuthorizationMethodAPIAccessToken(apiAccessToken SourceSmartsheetsAPIAccessToken) SourceSmartsheetsAuthorizationMethod { - typ := SourceSmartsheetsAuthorizationMethodTypeAPIAccessToken +func CreateSourceSmartsheetsAuthorizationMethodSourceSmartsheetsAPIAccessToken(sourceSmartsheetsAPIAccessToken SourceSmartsheetsAPIAccessToken) SourceSmartsheetsAuthorizationMethod { + typ := SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsAPIAccessToken return SourceSmartsheetsAuthorizationMethod{ - APIAccessToken: &apiAccessToken, - Type: typ, + SourceSmartsheetsAPIAccessToken: &sourceSmartsheetsAPIAccessToken, + Type: typ, } } func (u *SourceSmartsheetsAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiAccessToken := new(SourceSmartsheetsAPIAccessToken) - if err := utils.UnmarshalJSON(data, &apiAccessToken, "", true, true); err == nil { - u.APIAccessToken = apiAccessToken - u.Type = SourceSmartsheetsAuthorizationMethodTypeAPIAccessToken + sourceSmartsheetsAPIAccessToken := new(SourceSmartsheetsAPIAccessToken) + if err := utils.UnmarshalJSON(data, &sourceSmartsheetsAPIAccessToken, "", true, true); err == nil { + u.SourceSmartsheetsAPIAccessToken = sourceSmartsheetsAPIAccessToken + u.Type = SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsAPIAccessToken return nil } - oAuth20 := new(SourceSmartsheetsOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceSmartsheetsAuthorizationMethodTypeOAuth20 + sourceSmartsheetsOAuth20 := new(SourceSmartsheetsOAuth20) + if err := utils.UnmarshalJSON(data, &sourceSmartsheetsOAuth20, "", true, true); err == nil { + u.SourceSmartsheetsOAuth20 = sourceSmartsheetsOAuth20 + u.Type = SourceSmartsheetsAuthorizationMethodTypeSourceSmartsheetsOAuth20 return nil } @@ -202,12 +202,12 @@ func (u *SourceSmartsheetsAuthorizationMethod) UnmarshalJSON(data []byte) error } func (u SourceSmartsheetsAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceSmartsheetsOAuth20 != nil { + return utils.MarshalJSON(u.SourceSmartsheetsOAuth20, "", true) } - if u.APIAccessToken != nil { - return utils.MarshalJSON(u.APIAccessToken, "", true) + if u.SourceSmartsheetsAPIAccessToken != nil { + return utils.MarshalJSON(u.SourceSmartsheetsAPIAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go b/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go index 8fcf0a1bc..534497d7e 100644 --- a/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesmartsheetsupdate.go @@ -153,23 +153,23 @@ func (o *SourceSmartsheetsUpdateOAuth20) GetTokenExpiryDate() time.Time { type SourceSmartsheetsUpdateAuthorizationMethodType string const ( - SourceSmartsheetsUpdateAuthorizationMethodTypeOAuth20 SourceSmartsheetsUpdateAuthorizationMethodType = "OAuth20" - SourceSmartsheetsUpdateAuthorizationMethodTypeAPIAccessToken SourceSmartsheetsUpdateAuthorizationMethodType = "APIAccessToken" + SourceSmartsheetsUpdateAuthorizationMethodTypeSourceSmartsheetsUpdateOAuth20 SourceSmartsheetsUpdateAuthorizationMethodType = "source-smartsheets-update_OAuth2.0" + SourceSmartsheetsUpdateAuthorizationMethodTypeAPIAccessToken SourceSmartsheetsUpdateAuthorizationMethodType = "API Access Token" ) type SourceSmartsheetsUpdateAuthorizationMethod struct { - OAuth20 *SourceSmartsheetsUpdateOAuth20 - APIAccessToken *APIAccessToken + SourceSmartsheetsUpdateOAuth20 *SourceSmartsheetsUpdateOAuth20 + APIAccessToken *APIAccessToken Type SourceSmartsheetsUpdateAuthorizationMethodType } -func CreateSourceSmartsheetsUpdateAuthorizationMethodOAuth20(oAuth20 SourceSmartsheetsUpdateOAuth20) SourceSmartsheetsUpdateAuthorizationMethod { - typ := SourceSmartsheetsUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceSmartsheetsUpdateAuthorizationMethodSourceSmartsheetsUpdateOAuth20(sourceSmartsheetsUpdateOAuth20 SourceSmartsheetsUpdateOAuth20) SourceSmartsheetsUpdateAuthorizationMethod { + typ := SourceSmartsheetsUpdateAuthorizationMethodTypeSourceSmartsheetsUpdateOAuth20 return SourceSmartsheetsUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceSmartsheetsUpdateOAuth20: &sourceSmartsheetsUpdateOAuth20, + Type: typ, } } @@ -191,10 +191,10 @@ func (u *SourceSmartsheetsUpdateAuthorizationMethod) UnmarshalJSON(data []byte) return nil } - oAuth20 := new(SourceSmartsheetsUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceSmartsheetsUpdateAuthorizationMethodTypeOAuth20 + sourceSmartsheetsUpdateOAuth20 := new(SourceSmartsheetsUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceSmartsheetsUpdateOAuth20, "", true, true); err == nil { + u.SourceSmartsheetsUpdateOAuth20 = sourceSmartsheetsUpdateOAuth20 + u.Type = SourceSmartsheetsUpdateAuthorizationMethodTypeSourceSmartsheetsUpdateOAuth20 return nil } @@ -202,8 +202,8 @@ func (u *SourceSmartsheetsUpdateAuthorizationMethod) UnmarshalJSON(data []byte) } func (u SourceSmartsheetsUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceSmartsheetsUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceSmartsheetsUpdateOAuth20, "", true) } if u.APIAccessToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcesnowflake.go b/internal/sdk/pkg/models/shared/sourcesnowflake.go index 97a4fb40f..7501f6922 100644 --- a/internal/sdk/pkg/models/shared/sourcesnowflake.go +++ b/internal/sdk/pkg/models/shared/sourcesnowflake.go @@ -152,48 +152,48 @@ func (o *SourceSnowflakeOAuth20) GetRefreshToken() *string { type SourceSnowflakeAuthorizationMethodType string const ( - SourceSnowflakeAuthorizationMethodTypeOAuth20 SourceSnowflakeAuthorizationMethodType = "OAuth20" - SourceSnowflakeAuthorizationMethodTypeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "UsernameAndPassword" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 SourceSnowflakeAuthorizationMethodType = "source-snowflake_OAuth2.0" + SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword SourceSnowflakeAuthorizationMethodType = "source-snowflake_Username and Password" ) type SourceSnowflakeAuthorizationMethod struct { - OAuth20 *SourceSnowflakeOAuth20 - UsernameAndPassword *SourceSnowflakeUsernameAndPassword + SourceSnowflakeOAuth20 *SourceSnowflakeOAuth20 + SourceSnowflakeUsernameAndPassword *SourceSnowflakeUsernameAndPassword Type SourceSnowflakeAuthorizationMethodType } -func CreateSourceSnowflakeAuthorizationMethodOAuth20(oAuth20 SourceSnowflakeOAuth20) SourceSnowflakeAuthorizationMethod { - typ := SourceSnowflakeAuthorizationMethodTypeOAuth20 +func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeOAuth20(sourceSnowflakeOAuth20 SourceSnowflakeOAuth20) SourceSnowflakeAuthorizationMethod { + typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 return SourceSnowflakeAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceSnowflakeOAuth20: &sourceSnowflakeOAuth20, + Type: typ, } } -func CreateSourceSnowflakeAuthorizationMethodUsernameAndPassword(usernameAndPassword SourceSnowflakeUsernameAndPassword) SourceSnowflakeAuthorizationMethod { - typ := SourceSnowflakeAuthorizationMethodTypeUsernameAndPassword +func CreateSourceSnowflakeAuthorizationMethodSourceSnowflakeUsernameAndPassword(sourceSnowflakeUsernameAndPassword SourceSnowflakeUsernameAndPassword) SourceSnowflakeAuthorizationMethod { + typ := SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword return SourceSnowflakeAuthorizationMethod{ - UsernameAndPassword: &usernameAndPassword, - Type: typ, + SourceSnowflakeUsernameAndPassword: &sourceSnowflakeUsernameAndPassword, + Type: typ, } } func (u *SourceSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error { - usernameAndPassword := new(SourceSnowflakeUsernameAndPassword) - if err := utils.UnmarshalJSON(data, &usernameAndPassword, "", true, true); err == nil { - u.UsernameAndPassword = usernameAndPassword - u.Type = SourceSnowflakeAuthorizationMethodTypeUsernameAndPassword + sourceSnowflakeUsernameAndPassword := new(SourceSnowflakeUsernameAndPassword) + if err := utils.UnmarshalJSON(data, &sourceSnowflakeUsernameAndPassword, "", true, true); err == nil { + u.SourceSnowflakeUsernameAndPassword = sourceSnowflakeUsernameAndPassword + u.Type = SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeUsernameAndPassword return nil } - oAuth20 := new(SourceSnowflakeOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceSnowflakeAuthorizationMethodTypeOAuth20 + sourceSnowflakeOAuth20 := new(SourceSnowflakeOAuth20) + if err := utils.UnmarshalJSON(data, &sourceSnowflakeOAuth20, "", true, true); err == nil { + u.SourceSnowflakeOAuth20 = sourceSnowflakeOAuth20 + u.Type = SourceSnowflakeAuthorizationMethodTypeSourceSnowflakeOAuth20 return nil } @@ -201,12 +201,12 @@ func (u *SourceSnowflakeAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceSnowflakeAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceSnowflakeOAuth20 != nil { + return utils.MarshalJSON(u.SourceSnowflakeOAuth20, "", true) } - if u.UsernameAndPassword != nil { - return utils.MarshalJSON(u.UsernameAndPassword, "", true) + if u.SourceSnowflakeUsernameAndPassword != nil { + return utils.MarshalJSON(u.SourceSnowflakeUsernameAndPassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go b/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go index ddc4df5a7..064b3f1f6 100644 --- a/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesnowflakeupdate.go @@ -152,48 +152,48 @@ func (o *SourceSnowflakeUpdateOAuth20) GetRefreshToken() *string { type SourceSnowflakeUpdateAuthorizationMethodType string const ( - SourceSnowflakeUpdateAuthorizationMethodTypeOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "OAuth20" - SourceSnowflakeUpdateAuthorizationMethodTypeUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "UsernameAndPassword" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_OAuth2.0" + SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateAuthorizationMethodType = "source-snowflake-update_Username and Password" ) type SourceSnowflakeUpdateAuthorizationMethod struct { - OAuth20 *SourceSnowflakeUpdateOAuth20 - UsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword + SourceSnowflakeUpdateOAuth20 *SourceSnowflakeUpdateOAuth20 + SourceSnowflakeUpdateUsernameAndPassword *SourceSnowflakeUpdateUsernameAndPassword Type SourceSnowflakeUpdateAuthorizationMethodType } -func CreateSourceSnowflakeUpdateAuthorizationMethodOAuth20(oAuth20 SourceSnowflakeUpdateOAuth20) SourceSnowflakeUpdateAuthorizationMethod { - typ := SourceSnowflakeUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateOAuth20(sourceSnowflakeUpdateOAuth20 SourceSnowflakeUpdateOAuth20) SourceSnowflakeUpdateAuthorizationMethod { + typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 return SourceSnowflakeUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceSnowflakeUpdateOAuth20: &sourceSnowflakeUpdateOAuth20, + Type: typ, } } -func CreateSourceSnowflakeUpdateAuthorizationMethodUsernameAndPassword(usernameAndPassword SourceSnowflakeUpdateUsernameAndPassword) SourceSnowflakeUpdateAuthorizationMethod { - typ := SourceSnowflakeUpdateAuthorizationMethodTypeUsernameAndPassword +func CreateSourceSnowflakeUpdateAuthorizationMethodSourceSnowflakeUpdateUsernameAndPassword(sourceSnowflakeUpdateUsernameAndPassword SourceSnowflakeUpdateUsernameAndPassword) SourceSnowflakeUpdateAuthorizationMethod { + typ := SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword return SourceSnowflakeUpdateAuthorizationMethod{ - UsernameAndPassword: &usernameAndPassword, - Type: typ, + SourceSnowflakeUpdateUsernameAndPassword: &sourceSnowflakeUpdateUsernameAndPassword, + Type: typ, } } func (u *SourceSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - usernameAndPassword := new(SourceSnowflakeUpdateUsernameAndPassword) - if err := utils.UnmarshalJSON(data, &usernameAndPassword, "", true, true); err == nil { - u.UsernameAndPassword = usernameAndPassword - u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeUsernameAndPassword + sourceSnowflakeUpdateUsernameAndPassword := new(SourceSnowflakeUpdateUsernameAndPassword) + if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateUsernameAndPassword, "", true, true); err == nil { + u.SourceSnowflakeUpdateUsernameAndPassword = sourceSnowflakeUpdateUsernameAndPassword + u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateUsernameAndPassword return nil } - oAuth20 := new(SourceSnowflakeUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeOAuth20 + sourceSnowflakeUpdateOAuth20 := new(SourceSnowflakeUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceSnowflakeUpdateOAuth20, "", true, true); err == nil { + u.SourceSnowflakeUpdateOAuth20 = sourceSnowflakeUpdateOAuth20 + u.Type = SourceSnowflakeUpdateAuthorizationMethodTypeSourceSnowflakeUpdateOAuth20 return nil } @@ -201,12 +201,12 @@ func (u *SourceSnowflakeUpdateAuthorizationMethod) UnmarshalJSON(data []byte) er } func (u SourceSnowflakeUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceSnowflakeUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceSnowflakeUpdateOAuth20, "", true) } - if u.UsernameAndPassword != nil { - return utils.MarshalJSON(u.UsernameAndPassword, "", true) + if u.SourceSnowflakeUpdateUsernameAndPassword != nil { + return utils.MarshalJSON(u.SourceSnowflakeUpdateUsernameAndPassword, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesquare.go b/internal/sdk/pkg/models/shared/sourcesquare.go index c96b4f1e6..b988b6cd7 100644 --- a/internal/sdk/pkg/models/shared/sourcesquare.go +++ b/internal/sdk/pkg/models/shared/sourcesquare.go @@ -137,48 +137,48 @@ func (o *SourceSquareOauthAuthentication) GetRefreshToken() string { type SourceSquareAuthenticationType string const ( - SourceSquareAuthenticationTypeOauthAuthentication SourceSquareAuthenticationType = "OauthAuthentication" - SourceSquareAuthenticationTypeAPIKey SourceSquareAuthenticationType = "APIKey" + SourceSquareAuthenticationTypeSourceSquareOauthAuthentication SourceSquareAuthenticationType = "source-square_Oauth authentication" + SourceSquareAuthenticationTypeSourceSquareAPIKey SourceSquareAuthenticationType = "source-square_API key" ) type SourceSquareAuthentication struct { - OauthAuthentication *SourceSquareOauthAuthentication - APIKey *SourceSquareAPIKey + SourceSquareOauthAuthentication *SourceSquareOauthAuthentication + SourceSquareAPIKey *SourceSquareAPIKey Type SourceSquareAuthenticationType } -func CreateSourceSquareAuthenticationOauthAuthentication(oauthAuthentication SourceSquareOauthAuthentication) SourceSquareAuthentication { - typ := SourceSquareAuthenticationTypeOauthAuthentication +func CreateSourceSquareAuthenticationSourceSquareOauthAuthentication(sourceSquareOauthAuthentication SourceSquareOauthAuthentication) SourceSquareAuthentication { + typ := SourceSquareAuthenticationTypeSourceSquareOauthAuthentication return SourceSquareAuthentication{ - OauthAuthentication: &oauthAuthentication, - Type: typ, + SourceSquareOauthAuthentication: &sourceSquareOauthAuthentication, + Type: typ, } } -func CreateSourceSquareAuthenticationAPIKey(apiKey SourceSquareAPIKey) SourceSquareAuthentication { - typ := SourceSquareAuthenticationTypeAPIKey +func CreateSourceSquareAuthenticationSourceSquareAPIKey(sourceSquareAPIKey SourceSquareAPIKey) SourceSquareAuthentication { + typ := SourceSquareAuthenticationTypeSourceSquareAPIKey return SourceSquareAuthentication{ - APIKey: &apiKey, - Type: typ, + SourceSquareAPIKey: &sourceSquareAPIKey, + Type: typ, } } func (u *SourceSquareAuthentication) UnmarshalJSON(data []byte) error { - apiKey := new(SourceSquareAPIKey) - if err := utils.UnmarshalJSON(data, &apiKey, "", true, true); err == nil { - u.APIKey = apiKey - u.Type = SourceSquareAuthenticationTypeAPIKey + sourceSquareAPIKey := new(SourceSquareAPIKey) + if err := utils.UnmarshalJSON(data, &sourceSquareAPIKey, "", true, true); err == nil { + u.SourceSquareAPIKey = sourceSquareAPIKey + u.Type = SourceSquareAuthenticationTypeSourceSquareAPIKey return nil } - oauthAuthentication := new(SourceSquareOauthAuthentication) - if err := utils.UnmarshalJSON(data, &oauthAuthentication, "", true, true); err == nil { - u.OauthAuthentication = oauthAuthentication - u.Type = SourceSquareAuthenticationTypeOauthAuthentication + sourceSquareOauthAuthentication := new(SourceSquareOauthAuthentication) + if err := utils.UnmarshalJSON(data, &sourceSquareOauthAuthentication, "", true, true); err == nil { + u.SourceSquareOauthAuthentication = sourceSquareOauthAuthentication + u.Type = SourceSquareAuthenticationTypeSourceSquareOauthAuthentication return nil } @@ -186,12 +186,12 @@ func (u *SourceSquareAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceSquareAuthentication) MarshalJSON() ([]byte, error) { - if u.OauthAuthentication != nil { - return utils.MarshalJSON(u.OauthAuthentication, "", true) + if u.SourceSquareOauthAuthentication != nil { + return utils.MarshalJSON(u.SourceSquareOauthAuthentication, "", true) } - if u.APIKey != nil { - return utils.MarshalJSON(u.APIKey, "", true) + if u.SourceSquareAPIKey != nil { + return utils.MarshalJSON(u.SourceSquareAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesquareupdate.go b/internal/sdk/pkg/models/shared/sourcesquareupdate.go index e86754acd..a2af97059 100644 --- a/internal/sdk/pkg/models/shared/sourcesquareupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesquareupdate.go @@ -137,13 +137,13 @@ func (o *OauthAuthentication) GetRefreshToken() string { type SourceSquareUpdateAuthenticationType string const ( - SourceSquareUpdateAuthenticationTypeOauthAuthentication SourceSquareUpdateAuthenticationType = "OauthAuthentication" - SourceSquareUpdateAuthenticationTypeAPIKey SourceSquareUpdateAuthenticationType = "APIKey" + SourceSquareUpdateAuthenticationTypeOauthAuthentication SourceSquareUpdateAuthenticationType = "Oauth authentication" + SourceSquareUpdateAuthenticationTypeSourceSquareUpdateAPIKey SourceSquareUpdateAuthenticationType = "source-square-update_API key" ) type SourceSquareUpdateAuthentication struct { - OauthAuthentication *OauthAuthentication - APIKey *SourceSquareUpdateAPIKey + OauthAuthentication *OauthAuthentication + SourceSquareUpdateAPIKey *SourceSquareUpdateAPIKey Type SourceSquareUpdateAuthenticationType } @@ -157,21 +157,21 @@ func CreateSourceSquareUpdateAuthenticationOauthAuthentication(oauthAuthenticati } } -func CreateSourceSquareUpdateAuthenticationAPIKey(apiKey SourceSquareUpdateAPIKey) SourceSquareUpdateAuthentication { - typ := SourceSquareUpdateAuthenticationTypeAPIKey +func CreateSourceSquareUpdateAuthenticationSourceSquareUpdateAPIKey(sourceSquareUpdateAPIKey SourceSquareUpdateAPIKey) SourceSquareUpdateAuthentication { + typ := SourceSquareUpdateAuthenticationTypeSourceSquareUpdateAPIKey return SourceSquareUpdateAuthentication{ - APIKey: &apiKey, - Type: typ, + SourceSquareUpdateAPIKey: &sourceSquareUpdateAPIKey, + Type: typ, } } func (u *SourceSquareUpdateAuthentication) UnmarshalJSON(data []byte) error { - apiKey := new(SourceSquareUpdateAPIKey) - if err := utils.UnmarshalJSON(data, &apiKey, "", true, true); err == nil { - u.APIKey = apiKey - u.Type = SourceSquareUpdateAuthenticationTypeAPIKey + sourceSquareUpdateAPIKey := new(SourceSquareUpdateAPIKey) + if err := utils.UnmarshalJSON(data, &sourceSquareUpdateAPIKey, "", true, true); err == nil { + u.SourceSquareUpdateAPIKey = sourceSquareUpdateAPIKey + u.Type = SourceSquareUpdateAuthenticationTypeSourceSquareUpdateAPIKey return nil } @@ -190,8 +190,8 @@ func (u SourceSquareUpdateAuthentication) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.OauthAuthentication, "", true) } - if u.APIKey != nil { - return utils.MarshalJSON(u.APIKey, "", true) + if u.SourceSquareUpdateAPIKey != nil { + return utils.MarshalJSON(u.SourceSquareUpdateAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrow.go b/internal/sdk/pkg/models/shared/sourcesurveysparrow.go index d5717d7b2..018974790 100644 --- a/internal/sdk/pkg/models/shared/sourcesurveysparrow.go +++ b/internal/sdk/pkg/models/shared/sourcesurveysparrow.go @@ -100,48 +100,48 @@ func (o *SourceSurveySparrowEUBasedAccount) GetURLBase() *SourceSurveySparrowURL type SourceSurveySparrowBaseURLType string const ( - SourceSurveySparrowBaseURLTypeEUBasedAccount SourceSurveySparrowBaseURLType = "EUBasedAccount" - SourceSurveySparrowBaseURLTypeGlobalAccount SourceSurveySparrowBaseURLType = "GlobalAccount" + SourceSurveySparrowBaseURLTypeSourceSurveySparrowEUBasedAccount SourceSurveySparrowBaseURLType = "source-survey-sparrow_EU-based account" + SourceSurveySparrowBaseURLTypeSourceSurveySparrowGlobalAccount SourceSurveySparrowBaseURLType = "source-survey-sparrow_Global account" ) type SourceSurveySparrowBaseURL struct { - EUBasedAccount *SourceSurveySparrowEUBasedAccount - GlobalAccount *SourceSurveySparrowGlobalAccount + SourceSurveySparrowEUBasedAccount *SourceSurveySparrowEUBasedAccount + SourceSurveySparrowGlobalAccount *SourceSurveySparrowGlobalAccount Type SourceSurveySparrowBaseURLType } -func CreateSourceSurveySparrowBaseURLEUBasedAccount(euBasedAccount SourceSurveySparrowEUBasedAccount) SourceSurveySparrowBaseURL { - typ := SourceSurveySparrowBaseURLTypeEUBasedAccount +func CreateSourceSurveySparrowBaseURLSourceSurveySparrowEUBasedAccount(sourceSurveySparrowEUBasedAccount SourceSurveySparrowEUBasedAccount) SourceSurveySparrowBaseURL { + typ := SourceSurveySparrowBaseURLTypeSourceSurveySparrowEUBasedAccount return SourceSurveySparrowBaseURL{ - EUBasedAccount: &euBasedAccount, - Type: typ, + SourceSurveySparrowEUBasedAccount: &sourceSurveySparrowEUBasedAccount, + Type: typ, } } -func CreateSourceSurveySparrowBaseURLGlobalAccount(globalAccount SourceSurveySparrowGlobalAccount) SourceSurveySparrowBaseURL { - typ := SourceSurveySparrowBaseURLTypeGlobalAccount +func CreateSourceSurveySparrowBaseURLSourceSurveySparrowGlobalAccount(sourceSurveySparrowGlobalAccount SourceSurveySparrowGlobalAccount) SourceSurveySparrowBaseURL { + typ := SourceSurveySparrowBaseURLTypeSourceSurveySparrowGlobalAccount return SourceSurveySparrowBaseURL{ - GlobalAccount: &globalAccount, - Type: typ, + SourceSurveySparrowGlobalAccount: &sourceSurveySparrowGlobalAccount, + Type: typ, } } func (u *SourceSurveySparrowBaseURL) UnmarshalJSON(data []byte) error { - euBasedAccount := new(SourceSurveySparrowEUBasedAccount) - if err := utils.UnmarshalJSON(data, &euBasedAccount, "", true, true); err == nil { - u.EUBasedAccount = euBasedAccount - u.Type = SourceSurveySparrowBaseURLTypeEUBasedAccount + sourceSurveySparrowEUBasedAccount := new(SourceSurveySparrowEUBasedAccount) + if err := utils.UnmarshalJSON(data, &sourceSurveySparrowEUBasedAccount, "", true, true); err == nil { + u.SourceSurveySparrowEUBasedAccount = sourceSurveySparrowEUBasedAccount + u.Type = SourceSurveySparrowBaseURLTypeSourceSurveySparrowEUBasedAccount return nil } - globalAccount := new(SourceSurveySparrowGlobalAccount) - if err := utils.UnmarshalJSON(data, &globalAccount, "", true, true); err == nil { - u.GlobalAccount = globalAccount - u.Type = SourceSurveySparrowBaseURLTypeGlobalAccount + sourceSurveySparrowGlobalAccount := new(SourceSurveySparrowGlobalAccount) + if err := utils.UnmarshalJSON(data, &sourceSurveySparrowGlobalAccount, "", true, true); err == nil { + u.SourceSurveySparrowGlobalAccount = sourceSurveySparrowGlobalAccount + u.Type = SourceSurveySparrowBaseURLTypeSourceSurveySparrowGlobalAccount return nil } @@ -149,12 +149,12 @@ func (u *SourceSurveySparrowBaseURL) UnmarshalJSON(data []byte) error { } func (u SourceSurveySparrowBaseURL) MarshalJSON() ([]byte, error) { - if u.EUBasedAccount != nil { - return utils.MarshalJSON(u.EUBasedAccount, "", true) + if u.SourceSurveySparrowEUBasedAccount != nil { + return utils.MarshalJSON(u.SourceSurveySparrowEUBasedAccount, "", true) } - if u.GlobalAccount != nil { - return utils.MarshalJSON(u.GlobalAccount, "", true) + if u.SourceSurveySparrowGlobalAccount != nil { + return utils.MarshalJSON(u.SourceSurveySparrowGlobalAccount, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go b/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go index 182226a50..90feac8d7 100644 --- a/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go +++ b/internal/sdk/pkg/models/shared/sourcesurveysparrowupdate.go @@ -100,8 +100,8 @@ func (o *EUBasedAccount) GetURLBase() *URLBase { type BaseURLType string const ( - BaseURLTypeEUBasedAccount BaseURLType = "EUBasedAccount" - BaseURLTypeGlobalAccount BaseURLType = "GlobalAccount" + BaseURLTypeEUBasedAccount BaseURLType = "EU-based account" + BaseURLTypeGlobalAccount BaseURLType = "Global account" ) type BaseURL struct { diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go index 9f67f0402..96f6acb81 100644 --- a/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go +++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketing.go @@ -155,48 +155,48 @@ func (o *SourceTiktokMarketingOAuth20) GetSecret() string { type SourceTiktokMarketingAuthenticationMethodType string const ( - SourceTiktokMarketingAuthenticationMethodTypeOAuth20 SourceTiktokMarketingAuthenticationMethodType = "OAuth20" - SourceTiktokMarketingAuthenticationMethodTypeSandboxAccessToken SourceTiktokMarketingAuthenticationMethodType = "SandboxAccessToken" + SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingOAuth20 SourceTiktokMarketingAuthenticationMethodType = "source-tiktok-marketing_OAuth2.0" + SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingSandboxAccessToken SourceTiktokMarketingAuthenticationMethodType = "source-tiktok-marketing_Sandbox Access Token" ) type SourceTiktokMarketingAuthenticationMethod struct { - OAuth20 *SourceTiktokMarketingOAuth20 - SandboxAccessToken *SourceTiktokMarketingSandboxAccessToken + SourceTiktokMarketingOAuth20 *SourceTiktokMarketingOAuth20 + SourceTiktokMarketingSandboxAccessToken *SourceTiktokMarketingSandboxAccessToken Type SourceTiktokMarketingAuthenticationMethodType } -func CreateSourceTiktokMarketingAuthenticationMethodOAuth20(oAuth20 SourceTiktokMarketingOAuth20) SourceTiktokMarketingAuthenticationMethod { - typ := SourceTiktokMarketingAuthenticationMethodTypeOAuth20 +func CreateSourceTiktokMarketingAuthenticationMethodSourceTiktokMarketingOAuth20(sourceTiktokMarketingOAuth20 SourceTiktokMarketingOAuth20) SourceTiktokMarketingAuthenticationMethod { + typ := SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingOAuth20 return SourceTiktokMarketingAuthenticationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTiktokMarketingOAuth20: &sourceTiktokMarketingOAuth20, + Type: typ, } } -func CreateSourceTiktokMarketingAuthenticationMethodSandboxAccessToken(sandboxAccessToken SourceTiktokMarketingSandboxAccessToken) SourceTiktokMarketingAuthenticationMethod { - typ := SourceTiktokMarketingAuthenticationMethodTypeSandboxAccessToken +func CreateSourceTiktokMarketingAuthenticationMethodSourceTiktokMarketingSandboxAccessToken(sourceTiktokMarketingSandboxAccessToken SourceTiktokMarketingSandboxAccessToken) SourceTiktokMarketingAuthenticationMethod { + typ := SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingSandboxAccessToken return SourceTiktokMarketingAuthenticationMethod{ - SandboxAccessToken: &sandboxAccessToken, - Type: typ, + SourceTiktokMarketingSandboxAccessToken: &sourceTiktokMarketingSandboxAccessToken, + Type: typ, } } func (u *SourceTiktokMarketingAuthenticationMethod) UnmarshalJSON(data []byte) error { - sandboxAccessToken := new(SourceTiktokMarketingSandboxAccessToken) - if err := utils.UnmarshalJSON(data, &sandboxAccessToken, "", true, true); err == nil { - u.SandboxAccessToken = sandboxAccessToken - u.Type = SourceTiktokMarketingAuthenticationMethodTypeSandboxAccessToken + sourceTiktokMarketingSandboxAccessToken := new(SourceTiktokMarketingSandboxAccessToken) + if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingSandboxAccessToken, "", true, true); err == nil { + u.SourceTiktokMarketingSandboxAccessToken = sourceTiktokMarketingSandboxAccessToken + u.Type = SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingSandboxAccessToken return nil } - oAuth20 := new(SourceTiktokMarketingOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTiktokMarketingAuthenticationMethodTypeOAuth20 + sourceTiktokMarketingOAuth20 := new(SourceTiktokMarketingOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingOAuth20, "", true, true); err == nil { + u.SourceTiktokMarketingOAuth20 = sourceTiktokMarketingOAuth20 + u.Type = SourceTiktokMarketingAuthenticationMethodTypeSourceTiktokMarketingOAuth20 return nil } @@ -204,12 +204,12 @@ func (u *SourceTiktokMarketingAuthenticationMethod) UnmarshalJSON(data []byte) e } func (u SourceTiktokMarketingAuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTiktokMarketingOAuth20 != nil { + return utils.MarshalJSON(u.SourceTiktokMarketingOAuth20, "", true) } - if u.SandboxAccessToken != nil { - return utils.MarshalJSON(u.SandboxAccessToken, "", true) + if u.SourceTiktokMarketingSandboxAccessToken != nil { + return utils.MarshalJSON(u.SourceTiktokMarketingSandboxAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go b/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go index 29a49c4eb..62f711b44 100644 --- a/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go +++ b/internal/sdk/pkg/models/shared/sourcetiktokmarketingupdate.go @@ -155,23 +155,23 @@ func (o *SourceTiktokMarketingUpdateOAuth20) GetSecret() string { type SourceTiktokMarketingUpdateAuthenticationMethodType string const ( - SourceTiktokMarketingUpdateAuthenticationMethodTypeOAuth20 SourceTiktokMarketingUpdateAuthenticationMethodType = "OAuth20" - SourceTiktokMarketingUpdateAuthenticationMethodTypeSandboxAccessToken SourceTiktokMarketingUpdateAuthenticationMethodType = "SandboxAccessToken" + SourceTiktokMarketingUpdateAuthenticationMethodTypeSourceTiktokMarketingUpdateOAuth20 SourceTiktokMarketingUpdateAuthenticationMethodType = "source-tiktok-marketing-update_OAuth2.0" + SourceTiktokMarketingUpdateAuthenticationMethodTypeSandboxAccessToken SourceTiktokMarketingUpdateAuthenticationMethodType = "Sandbox Access Token" ) type SourceTiktokMarketingUpdateAuthenticationMethod struct { - OAuth20 *SourceTiktokMarketingUpdateOAuth20 - SandboxAccessToken *SandboxAccessToken + SourceTiktokMarketingUpdateOAuth20 *SourceTiktokMarketingUpdateOAuth20 + SandboxAccessToken *SandboxAccessToken Type SourceTiktokMarketingUpdateAuthenticationMethodType } -func CreateSourceTiktokMarketingUpdateAuthenticationMethodOAuth20(oAuth20 SourceTiktokMarketingUpdateOAuth20) SourceTiktokMarketingUpdateAuthenticationMethod { - typ := SourceTiktokMarketingUpdateAuthenticationMethodTypeOAuth20 +func CreateSourceTiktokMarketingUpdateAuthenticationMethodSourceTiktokMarketingUpdateOAuth20(sourceTiktokMarketingUpdateOAuth20 SourceTiktokMarketingUpdateOAuth20) SourceTiktokMarketingUpdateAuthenticationMethod { + typ := SourceTiktokMarketingUpdateAuthenticationMethodTypeSourceTiktokMarketingUpdateOAuth20 return SourceTiktokMarketingUpdateAuthenticationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTiktokMarketingUpdateOAuth20: &sourceTiktokMarketingUpdateOAuth20, + Type: typ, } } @@ -193,10 +193,10 @@ func (u *SourceTiktokMarketingUpdateAuthenticationMethod) UnmarshalJSON(data []b return nil } - oAuth20 := new(SourceTiktokMarketingUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTiktokMarketingUpdateAuthenticationMethodTypeOAuth20 + sourceTiktokMarketingUpdateOAuth20 := new(SourceTiktokMarketingUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTiktokMarketingUpdateOAuth20, "", true, true); err == nil { + u.SourceTiktokMarketingUpdateOAuth20 = sourceTiktokMarketingUpdateOAuth20 + u.Type = SourceTiktokMarketingUpdateAuthenticationMethodTypeSourceTiktokMarketingUpdateOAuth20 return nil } @@ -204,8 +204,8 @@ func (u *SourceTiktokMarketingUpdateAuthenticationMethod) UnmarshalJSON(data []b } func (u SourceTiktokMarketingUpdateAuthenticationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTiktokMarketingUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceTiktokMarketingUpdateOAuth20, "", true) } if u.SandboxAccessToken != nil { diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilot.go b/internal/sdk/pkg/models/shared/sourcetrustpilot.go index a182b0837..7430482b3 100644 --- a/internal/sdk/pkg/models/shared/sourcetrustpilot.go +++ b/internal/sdk/pkg/models/shared/sourcetrustpilot.go @@ -154,48 +154,48 @@ func (o *SourceTrustpilotOAuth20) GetTokenExpiryDate() time.Time { type SourceTrustpilotAuthorizationMethodType string const ( - SourceTrustpilotAuthorizationMethodTypeOAuth20 SourceTrustpilotAuthorizationMethodType = "OAuth20" - SourceTrustpilotAuthorizationMethodTypeAPIKey SourceTrustpilotAuthorizationMethodType = "APIKey" + SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotOAuth20 SourceTrustpilotAuthorizationMethodType = "source-trustpilot_OAuth 2.0" + SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotAPIKey SourceTrustpilotAuthorizationMethodType = "source-trustpilot_API Key" ) type SourceTrustpilotAuthorizationMethod struct { - OAuth20 *SourceTrustpilotOAuth20 - APIKey *SourceTrustpilotAPIKey + SourceTrustpilotOAuth20 *SourceTrustpilotOAuth20 + SourceTrustpilotAPIKey *SourceTrustpilotAPIKey Type SourceTrustpilotAuthorizationMethodType } -func CreateSourceTrustpilotAuthorizationMethodOAuth20(oAuth20 SourceTrustpilotOAuth20) SourceTrustpilotAuthorizationMethod { - typ := SourceTrustpilotAuthorizationMethodTypeOAuth20 +func CreateSourceTrustpilotAuthorizationMethodSourceTrustpilotOAuth20(sourceTrustpilotOAuth20 SourceTrustpilotOAuth20) SourceTrustpilotAuthorizationMethod { + typ := SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotOAuth20 return SourceTrustpilotAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTrustpilotOAuth20: &sourceTrustpilotOAuth20, + Type: typ, } } -func CreateSourceTrustpilotAuthorizationMethodAPIKey(apiKey SourceTrustpilotAPIKey) SourceTrustpilotAuthorizationMethod { - typ := SourceTrustpilotAuthorizationMethodTypeAPIKey +func CreateSourceTrustpilotAuthorizationMethodSourceTrustpilotAPIKey(sourceTrustpilotAPIKey SourceTrustpilotAPIKey) SourceTrustpilotAuthorizationMethod { + typ := SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotAPIKey return SourceTrustpilotAuthorizationMethod{ - APIKey: &apiKey, - Type: typ, + SourceTrustpilotAPIKey: &sourceTrustpilotAPIKey, + Type: typ, } } func (u *SourceTrustpilotAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiKey := new(SourceTrustpilotAPIKey) - if err := utils.UnmarshalJSON(data, &apiKey, "", true, true); err == nil { - u.APIKey = apiKey - u.Type = SourceTrustpilotAuthorizationMethodTypeAPIKey + sourceTrustpilotAPIKey := new(SourceTrustpilotAPIKey) + if err := utils.UnmarshalJSON(data, &sourceTrustpilotAPIKey, "", true, true); err == nil { + u.SourceTrustpilotAPIKey = sourceTrustpilotAPIKey + u.Type = SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotAPIKey return nil } - oAuth20 := new(SourceTrustpilotOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTrustpilotAuthorizationMethodTypeOAuth20 + sourceTrustpilotOAuth20 := new(SourceTrustpilotOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTrustpilotOAuth20, "", true, true); err == nil { + u.SourceTrustpilotOAuth20 = sourceTrustpilotOAuth20 + u.Type = SourceTrustpilotAuthorizationMethodTypeSourceTrustpilotOAuth20 return nil } @@ -203,12 +203,12 @@ func (u *SourceTrustpilotAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceTrustpilotAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTrustpilotOAuth20 != nil { + return utils.MarshalJSON(u.SourceTrustpilotOAuth20, "", true) } - if u.APIKey != nil { - return utils.MarshalJSON(u.APIKey, "", true) + if u.SourceTrustpilotAPIKey != nil { + return utils.MarshalJSON(u.SourceTrustpilotAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go b/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go index 350730b30..472d1b218 100644 --- a/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go +++ b/internal/sdk/pkg/models/shared/sourcetrustpilotupdate.go @@ -154,48 +154,48 @@ func (o *SourceTrustpilotUpdateOAuth20) GetTokenExpiryDate() time.Time { type SourceTrustpilotUpdateAuthorizationMethodType string const ( - SourceTrustpilotUpdateAuthorizationMethodTypeOAuth20 SourceTrustpilotUpdateAuthorizationMethodType = "OAuth20" - SourceTrustpilotUpdateAuthorizationMethodTypeAPIKey SourceTrustpilotUpdateAuthorizationMethodType = "APIKey" + SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateOAuth20 SourceTrustpilotUpdateAuthorizationMethodType = "source-trustpilot-update_OAuth 2.0" + SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateAPIKey SourceTrustpilotUpdateAuthorizationMethodType = "source-trustpilot-update_API Key" ) type SourceTrustpilotUpdateAuthorizationMethod struct { - OAuth20 *SourceTrustpilotUpdateOAuth20 - APIKey *SourceTrustpilotUpdateAPIKey + SourceTrustpilotUpdateOAuth20 *SourceTrustpilotUpdateOAuth20 + SourceTrustpilotUpdateAPIKey *SourceTrustpilotUpdateAPIKey Type SourceTrustpilotUpdateAuthorizationMethodType } -func CreateSourceTrustpilotUpdateAuthorizationMethodOAuth20(oAuth20 SourceTrustpilotUpdateOAuth20) SourceTrustpilotUpdateAuthorizationMethod { - typ := SourceTrustpilotUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceTrustpilotUpdateAuthorizationMethodSourceTrustpilotUpdateOAuth20(sourceTrustpilotUpdateOAuth20 SourceTrustpilotUpdateOAuth20) SourceTrustpilotUpdateAuthorizationMethod { + typ := SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateOAuth20 return SourceTrustpilotUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTrustpilotUpdateOAuth20: &sourceTrustpilotUpdateOAuth20, + Type: typ, } } -func CreateSourceTrustpilotUpdateAuthorizationMethodAPIKey(apiKey SourceTrustpilotUpdateAPIKey) SourceTrustpilotUpdateAuthorizationMethod { - typ := SourceTrustpilotUpdateAuthorizationMethodTypeAPIKey +func CreateSourceTrustpilotUpdateAuthorizationMethodSourceTrustpilotUpdateAPIKey(sourceTrustpilotUpdateAPIKey SourceTrustpilotUpdateAPIKey) SourceTrustpilotUpdateAuthorizationMethod { + typ := SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateAPIKey return SourceTrustpilotUpdateAuthorizationMethod{ - APIKey: &apiKey, - Type: typ, + SourceTrustpilotUpdateAPIKey: &sourceTrustpilotUpdateAPIKey, + Type: typ, } } func (u *SourceTrustpilotUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiKey := new(SourceTrustpilotUpdateAPIKey) - if err := utils.UnmarshalJSON(data, &apiKey, "", true, true); err == nil { - u.APIKey = apiKey - u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeAPIKey + sourceTrustpilotUpdateAPIKey := new(SourceTrustpilotUpdateAPIKey) + if err := utils.UnmarshalJSON(data, &sourceTrustpilotUpdateAPIKey, "", true, true); err == nil { + u.SourceTrustpilotUpdateAPIKey = sourceTrustpilotUpdateAPIKey + u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateAPIKey return nil } - oAuth20 := new(SourceTrustpilotUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeOAuth20 + sourceTrustpilotUpdateOAuth20 := new(SourceTrustpilotUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTrustpilotUpdateOAuth20, "", true, true); err == nil { + u.SourceTrustpilotUpdateOAuth20 = sourceTrustpilotUpdateOAuth20 + u.Type = SourceTrustpilotUpdateAuthorizationMethodTypeSourceTrustpilotUpdateOAuth20 return nil } @@ -203,12 +203,12 @@ func (u *SourceTrustpilotUpdateAuthorizationMethod) UnmarshalJSON(data []byte) e } func (u SourceTrustpilotUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTrustpilotUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceTrustpilotUpdateOAuth20, "", true) } - if u.APIKey != nil { - return utils.MarshalJSON(u.APIKey, "", true) + if u.SourceTrustpilotUpdateAPIKey != nil { + return utils.MarshalJSON(u.SourceTrustpilotUpdateAPIKey, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcetypeform.go b/internal/sdk/pkg/models/shared/sourcetypeform.go index 1b94e35c9..87a59d961 100644 --- a/internal/sdk/pkg/models/shared/sourcetypeform.go +++ b/internal/sdk/pkg/models/shared/sourcetypeform.go @@ -153,48 +153,48 @@ func (o *SourceTypeformOAuth20) GetTokenExpiryDate() time.Time { type SourceTypeformAuthorizationMethodType string const ( - SourceTypeformAuthorizationMethodTypeOAuth20 SourceTypeformAuthorizationMethodType = "OAuth20" - SourceTypeformAuthorizationMethodTypePrivateToken SourceTypeformAuthorizationMethodType = "PrivateToken" + SourceTypeformAuthorizationMethodTypeSourceTypeformOAuth20 SourceTypeformAuthorizationMethodType = "source-typeform_OAuth2.0" + SourceTypeformAuthorizationMethodTypeSourceTypeformPrivateToken SourceTypeformAuthorizationMethodType = "source-typeform_Private Token" ) type SourceTypeformAuthorizationMethod struct { - OAuth20 *SourceTypeformOAuth20 - PrivateToken *SourceTypeformPrivateToken + SourceTypeformOAuth20 *SourceTypeformOAuth20 + SourceTypeformPrivateToken *SourceTypeformPrivateToken Type SourceTypeformAuthorizationMethodType } -func CreateSourceTypeformAuthorizationMethodOAuth20(oAuth20 SourceTypeformOAuth20) SourceTypeformAuthorizationMethod { - typ := SourceTypeformAuthorizationMethodTypeOAuth20 +func CreateSourceTypeformAuthorizationMethodSourceTypeformOAuth20(sourceTypeformOAuth20 SourceTypeformOAuth20) SourceTypeformAuthorizationMethod { + typ := SourceTypeformAuthorizationMethodTypeSourceTypeformOAuth20 return SourceTypeformAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTypeformOAuth20: &sourceTypeformOAuth20, + Type: typ, } } -func CreateSourceTypeformAuthorizationMethodPrivateToken(privateToken SourceTypeformPrivateToken) SourceTypeformAuthorizationMethod { - typ := SourceTypeformAuthorizationMethodTypePrivateToken +func CreateSourceTypeformAuthorizationMethodSourceTypeformPrivateToken(sourceTypeformPrivateToken SourceTypeformPrivateToken) SourceTypeformAuthorizationMethod { + typ := SourceTypeformAuthorizationMethodTypeSourceTypeformPrivateToken return SourceTypeformAuthorizationMethod{ - PrivateToken: &privateToken, - Type: typ, + SourceTypeformPrivateToken: &sourceTypeformPrivateToken, + Type: typ, } } func (u *SourceTypeformAuthorizationMethod) UnmarshalJSON(data []byte) error { - privateToken := new(SourceTypeformPrivateToken) - if err := utils.UnmarshalJSON(data, &privateToken, "", true, true); err == nil { - u.PrivateToken = privateToken - u.Type = SourceTypeformAuthorizationMethodTypePrivateToken + sourceTypeformPrivateToken := new(SourceTypeformPrivateToken) + if err := utils.UnmarshalJSON(data, &sourceTypeformPrivateToken, "", true, true); err == nil { + u.SourceTypeformPrivateToken = sourceTypeformPrivateToken + u.Type = SourceTypeformAuthorizationMethodTypeSourceTypeformPrivateToken return nil } - oAuth20 := new(SourceTypeformOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTypeformAuthorizationMethodTypeOAuth20 + sourceTypeformOAuth20 := new(SourceTypeformOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTypeformOAuth20, "", true, true); err == nil { + u.SourceTypeformOAuth20 = sourceTypeformOAuth20 + u.Type = SourceTypeformAuthorizationMethodTypeSourceTypeformOAuth20 return nil } @@ -202,12 +202,12 @@ func (u *SourceTypeformAuthorizationMethod) UnmarshalJSON(data []byte) error { } func (u SourceTypeformAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTypeformOAuth20 != nil { + return utils.MarshalJSON(u.SourceTypeformOAuth20, "", true) } - if u.PrivateToken != nil { - return utils.MarshalJSON(u.PrivateToken, "", true) + if u.SourceTypeformPrivateToken != nil { + return utils.MarshalJSON(u.SourceTypeformPrivateToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcetypeformupdate.go b/internal/sdk/pkg/models/shared/sourcetypeformupdate.go index aacedf4a1..6be91647e 100644 --- a/internal/sdk/pkg/models/shared/sourcetypeformupdate.go +++ b/internal/sdk/pkg/models/shared/sourcetypeformupdate.go @@ -153,48 +153,48 @@ func (o *SourceTypeformUpdateOAuth20) GetTokenExpiryDate() time.Time { type SourceTypeformUpdateAuthorizationMethodType string const ( - SourceTypeformUpdateAuthorizationMethodTypeOAuth20 SourceTypeformUpdateAuthorizationMethodType = "OAuth20" - SourceTypeformUpdateAuthorizationMethodTypePrivateToken SourceTypeformUpdateAuthorizationMethodType = "PrivateToken" + SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdateOAuth20 SourceTypeformUpdateAuthorizationMethodType = "source-typeform-update_OAuth2.0" + SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdatePrivateToken SourceTypeformUpdateAuthorizationMethodType = "source-typeform-update_Private Token" ) type SourceTypeformUpdateAuthorizationMethod struct { - OAuth20 *SourceTypeformUpdateOAuth20 - PrivateToken *SourceTypeformUpdatePrivateToken + SourceTypeformUpdateOAuth20 *SourceTypeformUpdateOAuth20 + SourceTypeformUpdatePrivateToken *SourceTypeformUpdatePrivateToken Type SourceTypeformUpdateAuthorizationMethodType } -func CreateSourceTypeformUpdateAuthorizationMethodOAuth20(oAuth20 SourceTypeformUpdateOAuth20) SourceTypeformUpdateAuthorizationMethod { - typ := SourceTypeformUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceTypeformUpdateAuthorizationMethodSourceTypeformUpdateOAuth20(sourceTypeformUpdateOAuth20 SourceTypeformUpdateOAuth20) SourceTypeformUpdateAuthorizationMethod { + typ := SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdateOAuth20 return SourceTypeformUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceTypeformUpdateOAuth20: &sourceTypeformUpdateOAuth20, + Type: typ, } } -func CreateSourceTypeformUpdateAuthorizationMethodPrivateToken(privateToken SourceTypeformUpdatePrivateToken) SourceTypeformUpdateAuthorizationMethod { - typ := SourceTypeformUpdateAuthorizationMethodTypePrivateToken +func CreateSourceTypeformUpdateAuthorizationMethodSourceTypeformUpdatePrivateToken(sourceTypeformUpdatePrivateToken SourceTypeformUpdatePrivateToken) SourceTypeformUpdateAuthorizationMethod { + typ := SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdatePrivateToken return SourceTypeformUpdateAuthorizationMethod{ - PrivateToken: &privateToken, - Type: typ, + SourceTypeformUpdatePrivateToken: &sourceTypeformUpdatePrivateToken, + Type: typ, } } func (u *SourceTypeformUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - privateToken := new(SourceTypeformUpdatePrivateToken) - if err := utils.UnmarshalJSON(data, &privateToken, "", true, true); err == nil { - u.PrivateToken = privateToken - u.Type = SourceTypeformUpdateAuthorizationMethodTypePrivateToken + sourceTypeformUpdatePrivateToken := new(SourceTypeformUpdatePrivateToken) + if err := utils.UnmarshalJSON(data, &sourceTypeformUpdatePrivateToken, "", true, true); err == nil { + u.SourceTypeformUpdatePrivateToken = sourceTypeformUpdatePrivateToken + u.Type = SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdatePrivateToken return nil } - oAuth20 := new(SourceTypeformUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceTypeformUpdateAuthorizationMethodTypeOAuth20 + sourceTypeformUpdateOAuth20 := new(SourceTypeformUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceTypeformUpdateOAuth20, "", true, true); err == nil { + u.SourceTypeformUpdateOAuth20 = sourceTypeformUpdateOAuth20 + u.Type = SourceTypeformUpdateAuthorizationMethodTypeSourceTypeformUpdateOAuth20 return nil } @@ -202,12 +202,12 @@ func (u *SourceTypeformUpdateAuthorizationMethod) UnmarshalJSON(data []byte) err } func (u SourceTypeformUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceTypeformUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceTypeformUpdateOAuth20, "", true) } - if u.PrivateToken != nil { - return utils.MarshalJSON(u.PrivateToken, "", true) + if u.SourceTypeformUpdatePrivateToken != nil { + return utils.MarshalJSON(u.SourceTypeformUpdatePrivateToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchat.go b/internal/sdk/pkg/models/shared/sourcezendeskchat.go index 00f200777..a95076c39 100644 --- a/internal/sdk/pkg/models/shared/sourcezendeskchat.go +++ b/internal/sdk/pkg/models/shared/sourcezendeskchat.go @@ -144,48 +144,48 @@ func (o *SourceZendeskChatOAuth20) GetRefreshToken() *string { type SourceZendeskChatAuthorizationMethodType string const ( - SourceZendeskChatAuthorizationMethodTypeOAuth20 SourceZendeskChatAuthorizationMethodType = "OAuth20" - SourceZendeskChatAuthorizationMethodTypeAccessToken SourceZendeskChatAuthorizationMethodType = "AccessToken" + SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatOAuth20 SourceZendeskChatAuthorizationMethodType = "source-zendesk-chat_OAuth2.0" + SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatAccessToken SourceZendeskChatAuthorizationMethodType = "source-zendesk-chat_Access Token" ) type SourceZendeskChatAuthorizationMethod struct { - OAuth20 *SourceZendeskChatOAuth20 - AccessToken *SourceZendeskChatAccessToken + SourceZendeskChatOAuth20 *SourceZendeskChatOAuth20 + SourceZendeskChatAccessToken *SourceZendeskChatAccessToken Type SourceZendeskChatAuthorizationMethodType } -func CreateSourceZendeskChatAuthorizationMethodOAuth20(oAuth20 SourceZendeskChatOAuth20) SourceZendeskChatAuthorizationMethod { - typ := SourceZendeskChatAuthorizationMethodTypeOAuth20 +func CreateSourceZendeskChatAuthorizationMethodSourceZendeskChatOAuth20(sourceZendeskChatOAuth20 SourceZendeskChatOAuth20) SourceZendeskChatAuthorizationMethod { + typ := SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatOAuth20 return SourceZendeskChatAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskChatOAuth20: &sourceZendeskChatOAuth20, + Type: typ, } } -func CreateSourceZendeskChatAuthorizationMethodAccessToken(accessToken SourceZendeskChatAccessToken) SourceZendeskChatAuthorizationMethod { - typ := SourceZendeskChatAuthorizationMethodTypeAccessToken +func CreateSourceZendeskChatAuthorizationMethodSourceZendeskChatAccessToken(sourceZendeskChatAccessToken SourceZendeskChatAccessToken) SourceZendeskChatAuthorizationMethod { + typ := SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatAccessToken return SourceZendeskChatAuthorizationMethod{ - AccessToken: &accessToken, - Type: typ, + SourceZendeskChatAccessToken: &sourceZendeskChatAccessToken, + Type: typ, } } func (u *SourceZendeskChatAuthorizationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourceZendeskChatAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceZendeskChatAuthorizationMethodTypeAccessToken + sourceZendeskChatAccessToken := new(SourceZendeskChatAccessToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskChatAccessToken, "", true, true); err == nil { + u.SourceZendeskChatAccessToken = sourceZendeskChatAccessToken + u.Type = SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatAccessToken return nil } - oAuth20 := new(SourceZendeskChatOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskChatAuthorizationMethodTypeOAuth20 + sourceZendeskChatOAuth20 := new(SourceZendeskChatOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskChatOAuth20, "", true, true); err == nil { + u.SourceZendeskChatOAuth20 = sourceZendeskChatOAuth20 + u.Type = SourceZendeskChatAuthorizationMethodTypeSourceZendeskChatOAuth20 return nil } @@ -193,12 +193,12 @@ func (u *SourceZendeskChatAuthorizationMethod) UnmarshalJSON(data []byte) error } func (u SourceZendeskChatAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskChatOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskChatOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceZendeskChatAccessToken != nil { + return utils.MarshalJSON(u.SourceZendeskChatAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go b/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go index 3ed9c615d..81bff5bcb 100644 --- a/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go +++ b/internal/sdk/pkg/models/shared/sourcezendeskchatupdate.go @@ -144,48 +144,48 @@ func (o *SourceZendeskChatUpdateOAuth20) GetRefreshToken() *string { type SourceZendeskChatUpdateAuthorizationMethodType string const ( - SourceZendeskChatUpdateAuthorizationMethodTypeOAuth20 SourceZendeskChatUpdateAuthorizationMethodType = "OAuth20" - SourceZendeskChatUpdateAuthorizationMethodTypeAccessToken SourceZendeskChatUpdateAuthorizationMethodType = "AccessToken" + SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateOAuth20 SourceZendeskChatUpdateAuthorizationMethodType = "source-zendesk-chat-update_OAuth2.0" + SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateAccessToken SourceZendeskChatUpdateAuthorizationMethodType = "source-zendesk-chat-update_Access Token" ) type SourceZendeskChatUpdateAuthorizationMethod struct { - OAuth20 *SourceZendeskChatUpdateOAuth20 - AccessToken *SourceZendeskChatUpdateAccessToken + SourceZendeskChatUpdateOAuth20 *SourceZendeskChatUpdateOAuth20 + SourceZendeskChatUpdateAccessToken *SourceZendeskChatUpdateAccessToken Type SourceZendeskChatUpdateAuthorizationMethodType } -func CreateSourceZendeskChatUpdateAuthorizationMethodOAuth20(oAuth20 SourceZendeskChatUpdateOAuth20) SourceZendeskChatUpdateAuthorizationMethod { - typ := SourceZendeskChatUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceZendeskChatUpdateAuthorizationMethodSourceZendeskChatUpdateOAuth20(sourceZendeskChatUpdateOAuth20 SourceZendeskChatUpdateOAuth20) SourceZendeskChatUpdateAuthorizationMethod { + typ := SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateOAuth20 return SourceZendeskChatUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskChatUpdateOAuth20: &sourceZendeskChatUpdateOAuth20, + Type: typ, } } -func CreateSourceZendeskChatUpdateAuthorizationMethodAccessToken(accessToken SourceZendeskChatUpdateAccessToken) SourceZendeskChatUpdateAuthorizationMethod { - typ := SourceZendeskChatUpdateAuthorizationMethodTypeAccessToken +func CreateSourceZendeskChatUpdateAuthorizationMethodSourceZendeskChatUpdateAccessToken(sourceZendeskChatUpdateAccessToken SourceZendeskChatUpdateAccessToken) SourceZendeskChatUpdateAuthorizationMethod { + typ := SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateAccessToken return SourceZendeskChatUpdateAuthorizationMethod{ - AccessToken: &accessToken, - Type: typ, + SourceZendeskChatUpdateAccessToken: &sourceZendeskChatUpdateAccessToken, + Type: typ, } } func (u *SourceZendeskChatUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - accessToken := new(SourceZendeskChatUpdateAccessToken) - if err := utils.UnmarshalJSON(data, &accessToken, "", true, true); err == nil { - u.AccessToken = accessToken - u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeAccessToken + sourceZendeskChatUpdateAccessToken := new(SourceZendeskChatUpdateAccessToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskChatUpdateAccessToken, "", true, true); err == nil { + u.SourceZendeskChatUpdateAccessToken = sourceZendeskChatUpdateAccessToken + u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateAccessToken return nil } - oAuth20 := new(SourceZendeskChatUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeOAuth20 + sourceZendeskChatUpdateOAuth20 := new(SourceZendeskChatUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskChatUpdateOAuth20, "", true, true); err == nil { + u.SourceZendeskChatUpdateOAuth20 = sourceZendeskChatUpdateOAuth20 + u.Type = SourceZendeskChatUpdateAuthorizationMethodTypeSourceZendeskChatUpdateOAuth20 return nil } @@ -193,12 +193,12 @@ func (u *SourceZendeskChatUpdateAuthorizationMethod) UnmarshalJSON(data []byte) } func (u SourceZendeskChatUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskChatUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskChatUpdateOAuth20, "", true) } - if u.AccessToken != nil { - return utils.MarshalJSON(u.AccessToken, "", true) + if u.SourceZendeskChatUpdateAccessToken != nil { + return utils.MarshalJSON(u.SourceZendeskChatUpdateAccessToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshine.go b/internal/sdk/pkg/models/shared/sourcezendesksunshine.go index 7e904b550..258e987b4 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesksunshine.go +++ b/internal/sdk/pkg/models/shared/sourcezendesksunshine.go @@ -144,48 +144,48 @@ func (o *SourceZendeskSunshineOAuth20) GetClientSecret() string { type SourceZendeskSunshineAuthorizationMethodType string const ( - SourceZendeskSunshineAuthorizationMethodTypeOAuth20 SourceZendeskSunshineAuthorizationMethodType = "OAuth20" - SourceZendeskSunshineAuthorizationMethodTypeAPIToken SourceZendeskSunshineAuthorizationMethodType = "APIToken" + SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineOAuth20 SourceZendeskSunshineAuthorizationMethodType = "source-zendesk-sunshine_OAuth2.0" + SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineAPIToken SourceZendeskSunshineAuthorizationMethodType = "source-zendesk-sunshine_API Token" ) type SourceZendeskSunshineAuthorizationMethod struct { - OAuth20 *SourceZendeskSunshineOAuth20 - APIToken *SourceZendeskSunshineAPIToken + SourceZendeskSunshineOAuth20 *SourceZendeskSunshineOAuth20 + SourceZendeskSunshineAPIToken *SourceZendeskSunshineAPIToken Type SourceZendeskSunshineAuthorizationMethodType } -func CreateSourceZendeskSunshineAuthorizationMethodOAuth20(oAuth20 SourceZendeskSunshineOAuth20) SourceZendeskSunshineAuthorizationMethod { - typ := SourceZendeskSunshineAuthorizationMethodTypeOAuth20 +func CreateSourceZendeskSunshineAuthorizationMethodSourceZendeskSunshineOAuth20(sourceZendeskSunshineOAuth20 SourceZendeskSunshineOAuth20) SourceZendeskSunshineAuthorizationMethod { + typ := SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineOAuth20 return SourceZendeskSunshineAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskSunshineOAuth20: &sourceZendeskSunshineOAuth20, + Type: typ, } } -func CreateSourceZendeskSunshineAuthorizationMethodAPIToken(apiToken SourceZendeskSunshineAPIToken) SourceZendeskSunshineAuthorizationMethod { - typ := SourceZendeskSunshineAuthorizationMethodTypeAPIToken +func CreateSourceZendeskSunshineAuthorizationMethodSourceZendeskSunshineAPIToken(sourceZendeskSunshineAPIToken SourceZendeskSunshineAPIToken) SourceZendeskSunshineAuthorizationMethod { + typ := SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineAPIToken return SourceZendeskSunshineAuthorizationMethod{ - APIToken: &apiToken, - Type: typ, + SourceZendeskSunshineAPIToken: &sourceZendeskSunshineAPIToken, + Type: typ, } } func (u *SourceZendeskSunshineAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskSunshineAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskSunshineAuthorizationMethodTypeAPIToken + sourceZendeskSunshineAPIToken := new(SourceZendeskSunshineAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineAPIToken, "", true, true); err == nil { + u.SourceZendeskSunshineAPIToken = sourceZendeskSunshineAPIToken + u.Type = SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineAPIToken return nil } - oAuth20 := new(SourceZendeskSunshineOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskSunshineAuthorizationMethodTypeOAuth20 + sourceZendeskSunshineOAuth20 := new(SourceZendeskSunshineOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineOAuth20, "", true, true); err == nil { + u.SourceZendeskSunshineOAuth20 = sourceZendeskSunshineOAuth20 + u.Type = SourceZendeskSunshineAuthorizationMethodTypeSourceZendeskSunshineOAuth20 return nil } @@ -193,12 +193,12 @@ func (u *SourceZendeskSunshineAuthorizationMethod) UnmarshalJSON(data []byte) er } func (u SourceZendeskSunshineAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskSunshineOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskSunshineOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskSunshineAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskSunshineAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go b/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go index 0e21dc652..f6c8d28cb 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go +++ b/internal/sdk/pkg/models/shared/sourcezendesksunshineupdate.go @@ -144,48 +144,48 @@ func (o *SourceZendeskSunshineUpdateOAuth20) GetClientSecret() string { type SourceZendeskSunshineUpdateAuthorizationMethodType string const ( - SourceZendeskSunshineUpdateAuthorizationMethodTypeOAuth20 SourceZendeskSunshineUpdateAuthorizationMethodType = "OAuth20" - SourceZendeskSunshineUpdateAuthorizationMethodTypeAPIToken SourceZendeskSunshineUpdateAuthorizationMethodType = "APIToken" + SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateOAuth20 SourceZendeskSunshineUpdateAuthorizationMethodType = "source-zendesk-sunshine-update_OAuth2.0" + SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateAPIToken SourceZendeskSunshineUpdateAuthorizationMethodType = "source-zendesk-sunshine-update_API Token" ) type SourceZendeskSunshineUpdateAuthorizationMethod struct { - OAuth20 *SourceZendeskSunshineUpdateOAuth20 - APIToken *SourceZendeskSunshineUpdateAPIToken + SourceZendeskSunshineUpdateOAuth20 *SourceZendeskSunshineUpdateOAuth20 + SourceZendeskSunshineUpdateAPIToken *SourceZendeskSunshineUpdateAPIToken Type SourceZendeskSunshineUpdateAuthorizationMethodType } -func CreateSourceZendeskSunshineUpdateAuthorizationMethodOAuth20(oAuth20 SourceZendeskSunshineUpdateOAuth20) SourceZendeskSunshineUpdateAuthorizationMethod { - typ := SourceZendeskSunshineUpdateAuthorizationMethodTypeOAuth20 +func CreateSourceZendeskSunshineUpdateAuthorizationMethodSourceZendeskSunshineUpdateOAuth20(sourceZendeskSunshineUpdateOAuth20 SourceZendeskSunshineUpdateOAuth20) SourceZendeskSunshineUpdateAuthorizationMethod { + typ := SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateOAuth20 return SourceZendeskSunshineUpdateAuthorizationMethod{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskSunshineUpdateOAuth20: &sourceZendeskSunshineUpdateOAuth20, + Type: typ, } } -func CreateSourceZendeskSunshineUpdateAuthorizationMethodAPIToken(apiToken SourceZendeskSunshineUpdateAPIToken) SourceZendeskSunshineUpdateAuthorizationMethod { - typ := SourceZendeskSunshineUpdateAuthorizationMethodTypeAPIToken +func CreateSourceZendeskSunshineUpdateAuthorizationMethodSourceZendeskSunshineUpdateAPIToken(sourceZendeskSunshineUpdateAPIToken SourceZendeskSunshineUpdateAPIToken) SourceZendeskSunshineUpdateAuthorizationMethod { + typ := SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateAPIToken return SourceZendeskSunshineUpdateAuthorizationMethod{ - APIToken: &apiToken, - Type: typ, + SourceZendeskSunshineUpdateAPIToken: &sourceZendeskSunshineUpdateAPIToken, + Type: typ, } } func (u *SourceZendeskSunshineUpdateAuthorizationMethod) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskSunshineUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeAPIToken + sourceZendeskSunshineUpdateAPIToken := new(SourceZendeskSunshineUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineUpdateAPIToken, "", true, true); err == nil { + u.SourceZendeskSunshineUpdateAPIToken = sourceZendeskSunshineUpdateAPIToken + u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateAPIToken return nil } - oAuth20 := new(SourceZendeskSunshineUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeOAuth20 + sourceZendeskSunshineUpdateOAuth20 := new(SourceZendeskSunshineUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskSunshineUpdateOAuth20, "", true, true); err == nil { + u.SourceZendeskSunshineUpdateOAuth20 = sourceZendeskSunshineUpdateOAuth20 + u.Type = SourceZendeskSunshineUpdateAuthorizationMethodTypeSourceZendeskSunshineUpdateOAuth20 return nil } @@ -193,12 +193,12 @@ func (u *SourceZendeskSunshineUpdateAuthorizationMethod) UnmarshalJSON(data []by } func (u SourceZendeskSunshineUpdateAuthorizationMethod) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskSunshineUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskSunshineUpdateOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskSunshineUpdateAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskSunshineUpdateAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupport.go b/internal/sdk/pkg/models/shared/sourcezendesksupport.go index 7281572e3..a66e429e7 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesksupport.go +++ b/internal/sdk/pkg/models/shared/sourcezendesksupport.go @@ -162,48 +162,48 @@ func (o *SourceZendeskSupportOAuth20) GetCredentials() *SourceZendeskSupportCred type SourceZendeskSupportAuthenticationType string const ( - SourceZendeskSupportAuthenticationTypeOAuth20 SourceZendeskSupportAuthenticationType = "OAuth20" - SourceZendeskSupportAuthenticationTypeAPIToken SourceZendeskSupportAuthenticationType = "APIToken" + SourceZendeskSupportAuthenticationTypeSourceZendeskSupportOAuth20 SourceZendeskSupportAuthenticationType = "source-zendesk-support_OAuth2.0" + SourceZendeskSupportAuthenticationTypeSourceZendeskSupportAPIToken SourceZendeskSupportAuthenticationType = "source-zendesk-support_API Token" ) type SourceZendeskSupportAuthentication struct { - OAuth20 *SourceZendeskSupportOAuth20 - APIToken *SourceZendeskSupportAPIToken + SourceZendeskSupportOAuth20 *SourceZendeskSupportOAuth20 + SourceZendeskSupportAPIToken *SourceZendeskSupportAPIToken Type SourceZendeskSupportAuthenticationType } -func CreateSourceZendeskSupportAuthenticationOAuth20(oAuth20 SourceZendeskSupportOAuth20) SourceZendeskSupportAuthentication { - typ := SourceZendeskSupportAuthenticationTypeOAuth20 +func CreateSourceZendeskSupportAuthenticationSourceZendeskSupportOAuth20(sourceZendeskSupportOAuth20 SourceZendeskSupportOAuth20) SourceZendeskSupportAuthentication { + typ := SourceZendeskSupportAuthenticationTypeSourceZendeskSupportOAuth20 return SourceZendeskSupportAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskSupportOAuth20: &sourceZendeskSupportOAuth20, + Type: typ, } } -func CreateSourceZendeskSupportAuthenticationAPIToken(apiToken SourceZendeskSupportAPIToken) SourceZendeskSupportAuthentication { - typ := SourceZendeskSupportAuthenticationTypeAPIToken +func CreateSourceZendeskSupportAuthenticationSourceZendeskSupportAPIToken(sourceZendeskSupportAPIToken SourceZendeskSupportAPIToken) SourceZendeskSupportAuthentication { + typ := SourceZendeskSupportAuthenticationTypeSourceZendeskSupportAPIToken return SourceZendeskSupportAuthentication{ - APIToken: &apiToken, - Type: typ, + SourceZendeskSupportAPIToken: &sourceZendeskSupportAPIToken, + Type: typ, } } func (u *SourceZendeskSupportAuthentication) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskSupportAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskSupportAuthenticationTypeAPIToken + sourceZendeskSupportAPIToken := new(SourceZendeskSupportAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskSupportAPIToken, "", true, true); err == nil { + u.SourceZendeskSupportAPIToken = sourceZendeskSupportAPIToken + u.Type = SourceZendeskSupportAuthenticationTypeSourceZendeskSupportAPIToken return nil } - oAuth20 := new(SourceZendeskSupportOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskSupportAuthenticationTypeOAuth20 + sourceZendeskSupportOAuth20 := new(SourceZendeskSupportOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskSupportOAuth20, "", true, true); err == nil { + u.SourceZendeskSupportOAuth20 = sourceZendeskSupportOAuth20 + u.Type = SourceZendeskSupportAuthenticationTypeSourceZendeskSupportOAuth20 return nil } @@ -211,12 +211,12 @@ func (u *SourceZendeskSupportAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceZendeskSupportAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskSupportOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskSupportOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskSupportAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskSupportAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go b/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go index 629f1101f..1e29497c6 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go +++ b/internal/sdk/pkg/models/shared/sourcezendesksupportupdate.go @@ -162,48 +162,48 @@ func (o *SourceZendeskSupportUpdateOAuth20) GetCredentials() *SourceZendeskSuppo type SourceZendeskSupportUpdateAuthenticationType string const ( - SourceZendeskSupportUpdateAuthenticationTypeOAuth20 SourceZendeskSupportUpdateAuthenticationType = "OAuth20" - SourceZendeskSupportUpdateAuthenticationTypeAPIToken SourceZendeskSupportUpdateAuthenticationType = "APIToken" + SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateOAuth20 SourceZendeskSupportUpdateAuthenticationType = "source-zendesk-support-update_OAuth2.0" + SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateAPIToken SourceZendeskSupportUpdateAuthenticationType = "source-zendesk-support-update_API Token" ) type SourceZendeskSupportUpdateAuthentication struct { - OAuth20 *SourceZendeskSupportUpdateOAuth20 - APIToken *SourceZendeskSupportUpdateAPIToken + SourceZendeskSupportUpdateOAuth20 *SourceZendeskSupportUpdateOAuth20 + SourceZendeskSupportUpdateAPIToken *SourceZendeskSupportUpdateAPIToken Type SourceZendeskSupportUpdateAuthenticationType } -func CreateSourceZendeskSupportUpdateAuthenticationOAuth20(oAuth20 SourceZendeskSupportUpdateOAuth20) SourceZendeskSupportUpdateAuthentication { - typ := SourceZendeskSupportUpdateAuthenticationTypeOAuth20 +func CreateSourceZendeskSupportUpdateAuthenticationSourceZendeskSupportUpdateOAuth20(sourceZendeskSupportUpdateOAuth20 SourceZendeskSupportUpdateOAuth20) SourceZendeskSupportUpdateAuthentication { + typ := SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateOAuth20 return SourceZendeskSupportUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskSupportUpdateOAuth20: &sourceZendeskSupportUpdateOAuth20, + Type: typ, } } -func CreateSourceZendeskSupportUpdateAuthenticationAPIToken(apiToken SourceZendeskSupportUpdateAPIToken) SourceZendeskSupportUpdateAuthentication { - typ := SourceZendeskSupportUpdateAuthenticationTypeAPIToken +func CreateSourceZendeskSupportUpdateAuthenticationSourceZendeskSupportUpdateAPIToken(sourceZendeskSupportUpdateAPIToken SourceZendeskSupportUpdateAPIToken) SourceZendeskSupportUpdateAuthentication { + typ := SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateAPIToken return SourceZendeskSupportUpdateAuthentication{ - APIToken: &apiToken, - Type: typ, + SourceZendeskSupportUpdateAPIToken: &sourceZendeskSupportUpdateAPIToken, + Type: typ, } } func (u *SourceZendeskSupportUpdateAuthentication) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskSupportUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskSupportUpdateAuthenticationTypeAPIToken + sourceZendeskSupportUpdateAPIToken := new(SourceZendeskSupportUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskSupportUpdateAPIToken, "", true, true); err == nil { + u.SourceZendeskSupportUpdateAPIToken = sourceZendeskSupportUpdateAPIToken + u.Type = SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateAPIToken return nil } - oAuth20 := new(SourceZendeskSupportUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskSupportUpdateAuthenticationTypeOAuth20 + sourceZendeskSupportUpdateOAuth20 := new(SourceZendeskSupportUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskSupportUpdateOAuth20, "", true, true); err == nil { + u.SourceZendeskSupportUpdateOAuth20 = sourceZendeskSupportUpdateOAuth20 + u.Type = SourceZendeskSupportUpdateAuthenticationTypeSourceZendeskSupportUpdateOAuth20 return nil } @@ -211,12 +211,12 @@ func (u *SourceZendeskSupportUpdateAuthentication) UnmarshalJSON(data []byte) er } func (u SourceZendeskSupportUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskSupportUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskSupportUpdateOAuth20, "", true) } - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskSupportUpdateAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskSupportUpdateAPIToken, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalk.go b/internal/sdk/pkg/models/shared/sourcezendesktalk.go index 3d7b74bdb..2789030df 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesktalk.go +++ b/internal/sdk/pkg/models/shared/sourcezendesktalk.go @@ -162,48 +162,48 @@ func (o *SourceZendeskTalkAPIToken) GetEmail() string { type SourceZendeskTalkAuthenticationType string const ( - SourceZendeskTalkAuthenticationTypeAPIToken SourceZendeskTalkAuthenticationType = "APIToken" - SourceZendeskTalkAuthenticationTypeOAuth20 SourceZendeskTalkAuthenticationType = "OAuth20" + SourceZendeskTalkAuthenticationTypeSourceZendeskTalkAPIToken SourceZendeskTalkAuthenticationType = "source-zendesk-talk_API Token" + SourceZendeskTalkAuthenticationTypeSourceZendeskTalkOAuth20 SourceZendeskTalkAuthenticationType = "source-zendesk-talk_OAuth2.0" ) type SourceZendeskTalkAuthentication struct { - APIToken *SourceZendeskTalkAPIToken - OAuth20 *SourceZendeskTalkOAuth20 + SourceZendeskTalkAPIToken *SourceZendeskTalkAPIToken + SourceZendeskTalkOAuth20 *SourceZendeskTalkOAuth20 Type SourceZendeskTalkAuthenticationType } -func CreateSourceZendeskTalkAuthenticationAPIToken(apiToken SourceZendeskTalkAPIToken) SourceZendeskTalkAuthentication { - typ := SourceZendeskTalkAuthenticationTypeAPIToken +func CreateSourceZendeskTalkAuthenticationSourceZendeskTalkAPIToken(sourceZendeskTalkAPIToken SourceZendeskTalkAPIToken) SourceZendeskTalkAuthentication { + typ := SourceZendeskTalkAuthenticationTypeSourceZendeskTalkAPIToken return SourceZendeskTalkAuthentication{ - APIToken: &apiToken, - Type: typ, + SourceZendeskTalkAPIToken: &sourceZendeskTalkAPIToken, + Type: typ, } } -func CreateSourceZendeskTalkAuthenticationOAuth20(oAuth20 SourceZendeskTalkOAuth20) SourceZendeskTalkAuthentication { - typ := SourceZendeskTalkAuthenticationTypeOAuth20 +func CreateSourceZendeskTalkAuthenticationSourceZendeskTalkOAuth20(sourceZendeskTalkOAuth20 SourceZendeskTalkOAuth20) SourceZendeskTalkAuthentication { + typ := SourceZendeskTalkAuthenticationTypeSourceZendeskTalkOAuth20 return SourceZendeskTalkAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskTalkOAuth20: &sourceZendeskTalkOAuth20, + Type: typ, } } func (u *SourceZendeskTalkAuthentication) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskTalkAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskTalkAuthenticationTypeAPIToken + sourceZendeskTalkAPIToken := new(SourceZendeskTalkAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskTalkAPIToken, "", true, true); err == nil { + u.SourceZendeskTalkAPIToken = sourceZendeskTalkAPIToken + u.Type = SourceZendeskTalkAuthenticationTypeSourceZendeskTalkAPIToken return nil } - oAuth20 := new(SourceZendeskTalkOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskTalkAuthenticationTypeOAuth20 + sourceZendeskTalkOAuth20 := new(SourceZendeskTalkOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskTalkOAuth20, "", true, true); err == nil { + u.SourceZendeskTalkOAuth20 = sourceZendeskTalkOAuth20 + u.Type = SourceZendeskTalkAuthenticationTypeSourceZendeskTalkOAuth20 return nil } @@ -211,12 +211,12 @@ func (u *SourceZendeskTalkAuthentication) UnmarshalJSON(data []byte) error { } func (u SourceZendeskTalkAuthentication) MarshalJSON() ([]byte, error) { - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskTalkAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskTalkAPIToken, "", true) } - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskTalkOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskTalkOAuth20, "", true) } return nil, errors.New("could not marshal union type: all fields are null") diff --git a/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go b/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go index 19c09807c..639068901 100644 --- a/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go +++ b/internal/sdk/pkg/models/shared/sourcezendesktalkupdate.go @@ -162,48 +162,48 @@ func (o *SourceZendeskTalkUpdateAPIToken) GetEmail() string { type SourceZendeskTalkUpdateAuthenticationType string const ( - SourceZendeskTalkUpdateAuthenticationTypeAPIToken SourceZendeskTalkUpdateAuthenticationType = "APIToken" - SourceZendeskTalkUpdateAuthenticationTypeOAuth20 SourceZendeskTalkUpdateAuthenticationType = "OAuth20" + SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateAPIToken SourceZendeskTalkUpdateAuthenticationType = "source-zendesk-talk-update_API Token" + SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateOAuth20 SourceZendeskTalkUpdateAuthenticationType = "source-zendesk-talk-update_OAuth2.0" ) type SourceZendeskTalkUpdateAuthentication struct { - APIToken *SourceZendeskTalkUpdateAPIToken - OAuth20 *SourceZendeskTalkUpdateOAuth20 + SourceZendeskTalkUpdateAPIToken *SourceZendeskTalkUpdateAPIToken + SourceZendeskTalkUpdateOAuth20 *SourceZendeskTalkUpdateOAuth20 Type SourceZendeskTalkUpdateAuthenticationType } -func CreateSourceZendeskTalkUpdateAuthenticationAPIToken(apiToken SourceZendeskTalkUpdateAPIToken) SourceZendeskTalkUpdateAuthentication { - typ := SourceZendeskTalkUpdateAuthenticationTypeAPIToken +func CreateSourceZendeskTalkUpdateAuthenticationSourceZendeskTalkUpdateAPIToken(sourceZendeskTalkUpdateAPIToken SourceZendeskTalkUpdateAPIToken) SourceZendeskTalkUpdateAuthentication { + typ := SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateAPIToken return SourceZendeskTalkUpdateAuthentication{ - APIToken: &apiToken, - Type: typ, + SourceZendeskTalkUpdateAPIToken: &sourceZendeskTalkUpdateAPIToken, + Type: typ, } } -func CreateSourceZendeskTalkUpdateAuthenticationOAuth20(oAuth20 SourceZendeskTalkUpdateOAuth20) SourceZendeskTalkUpdateAuthentication { - typ := SourceZendeskTalkUpdateAuthenticationTypeOAuth20 +func CreateSourceZendeskTalkUpdateAuthenticationSourceZendeskTalkUpdateOAuth20(sourceZendeskTalkUpdateOAuth20 SourceZendeskTalkUpdateOAuth20) SourceZendeskTalkUpdateAuthentication { + typ := SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateOAuth20 return SourceZendeskTalkUpdateAuthentication{ - OAuth20: &oAuth20, - Type: typ, + SourceZendeskTalkUpdateOAuth20: &sourceZendeskTalkUpdateOAuth20, + Type: typ, } } func (u *SourceZendeskTalkUpdateAuthentication) UnmarshalJSON(data []byte) error { - apiToken := new(SourceZendeskTalkUpdateAPIToken) - if err := utils.UnmarshalJSON(data, &apiToken, "", true, true); err == nil { - u.APIToken = apiToken - u.Type = SourceZendeskTalkUpdateAuthenticationTypeAPIToken + sourceZendeskTalkUpdateAPIToken := new(SourceZendeskTalkUpdateAPIToken) + if err := utils.UnmarshalJSON(data, &sourceZendeskTalkUpdateAPIToken, "", true, true); err == nil { + u.SourceZendeskTalkUpdateAPIToken = sourceZendeskTalkUpdateAPIToken + u.Type = SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateAPIToken return nil } - oAuth20 := new(SourceZendeskTalkUpdateOAuth20) - if err := utils.UnmarshalJSON(data, &oAuth20, "", true, true); err == nil { - u.OAuth20 = oAuth20 - u.Type = SourceZendeskTalkUpdateAuthenticationTypeOAuth20 + sourceZendeskTalkUpdateOAuth20 := new(SourceZendeskTalkUpdateOAuth20) + if err := utils.UnmarshalJSON(data, &sourceZendeskTalkUpdateOAuth20, "", true, true); err == nil { + u.SourceZendeskTalkUpdateOAuth20 = sourceZendeskTalkUpdateOAuth20 + u.Type = SourceZendeskTalkUpdateAuthenticationTypeSourceZendeskTalkUpdateOAuth20 return nil } @@ -211,12 +211,12 @@ func (u *SourceZendeskTalkUpdateAuthentication) UnmarshalJSON(data []byte) error } func (u SourceZendeskTalkUpdateAuthentication) MarshalJSON() ([]byte, error) { - if u.APIToken != nil { - return utils.MarshalJSON(u.APIToken, "", true) + if u.SourceZendeskTalkUpdateAPIToken != nil { + return utils.MarshalJSON(u.SourceZendeskTalkUpdateAPIToken, "", true) } - if u.OAuth20 != nil { - return utils.MarshalJSON(u.OAuth20, "", true) + if u.SourceZendeskTalkUpdateOAuth20 != nil { + return utils.MarshalJSON(u.SourceZendeskTalkUpdateOAuth20, "", true) } return nil, errors.New("could not marshal union type: all fields are null")